public interface HttpSessionManagerMBean
During startup, each Coherence*Web web application will register a single instance of the following MBean:
The MBean will be unregistered upon web application shutdown.
Managed Bean ObjectName Managed Bean ObjectName HttpSessionManagerMBean type=HttpSessionManager, nodeId=cluster node id, appId=web application id
Registry.register(String, Object),
Registry.unregister(String)| Modifier and Type | Field and Description |
|---|---|
static String |
OBJECT_TYPE
String representing the "type" part of ObjectName for the
HttpSessionManagerMBean.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearStoredConfiguration()
Removes the stored configuration which is used to check configuration
consistency.
|
long |
getAverageReapDuration()
Gets the average reap duration since the statistics was reset.
|
long |
getAverageReapedSessions()
Gets the average number of reaped sessions in a reap cycle since the statistics was reset.
|
long |
getAverageReapQueueWaitDuration()
Return the average number of milliseconds reap tasks wait in the queue prior to running.
|
String |
getCollectionClassName()
Return the fully qualified class name of the
HttpSessionCollection
implementation in use. |
String |
getFactoryClassName()
Return the fully qualified class name of the
SessionHelperFactory
implementation in use. |
Date |
getLastReapCycle()
Return the start time for the last reap cycle.
|
long |
getLastReapDuration()
Return the time in milliseconds it took for the last reap cycle to finish.
|
long |
getLastReapQueueWaitDuration()
Return the time the last reap task spent in the queue prior to running.
|
String |
getLocalAttributeCacheName()
Return the name of the local cache that stores non-distributed session
attributes or null if local session attribute storage is disabled.
|
int |
getLocalAttributeCount()
Return the number of non-distributed session attributes stored in the
local session attribute cache or -1 if local session attribute storage
is disabled.
|
String |
getLocalSessionCacheName()
Return the name of the local cache that stores non-distributed sessions
or null if local session storage is disabled.
|
int |
getLocalSessionCount()
Return the number of non-distributed sessions stored in the local session
cache or -1 if local session storage is disabled.
|
long |
getMaxReapDuration()
Gets the maximum reap duration since the statistics was reset.
|
long |
getMaxReapedSessions()
Gets the maximum number of sessions reaped in a reap cycle since the statistics was reset.
|
long |
getMaxReapQueueWaitDuration()
Return the max time in milliseconds a reap task has spent in the queue prior to running since the statistics were
last reset.
|
Date |
getNextReapCycle()
Returns the time for the next reap cycle.
|
int |
getOverflowAverageSize()
Return the average size (in bytes) of the session attributes stored in
the "overflow" clustered cache since the last time statistics were reset
or -1 if a
SplitHttpSessionCollection is not in use. |
String |
getOverflowCacheName()
Return the name of the clustered cache that stores the "large attributes"
that exceed a certain size and thus are determined to be more efficiently
managed as separate cache entries and not as part of the serialized
session object itself.
|
int |
getOverflowMaxSize()
Return the maximum size (in bytes) of a session attribute stored in the
"overflow" clustered cache since the last time statistics were reset or
-1 if a
SplitHttpSessionCollection is not in use. |
int |
getOverflowThreshold()
Return the minimum length (in bytes) that the serialized form of an
attribute value must be in order for that attribute value to be stored in
the separate "overflow" cache that is reserved for large attributes.
|
int |
getOverflowUpdates()
Return the number of updates to session attributes stored in the
"overflow" clustered cache since the last time statistics were reset or
-1 if a
SplitHttpSessionCollection is not in use. |
long |
getReapedSessions()
Returns the number of expired sessions that were reaped in the
last reap cycle.
|
long |
getReapedSessionsTotal()
Returns the number of expired sessions that has been reaped since
the statistics was reset.
|
String |
getServletContextCacheName()
Return the name of the clustered cache that stores ServletContext
attributes or null if the ServletContext is not clustered.
|
String |
getServletContextName()
Return the name of the web application ServletContext.
|
int |
getSessionAverageLifetime()
Return the average lifetime (in seconds) of session objects invalidated
(either due to expiration or to an explicit invalidation) since the last
time statistics were reset.
|
int |
getSessionAverageSize()
Return the average size (in bytes) of session objects placed in the
session storage clustered cache since the last time statistics were reset.
|
String |
getSessionCacheName()
Return the name of the clustered cache that stores serialized session
objects.
|
int |
getSessionIdLength()
Return the length (in characters) of generated session IDs.
|
int |
getSessionMaxSize()
Return the maximum size (in bytes) of a session object placed in the
session storage clustered cache since the last time statistics were reset.
|
int |
getSessionMinSize()
Return the minimum size (in bytes) of a session object placed in the
session storage clustered cache since the last time statistics were reset.
|
int |
getSessionStickyCount()
Return the number of session objects that are pinned to this instance
of the web application or -1 if sticky session optimizations are
disabled.
|
int |
getSessionTimeout()
Return the session expiration time (in seconds) or -1 if sessions never
expire.
|
int |
getSessionUpdates()
Return the number of updates of session object stored in the session
storage clustered cache since the last time statistics were reset.
|
void |
resetStatistics()
Reset the session management statistics.
|
static final String OBJECT_TYPE
long getAverageReapQueueWaitDuration()
long getAverageReapDuration()
long getAverageReapedSessions()
String getCollectionClassName()
HttpSessionCollection
implementation in use.String getFactoryClassName()
SessionHelperFactory
implementation in use.long getLastReapDuration()
long getLastReapQueueWaitDuration()
Date getLastReapCycle()
String getLocalAttributeCacheName()
int getLocalAttributeCount()
getLocalAttributeCacheName()String getLocalSessionCacheName()
int getLocalSessionCount()
getLocalSessionCacheName()long getMaxReapedSessions()
long getMaxReapDuration()
long getMaxReapQueueWaitDuration()
Date getNextReapCycle()
int getOverflowAverageSize()
SplitHttpSessionCollection is not in use.getCollectionClassName(),
getOverflowCacheName(),
getOverflowThreshold()String getOverflowCacheName()
If a SplitHttpSessionCollection is not in use, null is returned.
getCollectionClassName(),
getOverflowThreshold()int getOverflowMaxSize()
SplitHttpSessionCollection is not in use.getCollectionClassName(),
getOverflowCacheName(),
getOverflowThreshold()int getOverflowThreshold()
If a SplitHttpSessionCollection is not in use, -1 is returned.
getCollectionClassName(),
getOverflowCacheName()int getOverflowUpdates()
SplitHttpSessionCollection is not in use.getCollectionClassName(),
getOverflowCacheName(),
getOverflowThreshold()long getReapedSessions()
long getReapedSessionsTotal()
int getSessionAverageLifetime()
int getSessionAverageSize()
String getSessionCacheName()
int getSessionIdLength()
int getSessionMaxSize()
int getSessionMinSize()
int getSessionStickyCount()
int getSessionTimeout()
int getSessionUpdates()
String getServletContextCacheName()
String getServletContextName()
void resetStatistics()
void clearStoredConfiguration()