示例#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));
   }
 }
示例#2
0
 /** Register all statistics with <tt>Servo</tt>. */
 public static void registerAllStats() {
   for (EurekaMonitors c : EurekaMonitors.values()) {
     Monitors.registerObject(c.getName(), c);
   }
 }