public interface DistributableSessionManagerMBean extends SessionManagerMBean
Modifier and Type | Method and Description |
---|---|
void |
expireSession(String sessionId)
Expires the given session.
|
String |
getCacheConfigName()
Gets the cache config name used to get the underlying cache from a cache manager.
|
String |
getCreationTime(String sessionId)
Gets the creation time of the given session.
|
int |
getDuplicates()
Gets the number of duplicated session ids generated.
|
String |
getLastAccessedTime(String sessionId)
Gets the last time the given session was accessed.
|
long |
getMaxPassivatedSessionCount()
Gets the highest number of passivated sessions seen.
|
int |
getMaxUnreplicatedInterval()
Get the maximum interval between requests, in seconds, after which a request will trigger replication of the session's
metadata regardless of whether the request has otherwise made the session dirty.
|
long |
getPassivatedSessionCount()
Gets the number of passivated sessions
|
long |
getPassivationMaxIdleTime()
Elapsed time after which an inactive session will be passivated to persistent storage if
passivation is enabled . |
long |
getPassivationMinIdleTime()
Elapsed time after which an inactive session will be passivated to persistent storage if
passivation is enabled and the manager needs to passivate sessions early in order to comply with a
SessionManagerMBean.getMaxActiveAllowed() setting. |
org.jboss.metadata.web.jboss.ReplicationGranularity |
getReplicationGranularity()
Gets the replication granularity.
|
org.jboss.metadata.web.jboss.ReplicationTrigger |
getReplicationTrigger()
Gets the replication trigger.
|
String |
getSessionAttribute(String sessionId,
String key)
Gets the value of the attribute with the given key from the given session.
|
int |
getSnapshotInterval()
Gets the number of milliseconds between replications if "interval" mode is used.
|
org.jboss.metadata.web.jboss.SnapshotMode |
getSnapshotMode()
Gets the snapshot mode.
|
boolean |
getUseJK()
Gets whether JK is being used and special handling of a jvmRoute portion of session ids is needed.
|
boolean |
isPassivationEnabled()
Gets whether passivation was enabled in jboss-web.xml and in the underlying cache.
|
String |
listLocalSessionIds()
Lists all session ids known to this manager, excluding those in the distributed store that have not been accessed on this
node.
|
String |
listSessionIds()
Lists all session ids known to this manager, including those in the distributed store that have not been accessed on this
node.
|
void |
setDuplicates(int duplicates)
Sets the number of duplicated session ids generated.
|
void |
setMaxUnreplicatedInterval(int maxUnreplicatedInterval)
Sets the maximum interval between requests, in seconds, after which a request will trigger replication of the session's
metadata regardless of whether the request has otherwise made the session dirty.
|
getActiveSessionCount, getActiveSessions, getClassName, getCreatedSessionCount, getDistributable, getExpiredSessionCount, getExpiredSessions, getLocalActiveSessionCount, getMaxActive, getMaxActiveAllowed, getMaxActiveSessionCount, getMaxActiveSessions, getMaxInactiveInterval, getMaxLocalActiveSessionCount, getName, getProcessExpiresFrequency, getProcessingTime, getRejectedSessionCount, getRejectedSessions, getReplicationStatistics, getSessionAverageAliveTime, getSessionCounter, getSessionIdLength, getSessionMaxAliveTime, getTimeSinceLastReset, resetStats, setDistributable, setMaxActive, setMaxActiveAllowed, setMaxInactiveInterval, setProcessExpiresFrequency, setProcessingTime, setSessionCounter, setSessionMaxAliveTime
String getSessionAttribute(String sessionId, String key)
sessionId
- the id of the sessionkey
- the attribute keynull
if the session or key does not exist.void expireSession(String sessionId)
sessionId
- the id of the sessionString getLastAccessedTime(String sessionId)
sessionId
- String getCreationTime(String sessionId)
sessionId
- String getCacheConfigName()
null
if this has not yet been configured or the cache was directly injected.org.jboss.metadata.web.jboss.ReplicationGranularity getReplicationGranularity()
null
if this has not yet been configured.org.jboss.metadata.web.jboss.ReplicationTrigger getReplicationTrigger()
null
if this has not yet been configured.boolean getUseJK()
org.jboss.metadata.web.jboss.SnapshotMode getSnapshotMode()
int getSnapshotInterval()
int getMaxUnreplicatedInterval()
-1
.
The cost of the metadata replication depends on the configured replication granularity
. With SESSION
, the session's attribute map is replicated along with the metadata,
so it can be fairly costly. With other granularities, the metadata object is replicated separately from the attributes
and only contains a String, and a few longs, ints and booleans.0
means replicate metadata on every request; a value of -1
means never
replicate metadata unless the session is otherwise dirty.void setMaxUnreplicatedInterval(int maxUnreplicatedInterval)
maxUnreplicatedInterval
- the maximum interval since last replication after which a request will trigger session
metadata replication. A value of 0
means replicate metadata on every request; a value of
-1
means never replicate metadata unless the session is otherwise dirty.String listSessionIds()
String listLocalSessionIds()
boolean isPassivationEnabled()
true
if passivation is enabled in both jboss-web.xml and in the cache; false
otherwiselong getPassivatedSessionCount()
long getMaxPassivatedSessionCount()
long getPassivationMaxIdleTime()
passivation is enabled
.long getPassivationMinIdleTime()
passivation is enabled
and the manager needs to passivate sessions early in order to comply with a
SessionManagerMBean.getMaxActiveAllowed()
setting.int getDuplicates()
void setDuplicates(int duplicates)
duplicates
- the number of duplicates session idsCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.