wt.servlet
Interface SessionMBean

All Superinterfaces:
SelfEmailingMBean

public interface SessionMBean
extends SelfEmailingMBean

Detailed information related to a single servlet engine session.

Supported API: true

Extendable: true


Method Summary
 TabularData estimateAttributeSizes()
          Estimates the memory size (in bytes) of session attributes by performing Java serialization of those attributes; in instances where an attribute cannot be serialized -1 is returned.
 long estimateTotalSize()
          Estimates the total memory size (in bytes) of a session by serializing it.
 String getAttributeAsString(String attributeName)
          Returns a string representation of the value of the specified session attribute.
 String[] getAttributeNames()
          Session attribute names

Supported API: true
 Timestamp getCreationTime()
          Time at which session was created

Supported API: true
 String getId()
          Session id

Supported API: true
 Timestamp getLastAccessedTime()
          Last time at which session was accessed

Supported API: true
 int getMaxInactiveSeconds()
          Maximum time interval, in seconds, that the servlet container will keep this session open between client accesses

Supported API: true
 String getRemoteUser()
          The name of the remote user, if known

Supported API: true
 double getSessionDurationSeconds()
          Duration of session in seconds

Supported API: true
 void invalidate()
          Invalidates this session then unbinds any objects bound to it

Supported API: true
 boolean isNew()
          Whether or not the client either does not know about the session or has chosen not to join the session

Supported API: true
 void setMaxInactiveSeconds(int maxInactiveSeconds)
          Maximum time interval, in seconds, that the servlet container will keep this session open between client accesses

Supported API: true
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 

Method Detail

getId

String getId()
Session id

Supported API: true


getAttributeNames

String[] getAttributeNames()
Session attribute names

Supported API: true


getCreationTime

Timestamp getCreationTime()
Time at which session was created

Supported API: true


getLastAccessedTime

Timestamp getLastAccessedTime()
Last time at which session was accessed

Supported API: true


getSessionDurationSeconds

double getSessionDurationSeconds()
Duration of session in seconds

Supported API: true


isNew

boolean isNew()
Whether or not the client either does not know about the session or has chosen not to join the session

Supported API: true


getRemoteUser

String getRemoteUser()
The name of the remote user, if known

Supported API: true


getMaxInactiveSeconds

int getMaxInactiveSeconds()
Maximum time interval, in seconds, that the servlet container will keep this session open between client accesses

Supported API: true


setMaxInactiveSeconds

void setMaxInactiveSeconds(int maxInactiveSeconds)
Maximum time interval, in seconds, that the servlet container will keep this session open between client accesses

Supported API: true


getAttributeAsString

String getAttributeAsString(String attributeName)
Returns a string representation of the value of the specified session attribute.

Supported API: true

Parameters:
attributeName - Name of session attribute to target

invalidate

void invalidate()
Invalidates this session then unbinds any objects bound to it

Supported API: true


estimateTotalSize

long estimateTotalSize()
                       throws Exception
Estimates the total memory size (in bytes) of a session by serializing it.

Supported API: true

Throws:
Exception

estimateAttributeSizes

TabularData estimateAttributeSizes()
                                   throws Exception
Estimates the memory size (in bytes) of session attributes by performing Java serialization of those attributes; in instances where an attribute cannot be serialized -1 is returned.

Supported API: true

Throws:
Exception