public class SessionManagerAdmin extends AbstractManagedObject implements SessionManagerMXBean
Constructor and Description |
---|
SessionManagerAdmin(SessionManager manager) |
Modifier and Type | Method and Description |
---|---|
int |
getActiveSessionCount()
Returns the active sessions.
|
java.lang.String |
getCookieDomain()
The host domain used for session cookies
|
long |
getCookieLength()
The length of the generated cookie
|
long |
getCookieMaxAge()
The cookie max-age sent to the browser.
|
java.lang.String |
getCookieName()
Returns the cookie name for sessions.
|
java.lang.String |
getCookiePort()
Returns the cookie port for sessions.
|
int |
getCookieVersion()
Returns the cookie version number.
|
long |
getEstimatedMemorySize() |
java.lang.String |
getName()
The SessionManager doesn't have a name.
|
PersistentStoreMXBean |
getPersistentStore()
Returns the object name for the persistent store
|
java.lang.String |
getSaveMode()
Returns the save mode.
|
long |
getSessionActiveCount()
Returns the active sessions.
|
long |
getSessionCreateCountTotal()
Returns the session create count
|
long |
getSessionInvalidateCountTotal()
Returns the session invalidate count
|
int |
getSessionMax()
Returns the maximum number of sessions.
|
java.lang.String |
getSessionStoreType()
Returns the session store type
|
long |
getSessionTimeout()
Returns session timeout (in ms)
|
long |
getSessionTimeoutCountTotal()
Returns the session timeout count
|
WebAppMXBean |
getWebApp()
Returns the owning web-app's
|
boolean |
isAlwaysSaveSession()
True if the session should be serialized for storage, even if
no attributes in the session have been set.
|
boolean |
isCookieAppendServerIndex()
If true, the server's cluster index is appended to the cookie value.
|
boolean |
isCookieHttpOnly()
True if the cookie should only be used for non-secure sessions.
|
boolean |
isCookieSecure()
True if the cookie should only be used for secure sessions.
|
boolean |
isEnableCookies()
Returns true if cookies are enabled.
|
boolean |
isEnableURLRewriting()
Returns true if url-rewriting is enabled.
|
boolean |
isIgnoreSerializationErrors()
Returns true if persistent sessions should ignore serialization errors
|
boolean |
isInvalidateAfterListener()
True if sessions should invalidate only after calling listeners.
|
boolean |
isReuseSessionId()
True if sessions should reuse available session cookie values.
|
java.lang.String |
sessionAsJsonString(java.lang.String id) |
java.lang.String[] |
sessionIdList() |
java.lang.String |
sessionsAsJsonString() |
java.lang.String |
sessionSerializationDebug(java.lang.String id)
Returns a debug string for the session
|
int |
stickySessionServer(java.lang.String sessionId,
int count) |
java.lang.String |
toString() |
void |
unregister()
Unregisters the object with JMX.
|
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getObjectName, getType
public SessionManagerAdmin(SessionManager manager)
public java.lang.String getName()
getName
in interface ManagedObjectMXBean
getName
in class AbstractManagedObject
public WebAppMXBean getWebApp()
getWebApp
in interface SessionManagerMXBean
public boolean isAlwaysSaveSession()
isAlwaysSaveSession
in interface SessionManagerMXBean
public boolean isCookieAppendServerIndex()
isCookieAppendServerIndex
in interface SessionManagerMXBean
public java.lang.String getCookieDomain()
getCookieDomain
in interface SessionManagerMXBean
public boolean isCookieHttpOnly()
isCookieHttpOnly
in interface SessionManagerMXBean
public long getCookieLength()
getCookieLength
in interface SessionManagerMXBean
public long getCookieMaxAge()
getCookieMaxAge
in interface SessionManagerMXBean
public java.lang.String getCookieName()
getCookieName
in interface SessionManagerMXBean
public java.lang.String getCookiePort()
getCookiePort
in interface SessionManagerMXBean
public boolean isCookieSecure()
isCookieSecure
in interface SessionManagerMXBean
public int getCookieVersion()
getCookieVersion
in interface SessionManagerMXBean
public boolean isEnableCookies()
isEnableCookies
in interface SessionManagerMXBean
public boolean isEnableURLRewriting()
isEnableURLRewriting
in interface SessionManagerMXBean
public boolean isIgnoreSerializationErrors()
isIgnoreSerializationErrors
in interface SessionManagerMXBean
public boolean isInvalidateAfterListener()
isInvalidateAfterListener
in interface SessionManagerMXBean
public boolean isReuseSessionId()
isReuseSessionId
in interface SessionManagerMXBean
public java.lang.String getSaveMode()
getSaveMode
in interface SessionManagerMXBean
public int getSessionMax()
getSessionMax
in interface SessionManagerMXBean
public long getSessionTimeout()
getSessionTimeout
in interface SessionManagerMXBean
public PersistentStoreMXBean getPersistentStore()
getPersistentStore
in interface SessionManagerMXBean
public int getActiveSessionCount()
public long getSessionActiveCount()
getSessionActiveCount
in interface SessionManagerMXBean
public long getSessionCreateCountTotal()
getSessionCreateCountTotal
in interface SessionManagerMXBean
public long getSessionInvalidateCountTotal()
getSessionInvalidateCountTotal
in interface SessionManagerMXBean
public long getSessionTimeoutCountTotal()
getSessionTimeoutCountTotal
in interface SessionManagerMXBean
public java.lang.String getSessionStoreType()
public java.lang.String sessionSerializationDebug(java.lang.String id)
sessionSerializationDebug
in interface SessionManagerMXBean
public java.lang.String sessionAsJsonString(java.lang.String id)
sessionAsJsonString
in interface SessionManagerMXBean
public java.lang.String[] sessionIdList()
sessionIdList
in interface SessionManagerMXBean
public java.lang.String sessionsAsJsonString()
sessionsAsJsonString
in interface SessionManagerMXBean
public long getEstimatedMemorySize()
getEstimatedMemorySize
in interface SessionManagerMXBean
public int stickySessionServer(java.lang.String sessionId, int count)
stickySessionServer
in interface SessionManagerMXBean
public void unregister()
public java.lang.String toString()
toString
in class AbstractManagedObject