|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SessionMBean
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 |
|---|
String getId()
String[] getAttributeNames()
Timestamp getCreationTime()
Timestamp getLastAccessedTime()
double getSessionDurationSeconds()
boolean isNew()
String getRemoteUser()
int getMaxInactiveSeconds()
void setMaxInactiveSeconds(int maxInactiveSeconds)
String getAttributeAsString(String attributeName)
attributeName - Name of session attribute to targetvoid invalidate()
long estimateTotalSize()
throws Exception
Exception
TabularData estimateAttributeSizes()
throws Exception
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||