/** Return the composite monitor of all monitors for this factory */ public static MonitorComposite getRootMonitor() { return factory.getRootMonitor(); }
/** Iterator that contains Monitor's that are in this factory */ public Iterator iterator() { return factory.iterator(); }
/** Start using the passed in key. Note activity stats are incremented */ public static Monitor start(MonKey key) { return factory.start(key); }
/**Return the monitor associated with the label, and units. All statistics associated with the monitor can then be accessed such * as hits, total, avg, min, and max. If the monitor does not exist it will be created. * * <p>Sample call:</p> * <pre>{@code * Monitor mon=MonitorFactory.getMonitor("myPrimaryMonitor"); * }</pre> * */ public static Monitor getMonitor(String label, String units) { return factory.getMonitor(label, units); }
/** 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); }
/** Determine if the monitor associated with the label, and the units currently exists. * * <p>Sample call:</p> * <pre>{@code * Monitor mon=MonitorFactory.getTimeMonitor("myPrimaryMonitor"); * }</pre> * */ public static boolean exists(String label, String units) { return factory.exists(label, units); }
/** Get the maximum number of monitors that JAMon can store. */ public static int getMaxNumMonitors() { return factory.getMaxNumMonitors(); }
/** * This returns the number of monitors in this factory. */ public static int getNumRows() { return factory.getNumRows(); }
public static void enableGlobalActive(boolean enable) { factory.enableGlobalActive(enable); }
/** Return the composite monitor (a collection of monitors) associated with the passed in units. Note in JAMon 1.0 this * method would take a label and would return all monitors that matched that criterion. This ability is now better performed * using ArraySQL from the FormattedDataSet API. See JAMonAdmin.jsp for an example. * * <p>Sample call:</p> * <pre>{@code * Monitor mon=MonitorFactory.getComposite("ms."); * mon=MonitorFactory.getComposite("allMonitors"); * }</pre> * */ public static MonitorComposite getComposite(String units) { return factory.getComposite(units); }
/** Get the monitor associated with the passed in key. It will be created if it doesn't exist */ public static Monitor getMonitor(MonKey key) { return factory.getMonitor(key); }
/** 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); }
/** <p>Determine if the monitor associated with the label, and the units currently exists. </p> * * <b>Sample call:</b><br> * <blockquote><code><pre> * Monitor mon=MonitorFactory.getTimeMonitor("myPrimaryMonitor");<br> * *</pre></code></blockquote><br><br> * */ public static boolean exists(String label, String units) { return factory.exists(label, units); }
/** * Gets the max num monintors. * * @param rootMonitor * the root monitor * @return the max num monintors */ public static int getMaxNumMonitors(final ProfileMonitor rootMonitor) { MonitorFactoryInterface factory = getMonitorFactory(rootMonitor.getLabel()); return factory.getMaxNumMonitors(); }
/** This returns the number of monitors in this factory. */ public static int getNumRows() { return factory.getNumRows(); }
public static void enableGlobalActive(boolean enable) { factory.enableGlobalActive(enable); }
/** <p>Return the composite monitor (a collection of monitors) associated with the passed in units. Note in JAMon 1.0 this * method would take a lable and would return all monitors that matched that criterion. This ability is now better performed * using ArraySQL from the FormattedDataSet API. See JAMonAdmin.jsp for an example. </p> * * <b>Sample call:</b><br> * <blockquote><code><pre> * Monitor mon=MonitorFactory.getComposite("ms.");<br> * mon=MonitorFactory.getComposite("allMonitors");<br> * *</pre></code></blockquote><br><br> * */ public static MonitorComposite getComposite(String units) { return factory.getComposite(units); }
/** Return the composite monitor of all monitors for this factory */ public static MonitorComposite getRootMonitor() { return factory.getRootMonitor(); }
/** Start using the passed in key. Note activity stats are incremented */ public static Monitor start(MonKey key) { return factory.start(key); }
/** Iterator that contains Monitor's that are in this factory */ @Deprecated public static Iterator iterator() { return factory.iterator(); }