com.caucho.server.session
Class SessionManagerAdmin

java.lang.Object
  extended by com.caucho.management.server.AbstractManagedObject
      extended by com.caucho.server.session.SessionManagerAdmin
All Implemented Interfaces:
ManagedObjectMXBean, SessionManagerMXBean

public class SessionManagerAdmin
extends AbstractManagedObject
implements SessionManagerMXBean

Implementation of the SessionManager's administration mbean.


Constructor Summary
SessionManagerAdmin(SessionManager manager)
           
 
Method Summary
 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.
 
Methods inherited from class com.caucho.management.server.AbstractManagedObject
addObjectNameProperties, getObjectName, getType, registerSelf, unregisterSelf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.management.server.ManagedObjectMXBean
getObjectName, getType
 

Constructor Detail

SessionManagerAdmin

public SessionManagerAdmin(SessionManager manager)
Method Detail

getName

public java.lang.String getName()
The SessionManager doesn't have a name.

Specified by:
getName in interface ManagedObjectMXBean
Specified by:
getName in class AbstractManagedObject

getWebApp

public WebAppMXBean getWebApp()
Returns the owning web-app's

Specified by:
getWebApp in interface SessionManagerMXBean

isAlwaysSaveSession

public boolean isAlwaysSaveSession()
True if the session should be serialized for storage, even if no attributes in the session have been set.

Specified by:
isAlwaysSaveSession in interface SessionManagerMXBean

isCookieAppendServerIndex

public boolean isCookieAppendServerIndex()
If true, the server's cluster index is appended to the cookie value.

Specified by:
isCookieAppendServerIndex in interface SessionManagerMXBean

getCookieDomain

public java.lang.String getCookieDomain()
The host domain used for session cookies

Specified by:
getCookieDomain in interface SessionManagerMXBean

isCookieHttpOnly

public boolean isCookieHttpOnly()
True if the cookie should only be used for non-secure sessions.

Specified by:
isCookieHttpOnly in interface SessionManagerMXBean

getCookieLength

public long getCookieLength()
The length of the generated cookie

Specified by:
getCookieLength in interface SessionManagerMXBean

getCookieMaxAge

public long getCookieMaxAge()
The cookie max-age sent to the browser.

Specified by:
getCookieMaxAge in interface SessionManagerMXBean

getCookieName

public java.lang.String getCookieName()
Returns the cookie name for sessions.

Specified by:
getCookieName in interface SessionManagerMXBean

getCookiePort

public java.lang.String getCookiePort()
Returns the cookie port for sessions.

Specified by:
getCookiePort in interface SessionManagerMXBean

isCookieSecure

public boolean isCookieSecure()
True if the cookie should only be used for secure sessions.

Specified by:
isCookieSecure in interface SessionManagerMXBean

getCookieVersion

public int getCookieVersion()
Returns the cookie version number.

Specified by:
getCookieVersion in interface SessionManagerMXBean

isEnableCookies

public boolean isEnableCookies()
Returns true if cookies are enabled.

Specified by:
isEnableCookies in interface SessionManagerMXBean

isEnableURLRewriting

public boolean isEnableURLRewriting()
Returns true if url-rewriting is enabled.

Specified by:
isEnableURLRewriting in interface SessionManagerMXBean

isIgnoreSerializationErrors

public boolean isIgnoreSerializationErrors()
Returns true if persistent sessions should ignore serialization errors

Specified by:
isIgnoreSerializationErrors in interface SessionManagerMXBean

isInvalidateAfterListener

public boolean isInvalidateAfterListener()
True if sessions should invalidate only after calling listeners.

Specified by:
isInvalidateAfterListener in interface SessionManagerMXBean

isReuseSessionId

public boolean isReuseSessionId()
True if sessions should reuse available session cookie values.

Specified by:
isReuseSessionId in interface SessionManagerMXBean

getSaveMode

public java.lang.String getSaveMode()
Returns the save mode.

Specified by:
getSaveMode in interface SessionManagerMXBean

getSessionMax

public int getSessionMax()
Returns the maximum number of sessions.

Specified by:
getSessionMax in interface SessionManagerMXBean

getSessionTimeout

public long getSessionTimeout()
Returns session timeout (in ms)

Specified by:
getSessionTimeout in interface SessionManagerMXBean

getPersistentStore

public PersistentStoreMXBean getPersistentStore()
Returns the object name for the persistent store

Specified by:
getPersistentStore in interface SessionManagerMXBean

getActiveSessionCount

public int getActiveSessionCount()
Returns the active sessions.


getSessionActiveCount

public long getSessionActiveCount()
Returns the active sessions.

Specified by:
getSessionActiveCount in interface SessionManagerMXBean

getSessionCreateCountTotal

public long getSessionCreateCountTotal()
Returns the session create count

Specified by:
getSessionCreateCountTotal in interface SessionManagerMXBean

getSessionInvalidateCountTotal

public long getSessionInvalidateCountTotal()
Returns the session invalidate count

Specified by:
getSessionInvalidateCountTotal in interface SessionManagerMXBean

getSessionTimeoutCountTotal

public long getSessionTimeoutCountTotal()
Returns the session timeout count

Specified by:
getSessionTimeoutCountTotal in interface SessionManagerMXBean

getSessionStoreType

public java.lang.String getSessionStoreType()
Returns the session store type


sessionSerializationDebug

public java.lang.String sessionSerializationDebug(java.lang.String id)
Returns a debug string for the session

Specified by:
sessionSerializationDebug in interface SessionManagerMXBean

sessionAsJsonString

public java.lang.String sessionAsJsonString(java.lang.String id)
Specified by:
sessionAsJsonString in interface SessionManagerMXBean

sessionIdList

public java.lang.String[] sessionIdList()
Specified by:
sessionIdList in interface SessionManagerMXBean

sessionsAsJsonString

public java.lang.String sessionsAsJsonString()
Specified by:
sessionsAsJsonString in interface SessionManagerMXBean

getEstimatedMemorySize

public long getEstimatedMemorySize()
Specified by:
getEstimatedMemorySize in interface SessionManagerMXBean

stickySessionServer

public int stickySessionServer(java.lang.String sessionId,
                               int count)
Specified by:
stickySessionServer in interface SessionManagerMXBean

unregister

public void unregister()
Unregisters the object with JMX.


toString

public java.lang.String toString()
Overrides:
toString in class AbstractManagedObject