public abstract class AbstractDynamicMBean extends Object implements DynamicMBean
Modifier and Type | Field and Description |
---|---|
protected String |
THIS_CLASS_NAME |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDynamicMBean() |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
__getConfig() |
protected abstract void |
__setConfig(Object config) |
void |
addMBeanAttributeInfo(MBeanAttributeInfo info) |
void |
addMBeanConstructorInfo(MBeanConstructorInfo info) |
void |
addMBeanNotificationInfo(MBeanNotificationInfo info) |
void |
addMBeanOperationInfo(MBeanOperationInfo info) |
protected MBeanAttributeInfo[] |
createMBeanAttributesInfo() |
protected MBeanConstructorInfo[] |
createMBeanConstructorsInfo() |
protected MBeanNotificationInfo[] |
createMBeanNotificationsInfo() |
protected MBeanOperationInfo[] |
createMBeanOperationsInfo() |
Object |
getAttribute(String attributeName)
Allows the value of the specified attribute of the Dynamic MBean to be obtained.
|
AttributeList |
getAttributes(String[] attributeNames)
Enables the to get the values of several attributes of the Dynamic MBean.
|
protected String |
getMBeanDescription() |
MBeanInfo |
getMBeanInfo()
This method provides the exposed attributes and operations of the Dynamic MBean.
|
protected abstract String |
getType() |
Object |
invoke(String operationName,
Object[] params,
String[] signature)
Allows an operation to be invoked on the Dynamic MBean.
|
void |
setAttribute(Attribute attribute)
Sets the value of the specified attribute of the Dynamic MBean.
|
AttributeList |
setAttributes(AttributeList attributes)
Sets the values of several attributes of the Dynamic MBean, and returns the list of
attributes that have been set.
|
void |
setMBeanDescription(String descr) |
protected String |
toLowCase(String str,
int charIndex) |
protected String |
toUpperCase(String str,
int charIndex)
Convert a specified character of string in upper case.
|
protected final String THIS_CLASS_NAME
protected abstract void __setConfig(Object config)
protected abstract Object __getConfig()
protected abstract String getType()
public void addMBeanAttributeInfo(MBeanAttributeInfo info)
public void addMBeanOperationInfo(MBeanOperationInfo info)
public void addMBeanNotificationInfo(MBeanNotificationInfo info)
public void addMBeanConstructorInfo(MBeanConstructorInfo info)
public void setMBeanDescription(String descr)
protected MBeanAttributeInfo[] createMBeanAttributesInfo()
protected MBeanOperationInfo[] createMBeanOperationsInfo()
protected MBeanNotificationInfo[] createMBeanNotificationsInfo()
protected MBeanConstructorInfo[] createMBeanConstructorsInfo()
protected String getMBeanDescription()
protected String toUpperCase(String str, int charIndex)
public Object getAttribute(String attributeName) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributeNames)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public Object invoke(String operationName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
Copyright © GigaSpaces.