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, unregisterSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetObjectName, getTypepublic SessionManagerAdmin(SessionManager manager)
public java.lang.String getName()
getName in interface ManagedObjectMXBeangetName in class AbstractManagedObjectpublic WebAppMXBean getWebApp()
getWebApp in interface SessionManagerMXBeanpublic boolean isAlwaysSaveSession()
isAlwaysSaveSession in interface SessionManagerMXBeanpublic boolean isCookieAppendServerIndex()
isCookieAppendServerIndex in interface SessionManagerMXBeanpublic java.lang.String getCookieDomain()
getCookieDomain in interface SessionManagerMXBeanpublic boolean isCookieHttpOnly()
isCookieHttpOnly in interface SessionManagerMXBeanpublic long getCookieLength()
getCookieLength in interface SessionManagerMXBeanpublic long getCookieMaxAge()
getCookieMaxAge in interface SessionManagerMXBeanpublic java.lang.String getCookieName()
getCookieName in interface SessionManagerMXBeanpublic java.lang.String getCookiePort()
getCookiePort in interface SessionManagerMXBeanpublic boolean isCookieSecure()
isCookieSecure in interface SessionManagerMXBeanpublic int getCookieVersion()
getCookieVersion in interface SessionManagerMXBeanpublic boolean isEnableCookies()
isEnableCookies in interface SessionManagerMXBeanpublic boolean isEnableURLRewriting()
isEnableURLRewriting in interface SessionManagerMXBeanpublic boolean isIgnoreSerializationErrors()
isIgnoreSerializationErrors in interface SessionManagerMXBeanpublic boolean isInvalidateAfterListener()
isInvalidateAfterListener in interface SessionManagerMXBeanpublic boolean isReuseSessionId()
isReuseSessionId in interface SessionManagerMXBeanpublic java.lang.String getSaveMode()
getSaveMode in interface SessionManagerMXBeanpublic int getSessionMax()
getSessionMax in interface SessionManagerMXBeanpublic long getSessionTimeout()
getSessionTimeout in interface SessionManagerMXBeanpublic PersistentStoreMXBean getPersistentStore()
getPersistentStore in interface SessionManagerMXBeanpublic int getActiveSessionCount()
public long getSessionActiveCount()
getSessionActiveCount in interface SessionManagerMXBeanpublic long getSessionCreateCountTotal()
getSessionCreateCountTotal in interface SessionManagerMXBeanpublic long getSessionInvalidateCountTotal()
getSessionInvalidateCountTotal in interface SessionManagerMXBeanpublic long getSessionTimeoutCountTotal()
getSessionTimeoutCountTotal in interface SessionManagerMXBeanpublic java.lang.String getSessionStoreType()
public java.lang.String sessionSerializationDebug(java.lang.String id)
sessionSerializationDebug in interface SessionManagerMXBeanpublic java.lang.String sessionAsJsonString(java.lang.String id)
sessionAsJsonString in interface SessionManagerMXBeanpublic java.lang.String[] sessionIdList()
sessionIdList in interface SessionManagerMXBeanpublic java.lang.String sessionsAsJsonString()
sessionsAsJsonString in interface SessionManagerMXBeanpublic long getEstimatedMemorySize()
getEstimatedMemorySize in interface SessionManagerMXBeanpublic int stickySessionServer(java.lang.String sessionId,
int count)
stickySessionServer in interface SessionManagerMXBeanpublic void unregister()
public java.lang.String toString()
toString in class AbstractManagedObject