Package groovy.util
Class GroovyMBean
- java.lang.Object
- 
- groovy.lang.GroovyObjectSupport
- 
- groovy.util.GroovyMBean
 
 
- 
- All Implemented Interfaces:
- GroovyObject
 
 @Deprecated public class GroovyMBean extends GroovyObjectSupport Deprecated.UseGroovyMBeanA 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 SummaryConstructors Constructor Description GroovyMBean(MBeanServerConnection server, String objectName)Deprecated.GroovyMBean(MBeanServerConnection server, String objectName, boolean ignoreErrors)Deprecated.GroovyMBean(MBeanServerConnection server, ObjectName name)Deprecated.GroovyMBean(MBeanServerConnection server, ObjectName name, boolean ignoreErrors)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected StringcreateOperationKey(String operation, int params)Deprecated.Construct a simple key based on the method name and the number of parametersprotected String[]createSignature(MBeanOperationInfo info)Deprecated.StringdescribeAttribute(String attributeName)Deprecated.Description of the specified attribute name.protected StringdescribeAttribute(MBeanAttributeInfo attr)Deprecated.Description of the specified attribute name.List<String>describeOperation(String operationName)Deprecated.Get the description of the specified operation.protected StringdescribeOperation(MBeanOperationInfo operation)Deprecated.Description of the operation.ObjectgetProperty(String property)Deprecated.Retrieves a property value.MBeanInfoinfo()Deprecated.ObjectinvokeMethod(String method, Object arguments)Deprecated.Invokes the given method.Collection<String>listAttributeDescriptions()Deprecated.List of string representations of all of the attributes on the MBean.Collection<String>listAttributeNames()Deprecated.List of the names of each of the attributes on the MBeanList<String>listAttributeValues()Deprecated.The values of each of the attributes on the MBeanCollection<String>listOperationDescriptions()Deprecated.Description of all of the operations available on the MBean.Collection<String>listOperationNames()Deprecated.Names of all the operations available on the MBean.ObjectNamename()Deprecated.MBeanServerConnectionserver()Deprecated.voidsetProperty(String property, Object value)Deprecated.Sets the given property to the new value.StringtoString()Deprecated.Return an end user readable representation of the underlying MBean- 
Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, setMetaClass
 
- 
 
- 
- 
- 
Constructor Detail- 
GroovyMBeanpublic GroovyMBean(MBeanServerConnection server, String objectName) throws JMException, IOException Deprecated.- Throws:
- JMException
- IOException
 
 - 
GroovyMBeanpublic GroovyMBean(MBeanServerConnection server, String objectName, boolean ignoreErrors) throws JMException, IOException Deprecated.- Throws:
- JMException
- IOException
 
 - 
GroovyMBeanpublic GroovyMBean(MBeanServerConnection server, ObjectName name) throws JMException, IOException Deprecated.- Throws:
- JMException
- IOException
 
 - 
GroovyMBeanpublic GroovyMBean(MBeanServerConnection server, ObjectName name, boolean ignoreErrors) throws JMException, IOException Deprecated.- Throws:
- JMException
- IOException
 
 
- 
 - 
Method Detail- 
serverpublic MBeanServerConnection server() Deprecated.
 - 
namepublic ObjectName name() Deprecated.
 - 
infopublic MBeanInfo info() Deprecated.
 - 
getPropertypublic Object getProperty(String property) Deprecated.Description copied from interface:GroovyObjectRetrieves a property value.- Parameters:
- property- the name of the property of interest
- Returns:
- the given property
 
 - 
setPropertypublic void setProperty(String property, Object value) Deprecated.Description copied from interface:GroovyObjectSets the given property to the new value.- Parameters:
- property- the name of the property of interest
- value- the new value for the property
 
 - 
invokeMethodpublic Object invokeMethod(String method, Object arguments) Deprecated.Description copied from interface:GroovyObjectInvokes the given method.- Parameters:
- method- the name of the method to call
- arguments- the arguments to use for the method call
- Returns:
- the result of invoking the method
 
 - 
createSignatureprotected String[] createSignature(MBeanOperationInfo info) Deprecated.
 - 
createOperationKeyprotected String createOperationKey(String operation, int params) Deprecated.Construct a simple key based on the method name and the number of parameters- Parameters:
- operation- - the mbean operation name
- params- - the number of parameters the operation supports
- Returns:
- simple unique identifier for a method
 
 - 
listAttributeNamespublic Collection<String> listAttributeNames() Deprecated.List of the names of each of the attributes on the MBean- Returns:
- list of attribute names
 
 - 
listAttributeValuespublic List<String> listAttributeValues() Deprecated.The values of each of the attributes on the MBean- Returns:
- list of values of each attribute
 
 - 
listAttributeDescriptionspublic Collection<String> listAttributeDescriptions() Deprecated.List of string representations of all of the attributes on the MBean.- Returns:
- list of descriptions of each attribute on the mbean
 
 - 
describeAttributeprotected String describeAttribute(MBeanAttributeInfo attr) Deprecated.Description of the specified attribute name.- Parameters:
- attr- - the attribute
- Returns:
- String the description
 
 - 
describeAttributepublic String describeAttribute(String attributeName) Deprecated.Description of the specified attribute name.- Parameters:
- attributeName- - stringified name of the attribute
- Returns:
- the description
 
 - 
listOperationNamespublic Collection<String> listOperationNames() Deprecated.Names of all the operations available on the MBean.- Returns:
- all the operations on the MBean
 
 - 
listOperationDescriptionspublic Collection<String> listOperationDescriptions() Deprecated.Description of all of the operations available on the MBean.- Returns:
- full description of each operation on the MBean
 
 - 
describeOperationpublic List<String> describeOperation(String operationName) Deprecated.Get the description of the specified operation. This returns a Collection since operations can be overloaded and one operationName can have multiple forms.- Parameters:
- operationName- the name of the operation to describe
- Returns:
- Collection of operation description
 
 - 
describeOperationprotected String describeOperation(MBeanOperationInfo operation) Deprecated.Description of the operation.- Parameters:
- operation- the operation to describe
- Returns:
- pretty-printed description
 
 
- 
 
-