wt.servlet
Interface SessionMonitorMBean

All Superinterfaces:
DeluxeStatsMonitorMBean, RawStatisticsProviderMBean, SelfEmailingMBean

public interface SessionMonitorMBean
extends DeluxeStatsMonitorMBean, RawStatisticsProviderMBean

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.DeluxeStatsMonitorMBean
getBaselineStatistics, getBaselineStatisticsLoggerLevel, getBaselineStatisticsLoggerName, getRecentIntervalSeconds, getRecentStatistics, getRecentStatisticsLoggerLevel, getRecentStatisticsLoggerName, getStatisticsLoggerFormatString, getStatisticsLoggerOutputAttributes, getStatisticsLoggerOutputAttributesSupported, getStatisticsLoggerSeparatorString, getSummaryIntervalSeconds, getSummaryStatisticsLoggerLevel, getSummaryStatisticsLoggerName, isStatisticsLoggerUseShortFormat, resetBaselineStatistics, setBaselineStatisticsLoggerLevel, setRecentIntervalSeconds, setRecentStatisticsLoggerLevel, setStatisticsLoggerFormatString, setStatisticsLoggerOutputAttributes, setStatisticsLoggerSeparatorString, setStatisticsLoggerUseShortFormat, setSummaryIntervalSeconds, setSummaryStatisticsLoggerLevel
 
Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
 
Methods inherited from interface wt.jmx.core.mbeans.RawStatisticsProviderMBean
getRawStatistics
 

Field Detail

MAX_AVG_SESSIONS_NOTIF_TYPE

static final String MAX_AVG_SESSIONS_NOTIF_TYPE
Type of notification produced when MaxAverageActiveSessionsThreshold is exceeded

Supported API: true

Method Detail

getActiveSessions

int getActiveSessions()
Number of currently active sessions

Supported API: true


getActiveUserCount

int getActiveUserCount()
Number of unique users known to have currently active sessions

Supported API: true


getActiveUsers

String[] getActiveUsers()
Names of users known to have currently active sessions

Supported API: true


getMaxSecondsSinceSessionAccessed

double getMaxSecondsSinceSessionAccessed()
Period (in seconds) since the longest idle active session was accessed

Supported API: true


getAveSecondsSinceSessionAccessed

double getAveSecondsSinceSessionAccessed()
Average period (in seconds) since currently active sessions have been accessed

Supported API: true


getMaxAverageActiveSessionsThreshold

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


setMaxAverageActiveSessionsThreshold

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


getSessionLoggerName

String getSessionLoggerName()
Name of session logger

Supported API: true


getSessionLoggerLevel

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


setSessionLoggerLevel

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


getSessionLoggerOutputAttributes

String getSessionLoggerOutputAttributes()
List of SessionMBean attributes to be output to request log

Supported API: true


setSessionLoggerOutputAttributes

void setSessionLoggerOutputAttributes(String sessionLoggerOutputAttributes)
List of SessionMBean attributes to be output to request log

Supported API: true


getSessionLoggerOutputAttributesSupported

String[] getSessionLoggerOutputAttributesSupported()
List of attributes supported for use in SessionLoggerOutputAttributes

Supported API: true


isSessionLoggerUseShortFormat

boolean isSessionLoggerUseShortFormat()
Whether short format (which contains only attribute values, not names) is used for session logging

Supported API: true


setSessionLoggerUseShortFormat

void setSessionLoggerUseShortFormat(boolean sessionLoggerUseShortFormat)
Whether short format (which contains only attribute values, not names) is used for session logging

Supported API: true


getSessionLoggerSeparatorString

String getSessionLoggerSeparatorString()
Item separator string used in session log format

Supported API: true


setSessionLoggerSeparatorString

void setSessionLoggerSeparatorString(String sessionLoggerSeparatorString)
Item separator string used in session log format

Supported API: true


getSessionLoggerFormatString

String getSessionLoggerFormatString()
Low-level (java.util.Formatter) session log format string; if specified, overrides SessionLoggerUseShortFormat and SessionLoggerSeparatorString

Supported API: true


setSessionLoggerFormatString

void setSessionLoggerFormatString(String sessionLoggerFormatString)
Low-level (java.util.Formatter) session log format string; if specified, overrides SessionLoggerUseShortFormat and SessionLoggerSeparatorString

Supported API: true


isSessionRegistrationEnabled

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


setSessionRegistrationEnabled

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


estimateTotalSize

long estimateTotalSize()
Estimates in memory size (in bytes) of sessions by serializing them.

Supported API: true


estimateAttributeSizes

TabularData estimateAttributeSizes()
                                   throws Exception
Estimates in memory size (in bytes) of sessions' attributes by serializing them.

Supported API: true

Throws:
Exception

getActiveSessionAttributes

AttributeList[] getActiveSessionAttributes(String[] attributeNames)
Returns array of AttributeLists, one for each active session.

Supported API: true

Parameters:
attributeNames - Names of JMX (not servlet API) attributes (of wt.servlet.SessionMBean) to retrieve; null implies all attributes