public class ManagedBean extends Object implements Serializable
Internal configuration information for a managed bean (MBean) descriptor.
Modifier and Type | Field and Description |
---|---|
protected String |
className |
protected String |
description |
protected String |
domain |
protected String |
group |
protected String |
name |
protected String |
type |
Constructor and Description |
---|
ManagedBean()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(AttributeInfo attribute)
Add a new attribute to the set of attributes for this MBean.
|
void |
addNotification(NotificationInfo notification)
Add a new notification to the set of notifications for this MBean.
|
void |
addOperation(OperationInfo operation)
Add a new operation to the set of operations for this MBean.
|
DynamicMBean |
createMBean(Object instance)
Create and return a
ModelMBean that has been
preconfigured with the ModelMBeanInfo information
for this managed bean, and is associated with the specified
managed object instance. |
AttributeInfo[] |
getAttributes() |
String |
getClassName()
The fully qualified name of the Java class of the MBean
described by this descriptor.
|
String |
getDescription() |
String |
getDomain() |
String |
getGroup() |
Method |
getInvoke(String aname,
Object[] params,
String[] signature,
BaseModelMBean bean,
Object resource) |
String |
getName() |
NotificationInfo[] |
getNotifications() |
OperationInfo[] |
getOperations() |
Method |
getSetter(String aname,
BaseModelMBean bean,
Object resource) |
String |
getType() |
void |
setClassName(String className) |
void |
setDescription(String description) |
void |
setDomain(String domain) |
void |
setGroup(String group) |
void |
setName(String name) |
void |
setType(String type) |
String |
toString()
Return a string representation of this managed bean.
|
protected String className
protected String description
protected String domain
protected String group
protected String name
protected String type
public AttributeInfo[] getAttributes()
public String getClassName()
javax.management.modelmbean.RequiredModeLMBean
)
will be utilized.public void setClassName(String className)
public String getDescription()
public void setDescription(String description)
public String getDomain()
ObjectName
domain in which
this MBean should be registered in the MBeanServer.public void setDomain(String domain)
public String getGroup()
public void setGroup(String group)
public String getName()
public void setName(String name)
public NotificationInfo[] getNotifications()
public OperationInfo[] getOperations()
public String getType()
public void setType(String type)
public void addAttribute(AttributeInfo attribute)
attribute
- The new attribute descriptorpublic void addNotification(NotificationInfo notification)
notification
- The new notification descriptorpublic void addOperation(OperationInfo operation)
operation
- The new operation descriptorpublic DynamicMBean createMBean(Object instance) throws InstanceNotFoundException, MBeanException, RuntimeOperationsException
ModelMBean
that has been
preconfigured with the ModelMBeanInfo
information
for this managed bean, and is associated with the specified
managed object instance. The returned ModelMBean
will NOT have been registered with our
MBeanServer
.instance
- Instanced of the managed object, or null
for no associated instanceInstanceNotFoundException
- if the managed resource
object cannot be foundMBeanException
- if a problem occurs instantiating the
ModelMBean
instanceRuntimeOperationsException
- if a JMX runtime error occurspublic String toString()
public Method getSetter(String aname, BaseModelMBean bean, Object resource) throws AttributeNotFoundException, ReflectionException
public Method getInvoke(String aname, Object[] params, String[] signature, BaseModelMBean bean, Object resource) throws MBeanException, ReflectionException
MBeanException
ReflectionException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.