|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.util.GroovyMBean
public class GroovyMBean extends GroovyObjectSupport
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.
Constructor Summary | |
GroovyMBean(javax.management.MBeanServerConnection server, java.lang.String objectName)
|
|
GroovyMBean(javax.management.MBeanServerConnection server, java.lang.String objectName, boolean ignoreErrors)
|
|
GroovyMBean(javax.management.MBeanServerConnection server, javax.management.ObjectName name)
|
|
GroovyMBean(javax.management.MBeanServerConnection server, javax.management.ObjectName name, boolean ignoreErrors)
|
Method Summary | |
---|---|
protected java.lang.String
|
createOperationKey(java.lang.String operation, int params)
Construct a simple key based on the method name and the number of parameters |
protected java.lang.String[]
|
createSignature(javax.management.MBeanOperationInfo info)
|
protected java.lang.String
|
describeAttribute(javax.management.MBeanAttributeInfo attr)
Description of the specified attribute name. |
java.lang.String
|
describeAttribute(java.lang.String attributeName)
Description of the specified attribute name. |
java.util.List
|
describeOperation(java.lang.String operationName)
Get the description of the specified operation. |
protected java.lang.String
|
describeOperation(javax.management.MBeanOperationInfo operation)
Description of the operation. |
java.lang.Object
|
getProperty(java.lang.String property)
|
javax.management.MBeanInfo
|
info()
|
java.lang.Object
|
invokeMethod(java.lang.String method, java.lang.Object arguments)
|
java.util.Collection
|
listAttributeDescriptions()
List of string representations of all of the attributes on the MBean. |
java.util.Collection
|
listAttributeNames()
List of the names of each of the attributes on the MBean |
java.util.List
|
listAttributeValues()
The values of each of the attributes on the MBean |
java.util.Collection
|
listOperationDescriptions()
Description of all of the operations available on the MBean. |
java.util.Collection
|
listOperationNames()
Names of all the operations available on the MBean. |
javax.management.ObjectName
|
name()
|
javax.management.MBeanServerConnection
|
server()
|
void
|
setProperty(java.lang.String property, java.lang.Object value)
|
java.lang.String
|
toString()
Return an end user readable representation of the underlying MBean |
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public GroovyMBean(javax.management.MBeanServerConnection server, java.lang.String objectName)
public GroovyMBean(javax.management.MBeanServerConnection server, java.lang.String objectName, boolean ignoreErrors)
public GroovyMBean(javax.management.MBeanServerConnection server, javax.management.ObjectName name)
public GroovyMBean(javax.management.MBeanServerConnection server, javax.management.ObjectName name, boolean ignoreErrors)
Method Detail |
---|
protected java.lang.String createOperationKey(java.lang.String operation, int params)
operation
- - the mbean operation nameparams
- - the number of parameters the operation supports
protected java.lang.String[] createSignature(javax.management.MBeanOperationInfo info)
protected java.lang.String describeAttribute(javax.management.MBeanAttributeInfo attr)
attr
- - the attribute
public java.lang.String describeAttribute(java.lang.String attributeName)
attributeName
- - stringified name of the attribute
public java.util.List describeOperation(java.lang.String operationName)
operationName
- the name of the operation to describe
protected java.lang.String describeOperation(javax.management.MBeanOperationInfo operation)
operation
- the operation to describe
public java.lang.Object getProperty(java.lang.String property)
public javax.management.MBeanInfo info()
public java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
public java.util.Collection listAttributeDescriptions()
public java.util.Collection listAttributeNames()
public java.util.List listAttributeValues()
public java.util.Collection listOperationDescriptions()
public java.util.Collection listOperationNames()
public javax.management.ObjectName name()
public javax.management.MBeanServerConnection server()
public void setProperty(java.lang.String property, java.lang.Object value)
public java.lang.String toString()
Groovy Documentation