Class EfficiencyRecorder
- java.lang.Object
-
- com.levigo.jadice.server.core.util.monitoring.EfficiencyRecorder
-
-
Constructor Summary
Constructors Constructor Description EfficiencyRecorder(long initalResources)
EfficiencyRecorder(long initialResources, long observationTimeWindow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObservation(Long usedTime)
long
calcAvailableResourceTime()
float
calcEfficiency()
long
calcUsedResourceTime()
void
reset()
void
resourcesChanged(long newResourceCount)
void
shrink()
String
toString()
-
-
-
Method Detail
-
addObservation
public void addObservation(Long usedTime)
- Specified by:
addObservation
in interfaceRecorder<Long>
-
resourcesChanged
public void resourcesChanged(long newResourceCount)
-
shrink
public void shrink()
-
calcEfficiency
public float calcEfficiency()
-
calcAvailableResourceTime
public long calcAvailableResourceTime()
-
calcUsedResourceTime
public long calcUsedResourceTime()
-
-