Package wt.servlet
Interface ContextMonitorMBean
- All Superinterfaces:
SelfEmailingMBean
- All Known Implementing Classes:
ContextMonitor
Monitors a web application context
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of context init parameter from which log4j configuration file reference is obtained
Supported API: truestatic final StringName of context init parameter from which MBean configuration check interval (in seconds) is obtained
Supported API: truestatic final StringName of context init parameter from which MBean configuration file reference (URL, file path, or resource path) is obtained
Supported API: truestatic final StringName of context init parameter from which root log4j configuration check interval (in seconds) is obtained
Supported API: truestatic final StringType of notification produced when web application context is starting
Supported API: truestatic final StringType of notification produced when web application context is stopping
Supported API: true -
Method Summary
Modifier and TypeMethodDescriptionvoidemailResource(String resourcePath, String addressesOrEmailList, String subject) E-mail the specified web app resource
Supported API: truevoidemailWebXml(String addressesOrEmailList, String subject) E-mail the web.xml file
Supported API: truegetContextAttributeAsString(String contextAttributeName) Returns the value of the given web app context attribute as a string, or null if no such attribute exists.String[]Web app context attribute names
Supported API: trueContext path of web app
Supported API: trueDisplay name of web app, if specified
Supported API: truegetInitParameter(String initParameterName) Returns the value of the given initialization parameter, or null no such parameter exists.String[]Web app context initialization parameters
Supported API: trueJMX service URL
Supported API: trueReal path of web app context directory on server (or null if this cannot be determined)
Supported API: trueName and version of the servlet container
Supported API: trueVersion of the Java Servlet API that this servlet container supports
Supported API: trueTime web app context started
Supported API: truedoubleTime web app has been up since started, in seconds
Supported API: truevoidsendResourceToSupport(String resourcePath, long callNumber, String description) Send the specified web app resource to support
Supported API: truevoidsendWebXmlToSupport(long callNumber, String description) Send the specified web app resource to support
Supported API: trueString[]viewResource(String resourcePath) View the specified web app resource
Supported API: trueString[]View the web.xml file
Supported API: trueMethods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean
emailThisMBean
-
Field Details
-
MBEAN_CONFIG_FILE_REF_PARAM_NAME
Name of context init parameter from which MBean configuration file reference (URL, file path, or resource path) is obtained
Supported API: true- See Also:
-
MBEAN_CONFIG_CHECK_INTERVAL_PARAM_NAME
Name of context init parameter from which MBean configuration check interval (in seconds) is obtained
Supported API: true- See Also:
-
LOG4J_CONFIG_FILE_REF_PARAM_NAME
Name of context init parameter from which log4j configuration file reference is obtained
Supported API: true- See Also:
-
ROOT_LOG4J_CONFIG_CHECK_INTERVAL_PARAM_NAME
Name of context init parameter from which root log4j configuration check interval (in seconds) is obtained
Supported API: true- See Also:
-
WEB_APP_STARTING_NOTIF
Type of notification produced when web application context is starting
Supported API: true -
WEB_APP_STOPPING_NOTIF
Type of notification produced when web application context is stopping
Supported API: true
-
-
Method Details
-
getStartTime
Timestamp getStartTime()Time web app context started
Supported API: true -
getUpTimeSeconds
double getUpTimeSeconds()Time web app has been up since started, in seconds
Supported API: true -
getRealPath
String getRealPath()Real path of web app context directory on server (or null if this cannot be determined)
Supported API: true -
getContextPath
String getContextPath()Context path of web app
Supported API: true -
getDisplayName
String getDisplayName()Display name of web app, if specified
Supported API: true -
getServletSpecificationVersion
String getServletSpecificationVersion()Version of the Java Servlet API that this servlet container supports
Supported API: true -
getServerInfo
String getServerInfo()Name and version of the servlet container
Supported API: true -
getContextAttributeNames
String[] getContextAttributeNames()Web app context attribute names
Supported API: true -
getInitParameters
String[] getInitParameters()Web app context initialization parameters
Supported API: true -
getJmxServiceURL
String getJmxServiceURL()JMX service URL
Supported API: true -
getInitParameter
Returns the value of the given initialization parameter, or null no such parameter exists.
Supported API: true- Parameters:
initParameterName- Name of the initialization parameter whose value is requested
-
getContextAttributeAsString
Returns the value of the given web app context attribute as a string, or null if no such attribute exists.
Supported API: true- Parameters:
contextAttributeName- Name of the initialization parameter whose value is requested
-
viewWebXml
View the web.xml file
Supported API: true- Throws:
IOException
-
emailWebXml
@MBeanOperationImpact(0) void emailWebXml(String addressesOrEmailList, String subject) throws IOException E-mail the web.xml file
Supported API: true- Parameters:
addressesOrEmailList- Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject- Subject to give e-mail- Throws:
IOException
-
sendWebXmlToSupport
@MBeanOperationImpact(0) void sendWebXmlToSupport(long callNumber, String description) throws Exception Send the specified web app resource to support
Supported API: true- Parameters:
callNumber- Existing technical support call number to associate this data withdescription- Description to give data- Throws:
Exception
-
viewResource
View the specified web app resource
Supported API: true- Parameters:
resourcePath- Path to the resource- Throws:
IOException
-
emailResource
@MBeanOperationImpact(0) void emailResource(String resourcePath, String addressesOrEmailList, String subject) throws IOException E-mail the specified web app resource
Supported API: true- Parameters:
resourcePath- Path to the resourceaddressesOrEmailList- Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject- Subject to give e-mail- Throws:
IOException
-
sendResourceToSupport
@MBeanOperationImpact(0) void sendResourceToSupport(String resourcePath, long callNumber, String description) throws Exception Send the specified web app resource to support
Supported API: true- Parameters:
resourcePath- Path to the resourcecallNumber- Existing technical support call number to associate this data withdescription- Description to give data- Throws:
Exception
-