|
Préférences
Moteurs de recherche
|
||||||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.management.modelmbean
|
Method Summary | |
---|---|
void |
setManagedResource(Object mr,
String mr_type)
Sets the instance handle of the object against which to execute all methods in this ModelMBean management interface (MBeanInfo and Descriptors). |
void |
setModelMBeanInfo(ModelMBeanInfo inModelMBeanInfo)
Initializes a ModelMBean object using ModelMBeanInfo passed in. |
Methods inherited from interface javax.management.DynamicMBean |
---|
getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributes |
Methods inherited from interface javax.management.PersistentMBean |
---|
load, store |
Methods inherited from interface javax.management.modelmbean.ModelMBeanNotificationBroadcaster |
---|
addAttributeChangeNotificationListener, removeAttributeChangeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification |
Methods inherited from interface javax.management.NotificationBroadcaster |
---|
addNotificationListener, getNotificationInfo, removeNotificationListener |
Method Detail |
---|
void setModelMBeanInfo(ModelMBeanInfo inModelMBeanInfo) throws MBeanException, RuntimeOperationsException
If the ModelMBean is currently registered, this method throws
a RuntimeOperationsException
wrapping an
IllegalStateException
inModelMBeanInfo
- The ModelMBeanInfo object to be used
by the ModelMBean.
MBeanException
- Wraps a distributed communication
Exception.
RuntimeOperationsException
- IllegalArgumentException
if
the MBeanInfo passed in parameter is null.IllegalStateException
if the ModelMBean
is currently registered in the MBeanServer.void setManagedResource(Object mr, String mr_type) throws MBeanException, RuntimeOperationsException, InstanceNotFoundException, InvalidTargetObjectTypeException
mr
- Object that is the managed resourcemr_type
- The type of reference for the managed resource. Can be: ObjectReference,
Handle, IOR, EJBHandle, RMIReference.
If the MBeanServer cannot process the mr_type passed in, an InvalidTargetTypeException
will be thrown.
MBeanException
- The initializer of the object has thrown an exception.
RuntimeOperationsException
- Wraps an IllegalArgumentException:
The managed resource type passed in parameter is null.
InstanceNotFoundException
- The managed resource object could not be found
InvalidTargetObjectTypeException
- The managed resource type cannot be processed by the
ModelMBean or JMX Agent.