Codota Logo
ResourcePublisher
Code IndexAdd Codota to your IDE (free)

How to use
ResourcePublisher
in
org.nuxeo.runtime.management

Best Java code snippets using org.nuxeo.runtime.management.ResourcePublisher (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.nuxeo.connect.tools/nuxeo-connect-tools-report-core

@Override
public void start(ComponentContext context) {
  Framework.getService(ResourcePublisher.class).registerResource("connect-report", "connect-report", ReportServer.class, management);
}
origin: org.nuxeo.runtime/nuxeo-runtime-management

public void unregisterMXBean(String name) {
  ResourcePublisher srv = Framework.getService(ResourcePublisher.class);
  if (srv == null) {
    return;
  }
  String cname = cnames.remove(name);
  if (cname != null) {
    srv.unregisterResource(name, cname);
  }
}
origin: org.nuxeo.runtime/nuxeo-runtime-management

public void registerMXBean(Object mbean, String name, Class<?> itf, String type) {
  ResourcePublisher srv = Framework.getService(ResourcePublisher.class);
  String cname = canonicalName(name, type);
  srv.registerResource(name, cname, itf, mbean);
  cnames.put(name, cname);
}
origin: org.nuxeo.connect.tools/nuxeo-connect-tools-report-core

@Override
public void stop(ComponentContext context) {
  Framework.getService(ResourcePublisher.class).unregisterResource("connect-report", "connect-report");
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-audit-core

@Override
public void onApplicationStarted() {
  thread = new Thread(new Consumer(), "Nuxeo-Audit-Bulker");
  thread.start();
  ResourcePublisher publisher = Framework.getService(ResourcePublisher.class);
  if (publisher != null) {
    publisher.registerResource("audit-bulker", "audit-bulker", AuditBulkerMBean.class, this);
  }
  registry.register(MetricRegistry.name("nuxeo", "audit", "size"), sizeGauge);
}
origin: org.nuxeo.ecm.platform/nuxeo-platform-audit-core

@Override
public void onApplicationStopped() {
  registry.remove(MetricRegistry.name("nuxeo", "audit", "size"));
  ResourcePublisher publisher = Framework.getService(ResourcePublisher.class);
  if (publisher != null) {
    publisher.unregisterResource("audit-bulker", "audit-bulker");
  }
  stopped = true;
  try {
    thread.interrupt();
  } finally {
    thread = null;
  }
}
org.nuxeo.runtime.managementResourcePublisher

Most used methods

  • registerResource
  • unregisterResource

Popular in Java

  • Making http requests using okhttp
  • addToBackStack (FragmentTransaction)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • orElseThrow (Optional)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now