|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.jmx.core.StandardMBeanFix
wt.jmx.core.StandardMBean
wt.jmx.core.SelfAwareMBean
wt.jmx.core.mbeans.Info
public abstract class Info
Provides configurable collection of MBean info via getInfoData() routine.
Intended for re-use to get collect data for logging summaries, e-mail
notifications, etc.
Supported API: true
Extendable: true
| Nested Class Summary | |
|---|---|
static class |
wt.jmx.core.mbeans.Info.Item
Simple class representing a triplet of an ObjectName, attribute name, and (optional) display name. |
| Constructor Summary | |
|---|---|
protected |
Info(Class mbeanInterface)
Constructor. |
| Method Summary | |
|---|---|
protected void |
addInfoItem(ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName,
boolean allowNullObjectName)
Construct Item object from data specified and append it to list of Items. |
Object |
getCustomDelegate()
Return custom delegate as returned by custom delegate factory's getInstance() method or null if no custom delegate has been specified. |
InfoDelegateFactory |
getCustomDelegateFactory()
Returns new instance of custom delegate factory if one has been specified, otherwise returns null. |
String |
getCustomDelegateFactoryClass()
Return name of custom delegate factory class. |
protected void |
getInfoData(ObjectName defaultObjectName,
List<wt.jmx.core.mbeans.Info.Item> outputItems,
List<Collection<ObjectName>> outputObjectNameCollList,
List<Object> outputValueList)
Collects MBean data specified by current set of Item objects. |
protected String[] |
getInfoItemsPreview(ObjectName defaultObjectName)
Same as getInfoItemsPreview() but is given a default ObjectName for cases in which an ObjectName was left unspecified. |
protected void |
insertInfoItem(int idx,
ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName,
boolean allowNullObjectName)
Construct Item object from data specified and insert it into list of Items. |
protected void |
setCustomDelegateFactoryClass(String customDelegateFactoryClassname,
Class requiredBaseClass)
Set custom delegate factory class. |
| Methods inherited from class wt.jmx.core.SelfAwareMBean |
|---|
deregister, destroy, getBaseObjectName, getObjectName, getObjectNameOnPreRegister, getObjectNameSuffix, getOwnerMBean, getSelfAwareMBean, init, isInited, isRegistered, isStarted, postDeregister, postRegister, preDeregister, preRegister, register, register, register, resetObjectName, setOwnerMBean, start, stop |
| Methods inherited from class wt.jmx.core.StandardMBean |
|---|
cacheMBeanInfo, cacheMBeanInfoInInstance, emailThisMBean, getCachedInstanceMBeanInfo, getCachedMBeanInfo, getDescription, getDescription, getDescription, getDescription, getImpact, getMBeanInfo, getParameterName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface wt.jmx.core.mbeans.SelfEmailingMBean |
|---|
emailThisMBean |
| Constructor Detail |
|---|
protected Info(Class mbeanInterface)
throws NotCompliantMBeanException
NotCompliantMBeanException| Method Detail |
|---|
protected String[] getInfoItemsPreview(ObjectName defaultObjectName)
protected void getInfoData(ObjectName defaultObjectName,
List<wt.jmx.core.mbeans.Info.Item> outputItems,
List<Collection<ObjectName>> outputObjectNameCollList,
List<Object> outputValueList)
defaultObjectName - ObjectName to use in cases where an Item does not specify an ObjectNameoutputItems - populated with current Item objectsoutputObjectNameCollList - populated with ObjectNames indicated by each Item appended to outputItemsoutputValueList - populated with attribute values corresponding to each Item appended to outputItems
protected void insertInfoItem(int idx,
ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName,
boolean allowNullObjectName)
protected void addInfoItem(ObjectName mbeanObjectName,
String mbeanAttributeName,
String displayName,
boolean allowNullObjectName)
public String getCustomDelegateFactoryClass()
protected void setCustomDelegateFactoryClass(String customDelegateFactoryClassname,
Class requiredBaseClass)
throws ClassCastException,
ClassNotFoundException,
IllegalAccessException,
InstantiationException
Though the factory is set by class name, an instance is created and held
for re-use. It is also persisted, assuming the instance can be persisted
via XMLEncoder. Finally, if the factory instance
extends SelfAwareMBean then it is registered as a MBean child of this
MBean and managed as such throughout the lifecycle of this MBean.
Supported API: true
customDelegateFactoryClassname - Name of custom delegate factory classrequiredBaseClass - Class delegate factory class is required to implement or extend
ClassCastException
ClassNotFoundException
IllegalAccessException
InstantiationExceptionpublic InfoDelegateFactory getCustomDelegateFactory()
public Object getCustomDelegate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||