Class CommandMBean<A extends IgniteDataTransferObject,R>
- java.lang.Object
-
- org.apache.ignite.internal.management.api.CommandMBean<A,R>
-
- All Implemented Interfaces:
DynamicMBean
public class CommandMBean<A extends IgniteDataTransferObject,R> extends Object implements DynamicMBean
Bean expose single mamagement command via JMX interface.- See Also:
Command,CommandsRegistry
-
-
Field Summary
Fields Modifier and Type Field Description static StringINVOKEName of the JMX method to invoke command.static StringLAST_RES_METHODUsed for tests.
-
Constructor Summary
Constructors Constructor Description CommandMBean(IgniteEx ignite, Command<A,R> cmd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAttribute(String attribute)AttributeListgetAttributes(String[] attributes)MBeanInfogetMBeanInfo()Objectinvoke(String actionName, Object[] params, String[] signature)voidsetAttribute(Attribute attribute)AttributeListsetAttributes(AttributeList attributes)
-
-
-
Field Detail
-
INVOKE
public static final String INVOKE
Name of the JMX method to invoke command.- See Also:
- Constant Field Values
-
LAST_RES_METHOD
public static final String LAST_RES_METHOD
Used for tests. Name of the method to retrive last method result.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
- Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
- Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
- Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
getAttributes
public AttributeList getAttributes(String[] attributes)
- Specified by:
getAttributesin interfaceDynamicMBean
-
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributesin interfaceDynamicMBean
-
-