Example #1
0
 /**
  * Disable MonitorFactory. When disabled the factory returns null/noop monitors. This method has
  * the same
  *
  * <p>effect as calling MonitorFactor.setEnabled(true).
  */
 public static void disable() {
   setEnabled(false);
 }
Example #2
0
 /**
  * Enable MonitorFactory. When enabled the factory returns monitors that store aggregate stats.
  * This method has the same
  *
  * <p>effect as calling MonitorFactor.setEnabled(true).
  */
 public static void enable() {
   setEnabled(true);
 }