public class GroovyMBean
extends groovy.lang.GroovyObjectSupport
Constructor and Description |
---|
GroovyMBean(MBeanServerConnection server,
ObjectName name) |
GroovyMBean(MBeanServerConnection server,
ObjectName name,
boolean ignoreErrors) |
GroovyMBean(MBeanServerConnection server,
String objectName) |
GroovyMBean(MBeanServerConnection server,
String objectName,
boolean ignoreErrors) |
Modifier and Type | Method and Description |
---|---|
protected String |
createOperationKey(String operation,
int params)
Construct a simple key based on the method name and the number of parameters
|
protected String[] |
createSignature(MBeanOperationInfo info) |
protected String |
describeAttribute(MBeanAttributeInfo attr)
Description of the specified attribute name.
|
String |
describeAttribute(String attributeName)
Description of the specified attribute name.
|
protected String |
describeOperation(MBeanOperationInfo operation)
Description of the operation.
|
List<String> |
describeOperation(String operationName)
Get the description of the specified operation.
|
Object |
getProperty(String property) |
MBeanInfo |
info() |
Object |
invokeMethod(String method,
Object arguments) |
Collection<String> |
listAttributeDescriptions()
List of string representations of all of the attributes on the MBean.
|
Collection<String> |
listAttributeNames()
List of the names of each of the attributes on the MBean
|
List<String> |
listAttributeValues()
The values of each of the attributes on the MBean
|
Collection<String> |
listOperationDescriptions()
Description of all of the operations available on the MBean.
|
Collection<String> |
listOperationNames()
Names of all the operations available on the MBean.
|
ObjectName |
name() |
MBeanServerConnection |
server() |
void |
setProperty(String property,
Object value) |
String |
toString()
Return an end user readable representation of the underlying MBean
|
public GroovyMBean(MBeanServerConnection server, String objectName) throws JMException, IOException
JMException
IOException
public GroovyMBean(MBeanServerConnection server, String objectName, boolean ignoreErrors) throws JMException, IOException
JMException
IOException
public GroovyMBean(MBeanServerConnection server, ObjectName name) throws JMException, IOException
JMException
IOException
public GroovyMBean(MBeanServerConnection server, ObjectName name, boolean ignoreErrors) throws JMException, IOException
JMException
IOException
public MBeanServerConnection server()
public ObjectName name()
public MBeanInfo info()
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class groovy.lang.GroovyObjectSupport
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
setProperty
in class groovy.lang.GroovyObjectSupport
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class groovy.lang.GroovyObjectSupport
protected String[] createSignature(MBeanOperationInfo info)
protected String createOperationKey(String operation, int params)
operation
- - the mbean operation nameparams
- - the number of parameters the operation supportspublic Collection<String> listAttributeNames()
public List<String> listAttributeValues()
public Collection<String> listAttributeDescriptions()
protected String describeAttribute(MBeanAttributeInfo attr)
attr
- - the attributepublic String describeAttribute(String attributeName)
attributeName
- - stringified name of the attributepublic Collection<String> listOperationNames()
public Collection<String> listOperationDescriptions()
public List<String> describeOperation(String operationName)
operationName
- the name of the operation to describeprotected String describeOperation(MBeanOperationInfo operation)
operation
- the operation to describe