public interface Monitor
Modifier and Type | Method and Description |
---|---|
void |
addObservation()
Records the observation and stops the monitor.
|
void |
addObservation(double duration)
Records the obervation but does not stop the monitor.
|
void |
addObservation(long stopTime,
double duration)
Records observation observed at a specified time.
|
String |
getDescription() |
MonitorId |
getId() |
String |
getInstanceData() |
java.util.logging.Level |
getLevel() |
double |
getMean() |
long |
getObservations() |
long |
start()
Starts the Monitor at the current time and optionally records a start message.
|
long |
start(long startTime)
Starts this Monitor at a specified time.
|
double |
stop()
Stops the Monitor and optionally records a stop message.
|
MonitorId getId()
java.util.logging.Level getLevel()
String getDescription()
String getInstanceData()
void addObservation()
void addObservation(double duration)
duration
- time since the last observationvoid addObservation(long stopTime, double duration)
stopTime
- time at which observation was recordedduration
- duration since the last observationlong getObservations()
double getMean()
long start()
long start(long startTime)
startTime
- an actual start timedouble stop()