Esempio n. 1
0
 /** Shuts down all thread pools for the default registry. */
 public static void shutdown() {
   try {
     DEFAULT_REGISTRY.shutdown();
     JmxReporter.shutdownDefault();
     Runtime.getRuntime().removeShutdownHook(SHUTDOWN_HOOK);
   } catch (IllegalStateException ignored) {
   }
 }
Esempio n. 2
0
 static {
   JmxReporter.startDefault(DEFAULT_REGISTRY);
   Runtime.getRuntime().addShutdownHook(SHUTDOWN_HOOK);
 }
Esempio n. 3
0
 public void run() {
   JmxReporter.shutdownDefault();
 }