|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A GroovyObject facade for an underlying MBean which acts like a normal groovy object but which is actually implemented via an underlying JMX MBean. Properties and normal method invocations delegate to the MBeanServer to the actual MBean.
Field Summary | |
---|---|
MBeanInfo |
beanInfo
|
boolean |
ignoreErrors
|
ObjectName |
name
|
Map |
operations
|
MBeanServerConnection |
server
|
Constructor Summary | |
GroovyMBean(MBeanServerConnection server, String objectName)
|
|
GroovyMBean(MBeanServerConnection server, String objectName, boolean ignoreErrors)
|
|
GroovyMBean(MBeanServerConnection server, ObjectName name)
|
|
GroovyMBean(MBeanServerConnection server, ObjectName name, boolean ignoreErrors)
|
Method Summary | |
---|---|
String |
createOperationKey(String operation, int params)
Construct a simple key based on the method name and the number of parameters |
def |
createSignature(MBeanOperationInfo info)
|
String |
describeAttribute(MBeanAttributeInfo attr)
Description of the specified attribute name. |
String |
describeAttribute(String attributeName)
Description of the specified attribute name. |
List |
describeOperation(String operationName)
Get the description of the specified operation. |
String |
describeOperation(MBeanOperationInfo operation)
Description of the operation. |
Object |
getProperty(String property)
|
MBeanInfo |
info()
|
Object |
invokeMethod(String method, Object arguments)
|
Collection |
listAttributeDescriptions()
List of string representations of all of the attributes on the MBean. |
Collection |
listAttributeNames()
List of the names of each of the attributes on the MBean |
List |
listAttributeValues()
The values of each of the attributes on the MBean |
Collection |
listOperationDescriptions()
Description of all of the operations available on the MBean. |
Collection |
listOperationNames()
Names of all the operations available on the MBean. |
ObjectName |
name()
|
MBeanServerConnection |
server()
|
void |
setProperty(String property, Object value)
|
void |
throwException(String m, Exception e)
|
void |
throwExceptionWithTarget(String m, MBeanException e)
|
String |
toString()
Return an end user readable representation of the underlying MBean |
Constructor Detail |
---|
public GroovyMBean(MBeanServerConnection server, String objectName)
public GroovyMBean(MBeanServerConnection server, String objectName, boolean ignoreErrors)
public GroovyMBean(MBeanServerConnection server, ObjectName name)
public GroovyMBean(MBeanServerConnection server, ObjectName name, boolean ignoreErrors)
Method Detail |
---|
String createOperationKey(String operation, int params)
def createSignature(MBeanOperationInfo info)
String describeAttribute(MBeanAttributeInfo attr)
public String describeAttribute(String attributeName)
public List describeOperation(String operationName)
String describeOperation(MBeanOperationInfo operation)
public Object getProperty(String property)
public MBeanInfo info()
public Object invokeMethod(String method, Object arguments)
public Collection listAttributeDescriptions()
public Collection listAttributeNames()
public List listAttributeValues()
public Collection listOperationDescriptions()
public Collection listOperationNames()
public ObjectName name()
public MBeanServerConnection server()
public void setProperty(String property, Object value)
void throwException(String m, Exception e)
void throwExceptionWithTarget(String m, MBeanException e)
public String toString()