|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SessionMonitorMBean
Monitors servlet sessions
Supported API: true
Extendable: true
| Field Summary | |
|---|---|
static String |
MAX_AVG_SESSIONS_NOTIF_TYPE
Type of notification produced when MaxAverageActiveSessionsThreshold is exceeded Supported API: true |
| Method Summary | |
|---|---|
TabularData |
estimateAttributeSizes()
Estimates in memory size (in bytes) of sessions' attributes by serializing them. |
long |
estimateTotalSize()
Estimates in memory size (in bytes) of sessions by serializing them. |
AttributeList[] |
getActiveSessionAttributes(String[] attributeNames)
Returns array of AttributeLists, one for each active session. |
int |
getActiveSessions()
Number of currently active sessions Supported API: true |
int |
getActiveUserCount()
Number of unique users known to have currently active sessions Supported API: true |
String[] |
getActiveUsers()
Names of users known to have currently active sessions Supported API: true |
double |
getAveSecondsSinceSessionAccessed()
Average period (in seconds) since currently active sessions have been accessed Supported API: true |
int |
getMaxAverageActiveSessionsThreshold()
Maximum average session concurrency before log messages become warnings and notifications are sent when this statistic is maintained for a summary interval Supported API: true |
double |
getMaxSecondsSinceSessionAccessed()
Period (in seconds) since the longest idle active session was accessed Supported API: true |
String |
getSessionLoggerFormatString()
Low-level (java.util.Formatter) session log format string; if specified, overrides SessionLoggerUseShortFormat and SessionLoggerSeparatorString Supported API: true |
String |
getSessionLoggerLevel()
Session logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified) Supported API: true |
String |
getSessionLoggerName()
Name of session logger Supported API: true |
String |
getSessionLoggerOutputAttributes()
List of SessionMBean attributes to be output to request log Supported API: true |
String[] |
getSessionLoggerOutputAttributesSupported()
List of attributes supported for use in SessionLoggerOutputAttributes Supported API: true |
String |
getSessionLoggerSeparatorString()
Item separator string used in session log format Supported API: true |
boolean |
isSessionLoggerUseShortFormat()
Whether short format (which contains only attribute values, not names) is used for session logging Supported API: true |
boolean |
isSessionRegistrationEnabled()
Whether sessions are automatically registered and deregistered as JMX MBeans as they are received and completed; enabling this can adversely affect performance Supported API: true |
void |
setMaxAverageActiveSessionsThreshold(int maxAverageActiveRequestThreshold)
Maximum average session concurrency before log messages become warnings and notifications are sent when this statistic is maintained for a summary interval Supported API: true |
void |
setSessionLoggerFormatString(String sessionLoggerFormatString)
Low-level (java.util.Formatter) session log format string; if specified, overrides SessionLoggerUseShortFormat and SessionLoggerSeparatorString Supported API: true |
void |
setSessionLoggerLevel(String level)
Session logging level (not persisted with MBean); valid values are ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF (or blank/unspecified) Supported API: true |
void |
setSessionLoggerOutputAttributes(String sessionLoggerOutputAttributes)
List of SessionMBean attributes to be output to request log Supported API: true |
void |
setSessionLoggerSeparatorString(String sessionLoggerSeparatorString)
Item separator string used in session log format Supported API: true |
void |
setSessionLoggerUseShortFormat(boolean sessionLoggerUseShortFormat)
Whether short format (which contains only attribute values, not names) is used for session logging Supported API: true |
void |
setSessionRegistrationEnabled(boolean sessionRegistrationEnabled)
Whether sessions are automatically registered and deregistered as JMX MBeans as they are received and completed; enabling this can adversely affect performance Supported API: true |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Methods inherited from interface wt.jmx.core.mbeans.RawStatisticsProviderMBean |
|---|
getRawStatistics |
| Field Detail |
|---|
static final String MAX_AVG_SESSIONS_NOTIF_TYPE
| Method Detail |
|---|
int getActiveSessions()
int getActiveUserCount()
String[] getActiveUsers()
double getMaxSecondsSinceSessionAccessed()
double getAveSecondsSinceSessionAccessed()
int getMaxAverageActiveSessionsThreshold()
void setMaxAverageActiveSessionsThreshold(int maxAverageActiveRequestThreshold)
String getSessionLoggerName()
String getSessionLoggerLevel()
void setSessionLoggerLevel(String level)
String getSessionLoggerOutputAttributes()
void setSessionLoggerOutputAttributes(String sessionLoggerOutputAttributes)
String[] getSessionLoggerOutputAttributesSupported()
boolean isSessionLoggerUseShortFormat()
void setSessionLoggerUseShortFormat(boolean sessionLoggerUseShortFormat)
String getSessionLoggerSeparatorString()
void setSessionLoggerSeparatorString(String sessionLoggerSeparatorString)
String getSessionLoggerFormatString()
void setSessionLoggerFormatString(String sessionLoggerFormatString)
boolean isSessionRegistrationEnabled()
void setSessionRegistrationEnabled(boolean sessionRegistrationEnabled)
long estimateTotalSize()
TabularData estimateAttributeSizes()
throws Exception
ExceptionAttributeList[] getActiveSessionAttributes(String[] attributeNames)
attributeNames - Names of JMX (not servlet API) attributes (of wt.servlet.SessionMBean) to retrieve; null implies all attributes
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||