@Singleton public class SessionMonitoringStore extends Object
SessionMonitoringTimingStore
. This timing store contains a (configurable) number of the most-recent
SessionTimingEntry
samples, which can be used to calculate e.g. the slowest, or average speed of a given
operation.
Uses an ExecutorService to perform writes out to the store (which may block).Modifier and Type | Field and Description |
---|---|
static String |
EXECUTOR_BINDING_NAME |
Constructor and Description |
---|
SessionMonitoringStore(ExecutorService executorService,
SessionMonitoringTimingStoreFactory sessionMonitoringTimingStoreFactory)
Guice-powered constructor, setting ourselves up with an executor service (which we will use to offload
our monitoring writes).
|
Modifier and Type | Method and Description |
---|---|
long |
getAverageDestroyTime(SessionMonitorType type)
Gets the average value of entries in the destroyStore.
|
long |
getAverageLogoutTime(SessionMonitorType type)
Gets the average value of entries in the logoutStore.
|
long |
getAverageRefreshTime(SessionMonitorType type)
Gets the average value of entries in the refreshStore.
|
long |
getAverageSetPropertyTime(SessionMonitorType type)
Gets the average value of entries in the propertyStore.
|
void |
storeDestroyTime(long duration,
SessionMonitorType type)
Stores an entry in the destroyStore, offloading the work to another thread.
|
void |
storeLogoutTime(long duration,
SessionMonitorType type)
Stores an entry in the logoutStore, offloading the work to another thread.
|
void |
storeRefreshTime(long duration,
SessionMonitorType type)
Stores an entry in the refreshStore, offloading the work to another thread.
|
void |
storeSetPropertyTime(long duration,
SessionMonitorType type)
Stores an entry in the propertyStore, offloading the work to another thread.
|
public static final String EXECUTOR_BINDING_NAME
@Inject public SessionMonitoringStore(@Named(value="SESSION_MONITORING_EXECUTOR") ExecutorService executorService, SessionMonitoringTimingStoreFactory sessionMonitoringTimingStoreFactory)
executorService
- the service to which to offload out writespublic void storeRefreshTime(long duration, SessionMonitorType type)
duration
- the length of time the new entry representstype
- the type of session to which this entry pertainspublic long getAverageRefreshTime(SessionMonitorType type)
type
- the type of session whose averages we are interested inpublic void storeSetPropertyTime(long duration, SessionMonitorType type)
duration
- the length of time the new entry representstype
- the type of session to which this entry pertainspublic long getAverageSetPropertyTime(SessionMonitorType type)
type
- the type of session whose averages we are interested inpublic void storeDestroyTime(long duration, SessionMonitorType type)
duration
- the length of time the new entry representstype
- the type of session to which this entry pertainspublic long getAverageDestroyTime(SessionMonitorType type)
type
- the type of session whose averages we are interested inpublic void storeLogoutTime(long duration, SessionMonitorType type)
duration
- the length of time the new entry representstype
- the type of session to which this entry pertainspublic long getAverageLogoutTime(SessionMonitorType type)
type
- the type of session whose averages we are interested inCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.