Tabnine Logo
SharedMetricRegistries.remove
Code IndexAdd Tabnine to your IDE (free)

How to use
remove
method
in
com.codahale.metrics.SharedMetricRegistries

Best Java code snippets using com.codahale.metrics.SharedMetricRegistries.remove (Showing top 5 results out of 315)

origin: org.juzu/juzu-doc-extension-examples

@PreDestroy
public void stop() {
 SharedMetricRegistries.remove(application.getPackageName());
}
origin: juzu/juzu

@PreDestroy
public void stop() {
 SharedMetricRegistries.remove(application.getPackageName());
}
origin: io.takari.nexus/nexus-perf

public void stop() throws InterruptedException {
 SharedMetricRegistries.remove(swarmName);
 for (ClientThread thread : threads) {
  for (int i = 0; i < 3 && thread.isAlive(); i++) {
   thread.interrupt();
   thread.join(1000L);
  }
  if (thread.isAlive()) {
   StringBuilder sb = new StringBuilder(String.format("Thread %s ignored interrupt flag\n", thread.getName()));
   for (StackTraceElement f : thread.getStackTrace()) {
    sb.append("\t").append(f.toString()).append("\n");
   }
   log.error("{}", sb);
  }
 }
}
origin: io.vertx/vertx-dropwizard-metrics

@Override
public void close() {
 if (shutdown) {
  RegistryHelper.shutdown(registry);
  if (options.getRegistryName() != null) {
   SharedMetricRegistries.remove(options.getRegistryName());
  }
 }
 List<HttpClientReporter> reporters;
 synchronized (this) {
  reporters = new ArrayList<>(clientReporters.values());
 }
 for (HttpClientReporter reporter : reporters) {
  reporter.close();
 }
 if (doneHandler != null) {
  doneHandler.handle(null);
 }
}
origin: io.takari.nexus/nexus-perf

SharedMetricRegistries.remove(name);
SharedMetricRegistries.getOrCreate(name).registerAll(metricSet);
com.codahale.metricsSharedMetricRegistriesremove

Popular methods of SharedMetricRegistries

  • getOrCreate
  • add
  • clear
  • setDefault
    Sets the provided registry as the default one under the provided name
  • tryGetDefault
    Same as #getDefault() except returns null when the default registry has not been set.
  • getDefault
    Gets the name of the default registry, if it has been set
  • names

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JLabel (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now