Class CompositeEfficiencyRecorder
- java.lang.Object
-
- com.levigo.jadice.server.core.util.monitoring.CompositeEfficiencyRecorder
-
-
Constructor Summary
Constructors Constructor Description CompositeEfficiencyRecorder(long initialResources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addObservation(Long usedTime)
float
calcEfficiency10Min()
float
calcEfficiency1Day()
float
calcEfficiency1Hour()
void
reset()
void
resourcesChanged(long newResourceCount)
-
-
-
Method Detail
-
resourcesChanged
public void resourcesChanged(long newResourceCount)
-
addObservation
public void addObservation(Long usedTime)
- Specified by:
addObservation
in interfaceRecorder<Long>
-
calcEfficiency10Min
public float calcEfficiency10Min()
-
calcEfficiency1Hour
public float calcEfficiency1Hour()
-
calcEfficiency1Day
public float calcEfficiency1Day()
-
-