Ejemplo n.º 1
0
 /**
  * Used when you want to create your own key for the monitor. This works similarly to a group by
  * clause where the key is any columns used after the group by clause.
  */
 public static Monitor add(MonKey key, double value) {
   return factory.add(key, value);
 }
Ejemplo n.º 2
0
 /**
  * Aggregate the passed in value with the monitor associated with the label, and the units. The
  * aggregation tracks hits, avg, total, min, max and more. Note the monitor returned is
  * threadsafe. However, it is best to get a monitor vi this method and not reuse the handle as
  * TimeMonitors are not thread safe (see the getTimeMonitor method. <b>Sample call:</b><br>
  *
  * <blockquote>
  *
  * <code><pre>
  * Monitor mon=MonitorFactory.add("bytes.sent","MB", 1024);
  * </pre></code>
  *
  * </blockquote>
  *
  * <br>
  * <br>
  */
 public static Monitor add(String label, String units, double value) {
   return factory.add(label, units, value);
 }