public interface SessionManagerMBean
Modifier and Type | Method and Description |
---|---|
long |
getActiveSessionCount()
Gets the number of sessions active on this node.
|
int |
getActiveSessions()
Number of active sessions at this moment.
|
String |
getClassName()
Gets the fully qualified class name of the managed object
|
long |
getCreatedSessionCount()
Gets the number of sessions created on this node.
|
boolean |
getDistributable()
Gets whether this manager's sessions are distributable.
|
long |
getExpiredSessionCount()
Gets the number of sessions that have been expired on this node.
|
int |
getExpiredSessions()
Gets the number of sessions that expired.
|
long |
getLocalActiveSessionCount()
Gets the count of sessions known to this manager, excluding those in the distributed stored that have not been accessed
on this node.
|
int |
getMaxActive()
Gets the maximum number of active sessions so far.
|
int |
getMaxActiveAllowed()
Gets the maximum number of
active sessions that will concurrently be allowed on this
node. |
long |
getMaxActiveSessionCount()
Gets the highest number of sessions concurrently active on this node.
|
int |
getMaxActiveSessions()
Gets the maximum number of active Sessions allowed, or -1 for no limit.
|
int |
getMaxInactiveInterval()
Gets the maximum time interval, in seconds, between client requests after which sessions created by this manager should
be expired.
|
long |
getMaxLocalActiveSessionCount()
Gets the highest value seen for
#getLocalSessionCount() |
String |
getName()
Gets the name of this Manager implementation.
|
int |
getProcessExpiresFrequency()
Gets the frequency of the manager checks (expiration and passivation)
|
long |
getProcessingTime()
Gets the cumulative number of milliseconds spent in the
Manager.backgroundProcess() method. |
long |
getRejectedSessionCount()
Gets the number of times session creation has failed because the number of active sessions exceeds
maxActiveAllowed |
int |
getRejectedSessions()
Gets the number of sessions we rejected due to maxActive being reached.
|
ReplicationStatistics |
getReplicationStatistics()
Gets the replication statistics for the sessions managed by this manager.
|
int |
getSessionAverageAliveTime()
Gets the average time an expired session had been alive
|
int |
getSessionCounter()
Total number of sessions created by this manager.
|
int |
getSessionIdLength()
Gets the number of characters used in creating a session id.
|
int |
getSessionMaxAliveTime()
Gets the longest time an expired session had been alive
|
long |
getTimeSinceLastReset()
Gets the elapsed time (in seconds) since this manager was instantiated or the last call to resetStats()
|
void |
resetStats()
Resets all statistics.
|
void |
setDistributable(boolean distributable)
Set the distributable flag for the sessions supported by this Manager.
|
void |
setMaxActive(int maxActive)
Sets the maximum number of active sessions so far.
|
void |
setMaxActiveAllowed(int max)
Sets the maximum number of active sessions that will concurrently be allowed on this node, excluding any sessions that
have been passivated.
|
void |
setMaxInactiveInterval(int seconds)
Sets the maximum time interval, in seconds, between client requests after which sessions created by this manager should
be expired.
|
void |
setProcessExpiresFrequency(int frequency)
Sets the frequency of the manager checks (expiration and passivation)
|
void |
setProcessingTime(long processingTime)
Sets the cumulative number of milliseconds spent in the
Manager.backgroundProcess() method. |
void |
setSessionCounter(int sessionCounter)
Sets the total number of sessions created by this manager.
|
void |
setSessionMaxAliveTime(int sessionAliveTime)
Sets the longest time an expired session had been alive
|
ReplicationStatistics getReplicationStatistics()
void resetStats()
long getTimeSinceLastReset()
long getActiveSessionCount()
long getLocalActiveSessionCount()
long getRejectedSessionCount()
maxActiveAllowed
long getCreatedSessionCount()
long getExpiredSessionCount()
long getMaxActiveSessionCount()
long getMaxLocalActiveSessionCount()
#getLocalSessionCount()
int getMaxActiveAllowed()
active sessions
that will concurrently be allowed on this
node. This includes replicated sessions that have not been accessed on this node.void setMaxActiveAllowed(int max)
active session count
exceeds this value and an attempt to create a new session is made,
session creation will fail with an IllegalStateException
.max
- the max number of sessions, or -1
if there is no limit.int getMaxInactiveInterval()
void setMaxInactiveInterval(int seconds)
interval
- The new maximum intervalboolean getDistributable()
void setDistributable(boolean distributable)
distributable
- the distributable flaglong getProcessingTime()
Manager.backgroundProcess()
method.void setProcessingTime(long processingTime)
Manager.backgroundProcess()
method.processingTime
- the processing timeint getSessionIdLength()
String getClassName()
int getMaxActiveSessions()
int getProcessExpiresFrequency()
void setProcessExpiresFrequency(int frequency)
String getName()
int getActiveSessions()
getActiveSessionCount()
.int getSessionCounter()
getCreatedSessionCount()
void setSessionCounter(int sessionCounter)
sessionCounter
- the new created session countint getMaxActive()
getMaxActiveSessionCount()
void setMaxActive(int maxActive)
maxActive
- the new maximum number of active sessionsint getSessionMaxAliveTime()
void setSessionMaxAliveTime(int sessionAliveTime)
sessionAliveTime
- the new longest session lifeint getSessionAverageAliveTime()
int getExpiredSessions()
getExpiredSessionCount()
int getRejectedSessions()
getRejectedSessionCount()
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.