at.spardat.xma.monitoring
Class TimeingEvent

java.lang.Object
  extended byat.spardat.xma.monitoring.TimeingEvent

public class TimeingEvent
extends java.lang.Object

Wrapper class for sITSolutions monitoring, now working with the monitoring plugin, for independence and extendability to other monitoring solutions. If no monitoring plugin is configured, all its method do nothing.

Each instance of this class constitutes one time measurement. The measurement is started by calling the constructor and ended by calling either success() or failure().


Constructor Summary
TimeingEvent(java.lang.String varName)
          Constructor, starts a new measurement.
 
Method Summary
 void failure()
          Ends the measusuremnt with a failure status.
static void failure(java.lang.String variable, int value)
          Reports observations like the size of an RPC to the monitoring system.
 void success()
          Ends the measurement with a success status.
static void success(java.lang.String variable, int value)
          Reports observations like the size of an RPC to the monitoring system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeingEvent

public TimeingEvent(java.lang.String varName)
Constructor, starts a new measurement.

Parameters:
varName - name of the variable to measure.
Method Detail

success

public void success()
Ends the measurement with a success status.


failure

public void failure()
Ends the measusuremnt with a failure status. This is used by the runtime to indicate exceptions.


success

public static void success(java.lang.String variable,
                           int value)
Reports observations like the size of an RPC to the monitoring system. It is reported with a success status.

Parameters:
variable - the name of the parameter to report
value - the value of the parameter to report.

failure

public static void failure(java.lang.String variable,
                           int value)
Reports observations like the size of an RPC to the monitoring system. It is reprorted with a failure status; e.g. the RPC ended in an exception.

Parameters:
variable - the name of the parameter to report
value - the value of the parameter to report.