Exemple #1
0
 /** Unregister all statistics from <tt>Servo</tt>. */
 public static void shutdown() {
   for (EurekaMonitors c : EurekaMonitors.values()) {
     DefaultMonitorRegistry.getInstance().unregister(Monitors.newObjectMonitor(c.name(), c));
   }
 }
Exemple #2
0
 /** Register all statistics with <tt>Servo</tt>. */
 public static void registerAllStats() {
   for (EurekaMonitors c : EurekaMonitors.values()) {
     Monitors.registerObject(c.getName(), c);
   }
 }