|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ContextMonitorMBean
Monitors a web application context
Supported API: true
Extendable: true
| Field Summary | |
|---|---|
static String |
LOG4J_CONFIG_FILE_REF_PARAM_NAME
Name of context init parameter from which log4j configuration file reference is obtained Supported API: true |
static String |
MBEAN_CONFIG_CHECK_INTERVAL_PARAM_NAME
Name of context init parameter from which MBean configuration check interval (in seconds) is obtained Supported API: true |
static String |
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 |
static String |
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 |
static String |
WEB_APP_PATH_PARAM_NAME
Name of context init parameter from which web app path (context path) is obtained Supported API: true |
static String |
WEB_APP_STARTING_NOTIF
Type of notification produced when web application context is starting Supported API: true |
static String |
WEB_APP_STOPPING_NOTIF
Type of notification produced when web application context is stopping Supported API: true |
| Method Summary | |
|---|---|
void |
emailResource(String resourcePath,
String addressesOrEmailList,
String subject)
E-mail the specified web app resource Supported API: true |
void |
emailWebXml(String addressesOrEmailList,
String subject)
E-mail the web.xml file Supported API: true |
String |
getContextAttributeAsString(String contextAttributeName)
Returns the value of the given web app context attribute as a string, or null if no such attribute exists. |
String[] |
getContextAttributeNames()
Web app context attribute names Supported API: true |
String |
getContextPath()
Path of context, if definitively known Supported API: true |
String |
getDisplayName()
Display name of web app, if specified Supported API: true |
String |
getInitParameter(String initParameterName)
Returns the value of the given initialization parameter, or null no such parameter exists. |
String[] |
getInitParameters()
Web app context initialization parameters Supported API: true |
String |
getRealPath()
Real path of web app context directory on server (or null if this cannot be determined) Supported API: true |
String |
getServerInfo()
Name and version of the servlet container Supported API: true |
String |
getServletSpecificationVersion()
Version of the Java Servlet API that this servlet container supports Supported API: true |
String |
getSpecifiedWebAppPath()
Path of context specified in configuration Supported API: true |
Timestamp |
getStartTime()
Time web app context started Supported API: true |
double |
getUpTimeSeconds()
Time web app has been up since started, in seconds Supported API: true |
String[] |
viewResource(String resourcePath)
View the specified web app resource Supported API: true |
String[] |
viewWebXml()
View the web.xml file Supported API: true |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Field Detail |
|---|
static final String WEB_APP_PATH_PARAM_NAME
static final String MBEAN_CONFIG_FILE_REF_PARAM_NAME
static final String MBEAN_CONFIG_CHECK_INTERVAL_PARAM_NAME
static final String LOG4J_CONFIG_FILE_REF_PARAM_NAME
static final String ROOT_LOG4J_CONFIG_CHECK_INTERVAL_PARAM_NAME
static final String WEB_APP_STARTING_NOTIF
static final String WEB_APP_STOPPING_NOTIF
| Method Detail |
|---|
Timestamp getStartTime()
double getUpTimeSeconds()
String getRealPath()
String getContextPath()
String getSpecifiedWebAppPath()
String getDisplayName()
String getServletSpecificationVersion()
String getServerInfo()
String[] getContextAttributeNames()
String[] getInitParameters()
String getInitParameter(String initParameterName)
initParameterName - Name of the initialization parameter whose value is requestedString getContextAttributeAsString(String contextAttributeName)
contextAttributeName - Name of the initialization parameter whose value is requested
String[] viewWebXml()
throws IOException
IOException
void emailWebXml(String addressesOrEmailList,
String subject)
throws IOException
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mail
IOException
String[] viewResource(String resourcePath)
throws IOException
resourcePath - Path to the resource
IOException
void emailResource(String resourcePath,
String addressesOrEmailList,
String subject)
throws IOException
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
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||