Class SessionMonitoringTimingStore
- java.lang.Object
-
- org.forgerock.openam.shared.monitoring.AbstractTimingStore
-
- com.iplanet.dpro.session.monitoring.SessionMonitoringTimingStore
-
public class SessionMonitoringTimingStore extends AbstractTimingStore
An implementation of a timing store specific to the needs of the session monitoring component. Added values are wrapped in aSessionTimingEntry.
-
-
Field Summary
-
Fields inherited from class org.forgerock.openam.shared.monitoring.AbstractTimingStore
durationStore, maxEntries
-
-
Constructor Summary
Constructors Constructor Description SessionMonitoringTimingStore(int maxEntries)Constructs a SessionMonitoringTimingStore with the provided maximum number of entries in its sample window.SessionMonitoringTimingStore(SessionMonitoringService monitoringService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTimingEntry(long duration)Adds an entry to the timing store, having wrapped the supplied long duration in aSessionTimingEntry.-
Methods inherited from class org.forgerock.openam.shared.monitoring.AbstractTimingStore
getDurationAverage, getMaxEntries, getSlowestEvaluation, getSlowestEvaluationDuration
-
-
-
-
Constructor Detail
-
SessionMonitoringTimingStore
@Inject public SessionMonitoringTimingStore(SessionMonitoringService monitoringService)
-
SessionMonitoringTimingStore
public SessionMonitoringTimingStore(int maxEntries)
Constructs a SessionMonitoringTimingStore with the provided maximum number of entries in its sample window.- Parameters:
maxEntries- the maximum number of samples to consider when performing oeprations on the store
-
-
Method Detail
-
addTimingEntry
public void addTimingEntry(long duration)
Adds an entry to the timing store, having wrapped the supplied long duration in aSessionTimingEntry.- Parameters:
duration- the length of time the operation took
-
-