|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InfoMBean
Allows a set of MBean object names and attribute names to be specified for purposes of obtaining these later, e.g. to output to logs, e-mail, etc.
Supported API: true
Extendable: true
| Method Summary | |
|---|---|
void |
addInfoItem(ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName)
Add item to end of list of those to be obtained Supported API: true |
void |
changeInfoItemDisplayName(int infoItemIdx,
String displayName)
Add item to end of list of those to be obtained Supported API: true |
TabularData |
getInfoItemsAsOpenData()
Structured representation of items to be obtained; see InfoItemsAsStrings for alternate string representation |
String[] |
getInfoItemsAsStrings()
String representation of items to be obtained; format is: [index] mbeanObjectName mbeanAttributeName (displayName) Supported API: true |
String[] |
getInfoItemsPreview()
String preview representation of data currently selected by info items Supported API: true |
void |
insertInfoItem(int infoItemIdx,
ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName)
Insert item into list of those to be obtained Supported API: true |
void |
removeInfoItem(int infoItemIdx)
Remove item from list of those to be obtained Supported API: true |
void |
removeInfoItems()
Remove all items from list of those to be obtained Supported API: true |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Method Detail |
|---|
TabularData getInfoItemsAsOpenData()
throws OpenDataException
An array of CompositeData would make more sense here, but JMX consoles seem
to fail to interpret this properly for display purposes when outside the
context of a CompositeData or TabularData.
Supported API: true
OpenDataExceptionString[] getInfoItemsAsStrings()
String[] getInfoItemsPreview()
void addInfoItem(ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName)
mbeanObjectName - ObjectName (or ObjectNamePattern) of MBean(s) from which to obtain datambeanAttributeName - Name of attribute in 'mbeanObjectName' to obtain; can use .itemName-style suffixes to select CompositeData fieldsdisplayName - Display name to use for this item; used when UseShortFormat is false and FormatString is unspecified
void insertInfoItem(int infoItemIdx,
ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName)
infoItemIdx - Index of item to insert in front ofmbeanObjectName - ObjectName (or ObjectNamePattern) of MBean(s) from which to obtain datambeanAttributeName - Name of attribute in 'mbeanObjectName' to obtain; can use .itemName-style suffixes to select CompositeData fieldsdisplayName - Display name to use for this item; used when UseShortFormat is false and FormatString is unspecified
void changeInfoItemDisplayName(int infoItemIdx,
String displayName)
infoItemIdx - Index of item to changedisplayName - Display name to use for this item; used when UseShortFormat is false and FormatString is unspecifiedvoid removeInfoItem(int infoItemIdx)
infoItemIdx - Index of item to removevoid removeInfoItems()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||