| de.mcs.jmeasurement.Monitor
All known Subclasses: de.mcs.jmeasurement.NullMonitor, de.mcs.jmeasurement.DefaultMonitor,
Monitor | public interface Monitor (Code) | | This is the basic interface of an monitor. The monitor will measure the time
between the call of the start() Methode and the call of the stop() methode.
pause() will hold the measurement, resume() will resume it.
author: w.klaas |
decrease | void decrease(long msec)(Code) | | decreasing the measurement time with msec milliseconds. Works only when
monitor is currently measuring.
Parameters: msec - time to decrease |
getAccrued | long getAccrued()(Code) | | long getting the measured time. |
getException | String getException()(Code) | | the text of the recorded exception or null. since: 0.64 |
getMonitoId | String getMonitoId()(Code) | | get the ID of this monitor.
the id of this monitor |
hasException | boolean hasException()(Code) | | this monitor has recorded an exception. since: 0.64 |
increase | void increase(long msec)(Code) | | increasing the measurement time with msec milliseconds. Works only when
monitor is currently measuring.
Parameters: msec - time to increase |
isPaused | boolean isPaused()(Code) | | boolean the monitor is actual paused |
isRunning | boolean isRunning()(Code) | | boolean the monitor is actual running |
pause | boolean pause()(Code) | | pausing the measurement.
boolean true if the monitor could be paused,otherwise false |
reset | void reset()(Code) | | resetting the measurement. If this methode is called all information
about this monitor is destroyed.
|
resume | boolean resume()(Code) | | resume the measurement.
boolean true if the monitor could be resumed,otherwise false |
setException | void setException(String text)(Code) | | setting a exception. This also stops the monitor, if it's running. The
measuredata will not be accumulated.
Parameters: text - the text for this exception. since: 0.64 |
setException | void setException(Throwable cause)(Code) | | setting a exception. This also stops the monitor, if it's running. The
measuredata will not be accumulated.
Parameters: cause - the exception to store. since: 0.66 |
start | boolean start()(Code) | | starting the measurement of this monitor.
boolean true if the monitor could be startet,otherwise false |
stop | boolean stop()(Code) | | stopping the measurment.
boolean true if the monitor could be stopped,otherwise false |
|
|