|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DumperMBean
Provides a number of generic operations to dump bulk information to a JMX console or e-mail.
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
String[] |
dumpAllMBeans()
Get data (as XML) on all MBeans in this MBeanServer Supported API: true |
String[] |
dumpFullStackTrace()
Get full stack trace of all threads; same as FullStackTrace attribute but easier to use as an operation in some consoles Supported API: true |
String[] |
dumpMBeans(ObjectName objectNamePattern)
Get data (as XML) on all MBeans in this MBeanServer that match the ObjectName query pattern Supported API: true |
void |
emailAllMBeans(String addressesOrEmailList,
String subject,
boolean compress)
E-mail styled data on all MBeans in this MBeanServer using the default styling as specified by DefaultXsltStylesheet Supported API: true |
void |
emailAllMBeans(String addressesOrEmailList,
String subject,
boolean compress,
String xslt,
boolean applyXslt)
E-mail styled data on all MBeans in this MBeanServer, styling as specified by the 'xslt' parameter Supported API: true |
void |
emailFile(String fileRef,
String addressesOrEmailList,
String subject,
boolean compress)
E-mail entire file as an attachment optionally compressing it. |
void |
emailFullStackTrace(String addressesOrEmailList,
String subject)
E-mail full stack trace of all threads Supported API: true |
void |
emailMBeans(ObjectName objectNamePattern,
String addressesOrEmailList,
String subject,
boolean compress)
E-mail styled data on all MBeans in this MBeanServer that match the ObjectName query pattern using the default styling as specified by DefaultXsltStylesheet Supported API: true |
void |
emailMBeans(ObjectName objectNamePattern,
String addressesOrEmailList,
String subject,
boolean compress,
String xslt,
boolean applyXslt)
E-mail styled data on all MBeans in this MBeanServer that match the ObjectName query pattern, styling as specified by the 'xslt' parameter Supported API: true |
void |
emailTextFile(String fileRef,
String addressesOrEmailList,
String subject,
long maxLines,
long maxChars)
E-mail last portion of text file. |
Map<ObjectName,AttributeList>[] |
getAttributes(ObjectName[] objectNamePatterns,
QueryExp[] queryExps,
String[][] attributeNamesArrs)
Fetches attribute values from multiple JMX MBeans in one request. |
String |
getDefaultXsltStylesheet()
Reference (URL, file, or resource) to default XSLT stylesheet Supported API: true |
String |
getDefaultXsltStylesheetURL()
Default XSLT stylesheet URL used by operations which return styled MBean data when this parameter is not specified Supported API: true |
String[] |
getFullStackTrace()
Full stack trace of all threads; provided as attribute in addition to dumpFullStackTrace() operation to expose to Summary and NotificationHandler MBean Supported API: true |
String[] |
getResources(String resourceName)
Returns a list of URLs (as strings) representing all the resources with the given name found by this MBean's classloader. |
Object |
invokeInfoOperation(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
Invoke an operation with an INFO (read-only) impact on an MBean. |
void |
logFullStackTrace()
Log full stack trace of all threads to wt.jmx.core.mbeans.Dumper.stacktraces logger at INFO level (and this logger defaults to INFO level verbosity) Supported API: true |
void |
setDefaultXsltStylesheet(String defaultXsltStylesheet)
Reference (URL, file, or resource) to default XSLT stylesheet Supported API: true |
String[] |
viewTextFile(String fileRef,
long maxLines,
long maxChars)
View last portion of text file. |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Method Detail |
|---|
String[] getFullStackTrace()
String getDefaultXsltStylesheetURL()
String getDefaultXsltStylesheet()
void setDefaultXsltStylesheet(String defaultXsltStylesheet)
String[] viewTextFile(String fileRef,
long maxLines,
long maxChars)
throws IOException
Note that this operation is considered to have an ACTION_INFO (i.e. "read and write")
impact even though it does not change any server state. This is due to
the fact that it can be used to view any text file readable by the
given process, including files which may contain sensitive information
such as passwords. This operation is thus restricted to those users with
the broadest possible access and privileges.
Supported API: true
fileRef - Reference (URL, file, or resource) to file to viewmaxLines - Maximum number of lines to include; non-positive numbers imply no limitmaxChars - Maximum number of characters to include; non-positive numbers imply no limit
IOException
void emailFile(String fileRef,
String addressesOrEmailList,
String subject,
boolean compress)
throws IOException
Note that this operation is considered to have an ACTION_INFO (i.e. "read and write")
impact even though it does not change any server state. This is due to
the fact that it can be used to e-mail any text file readable by the
given process, including files which may contain sensitive information
such as passwords. This operation is thus restricted to those users with
the broadest possible access and privileges.
Supported API: true
fileRef - Reference (URL, file, or resource) to file to e-mailaddressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailcompress - Whether to compress the file attachement
IOException
void emailTextFile(String fileRef,
String addressesOrEmailList,
String subject,
long maxLines,
long maxChars)
throws IOException
Note that this operation is considered to have an ACTION_INFO (i.e. "read and write")
impact even though it does not change any server state. This is due to
the fact that it can be used to e-mail any text file readable by the
given process, including files which may contain sensitive information
such as passwords. This operation is thus restricted to those users with
the broadest possible access and privileges.
Supported API: true
fileRef - Reference (URL, file, or resource) to file to e-mailaddressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailmaxLines - Maximum number of lines to include; non-positive numbers imply no limitmaxChars - Maximum number of characters to include; non-positive numbers imply no limit
IOExceptionString[] dumpFullStackTrace()
void logFullStackTrace()
void emailFullStackTrace(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[] dumpAllMBeans()
throws SAXException
SAXException
void emailAllMBeans(String addressesOrEmailList,
String subject,
boolean compress)
throws IOException,
SAXException
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailcompress - Whether e-mail contents should be compressed
IOException
SAXException
void emailAllMBeans(String addressesOrEmailList,
String subject,
boolean compress,
String xslt,
boolean applyXslt)
throws IOException,
SAXException
addressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailcompress - Whether e-mail contents should be compressedxslt - Reference (URL, file, or resource) to XSLT stylesheet to apply; defaults to DefaultXsltStylesheetURL if not specifiedapplyXslt - Whether to apply XSLT or just insert a processing instruction for it
IOException
SAXException
String[] dumpMBeans(ObjectName objectNamePattern)
throws SAXException
objectNamePattern - ObjectName query pattern; see JMX specification for more information
SAXException
void emailMBeans(ObjectName objectNamePattern,
String addressesOrEmailList,
String subject,
boolean compress)
throws IOException,
SAXException
objectNamePattern - ObjectName query pattern; see JMX specification for more informationaddressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailcompress - Whether e-mail contents should be compressed
IOException
SAXException
void emailMBeans(ObjectName objectNamePattern,
String addressesOrEmailList,
String subject,
boolean compress,
String xslt,
boolean applyXslt)
throws IOException,
SAXException
objectNamePattern - ObjectName query pattern; see JMX specification for more informationaddressesOrEmailList - Comma-delimited list of e-mail addresses or name of e-mail list to send e-mail tosubject - Subject to give e-mailcompress - Whether e-mail contents should be compressedxslt - Reference (URL, file, or resource) to XSLT stylesheet to apply; defaults to DefaultXsltStylesheetURL if not specifiedapplyXslt - Whether to apply XSLT or just insert a processing instruction for it
IOException
SAXException
String[] getResources(String resourceName)
throws IOException
resourceName - Name of resource to search for
IOException
Map<ObjectName,AttributeList>[] getAttributes(ObjectName[] objectNamePatterns,
QueryExp[] queryExps,
String[][] attributeNamesArrs)
objectNamePatterns - Array of ObjectNames, each of which can be an ObjectName patternqueryExps - Array of query expressions; when non-null each non-null element is used as an additional filter on the lookup for the corresponding 'objectNamePatterns' elementattributeNamesArrs - Array of attribute name arrays; when non-null, each non-null element specifies the list of attributes to fetch for the corresponding 'objectNamePatterns' element and null elements are intepretted as requests for all attributes; when null, a null value will be returned in the map for each matching ObjectName key
Object invokeInfoOperation(ObjectName mbean,
String operation,
Object[] params,
String[] signature)
throws InstanceNotFoundException,
IntrospectionException,
MBeanException,
ReflectionException,
IOException
mbean - ObjectName of target MBeanoperation - Name of target operationparams - Arguments of target operationsignature - Signature of target operation
InstanceNotFoundException
IntrospectionException
MBeanException
ReflectionException
IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||