01: package com.jamonapi;
02:
03: import java.util.*;
04:
05: /**
06: * Most basic interfaces that all monitors must implement. Right now the only type of Monitors are timing related monitors, but
07: * the interface is generic that future types may be added. For example it would be easy to add a Monitor that could track the number of
08: * bytes sent to a client browser or something similar.
09: *
10: **/
11: public interface MinimalMonitor {
12: /** Return the accrued value. In the case of timing monitors this would be the elapsed time since the timer started **/
13: public long getAccrued();
14:
15: /** Increase the monitors value **/
16: public void increase(long increaseValue);
17:
18: /** Erase the values in the monitor **/
19: public void reset();
20:
21: /** Add this elements value to the ArrayList. This is used to display the Monitor in a tabular format. **/
22: public void getData(ArrayList rowData);
23:
24: /** Add this elements header value to an ArrayList. This is used to display the Monitor in a tabular format. **/
25: public void getHeader(ArrayList header);
26: }
|