Class JobStateRecorder
- java.lang.Object
-
- com.levigo.jadice.server.core.util.monitoring.JobStateRecorder
-
-
Constructor Summary
Constructors Constructor Description JobStateRecorder(int numberOfRecentObservations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObservation(Job.State state)
int
getRecentObservationCount()
int
getRecentObservationCount(Job.State state)
float
getRecentObservationRate(Job.State state)
int
getTotalObservationCount()
int
getTotalObservationCount(Job.State state)
float
getTotalObservationRate(Job.State state)
void
reset()
Clear all data recorded so far.
-
-
-
Method Detail
-
addObservation
public void addObservation(Job.State state)
- Specified by:
addObservation
in interfaceRecorder<Job.State>
-
getTotalObservationCount
public int getTotalObservationCount(Job.State state)
-
getTotalObservationCount
public int getTotalObservationCount()
-
getTotalObservationRate
public float getTotalObservationRate(Job.State state)
-
getRecentObservationCount
public int getRecentObservationCount(Job.State state)
-
getRecentObservationCount
public int getRecentObservationCount()
-
getRecentObservationRate
public float getRecentObservationRate(Job.State state)
-
-