|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.modelmbean.RequiredModelMBean
Mandatory Model MBean implementation. The Model MBean implementation can be configured by setting a jbossmx.required.modelmbean.class system property.
ModelMBean
(src) Constructor Summary | |
RequiredModelMBean()
|
|
RequiredModelMBean(ModelMBeanInfo (src) info)
Constructs a RequiredModelMBean object using ModelMBeanInfo passed in. |
Method Summary | |
void |
addAttributeChangeNotificationListener(NotificationListener (src) inlistener,
java.lang.String inAttributeName,
java.lang.Object inhandback)
|
void |
addNotificationListener(NotificationListener (src) inlistener,
NotificationFilter (src) infilter,
java.lang.Object inhandback)
Add a listener to an MBean. |
java.lang.Object |
getAttribute(java.lang.String attrName)
Returns the value of the attribute with the name matching the passed string. |
AttributeList (src) |
getAttributes(java.lang.String[] attrNames)
Returns the values of the attributes with names matching the passed string array. |
protected ClassLoaderRepository (src) |
getClassLoaderRepository()
|
MBeanInfo (src) |
getMBeanInfo()
Returns the management interface that describes this dynamic resource. |
MBeanNotificationInfo (src) [] |
getNotificationInfo()
Returns the array of Notifications generated by the RequiredModelMBean. |
java.lang.Object |
invoke(java.lang.String opName,
java.lang.Object[] opArgs,
java.lang.String[] sig)
Invokes a resource operation. |
void |
load()
Retrieves the MBean's state from a persistence store. |
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(java.lang.Boolean registrationDone)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName (src) |
preRegister(MBeanServer (src) server,
ObjectName (src) name)
This method is called by the MBeanServer before registration takes place. |
void |
removeAttributeChangeNotificationListener(NotificationListener (src) inlistener,
java.lang.String inAttributeName)
|
void |
removeNotificationListener(NotificationListener (src) inlistener)
Removes a listener from an MBean. |
void |
removeNotificationListener(NotificationListener (src) listener,
NotificationFilter (src) filter,
java.lang.Object handback)
Removes a listener from the Emitter. |
void |
sendAttributeChangeNotification(Attribute (src) inOldVal,
Attribute (src) inNewVal)
|
void |
sendAttributeChangeNotification(AttributeChangeNotification (src) ntfyObj)
|
void |
sendNotification(Notification (src) ntfyObj)
|
void |
sendNotification(java.lang.String ntfyText)
|
void |
setAttribute(Attribute (src) attribute)
Sets the value of an attribute. |
AttributeList (src) |
setAttributes(AttributeList (src) attributes)
Sets the values of the attributes passed as an AttributeList (src) of name and new value pairs. |
void |
setManagedResource(java.lang.Object mr,
java.lang.String mr_type)
|
void |
setModelMBeanInfo(ModelMBeanInfo (src) info)
|
void |
store()
Stores the MBean's state to a persistence store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RequiredModelMBean() throws MBeanException (src) , RuntimeOperationsException (src)
public RequiredModelMBean(ModelMBeanInfo (src) info) throws MBeanException (src) , RuntimeOperationsException (src)
Method Detail |
public void setModelMBeanInfo(ModelMBeanInfo (src) info) throws MBeanException (src) , RuntimeOperationsException (src)
setModelMBeanInfo
in interface ModelMBean (src)
MBeanException (src)
RuntimeOperationsException (src)
public void setManagedResource(java.lang.Object mr, java.lang.String mr_type) throws MBeanException (src) , RuntimeOperationsException (src) , InstanceNotFoundException (src) , InvalidTargetObjectTypeException (src)
setManagedResource
in interface ModelMBean (src)
MBeanException (src)
RuntimeOperationsException (src)
InstanceNotFoundException (src)
InvalidTargetObjectTypeException (src)
public void load() throws MBeanException (src) , RuntimeOperationsException (src) , InstanceNotFoundException (src)
PersistentMBean (src)
load
in interface PersistentMBean (src)
InstanceNotFoundException (src)
- if the MBean's state could not be found
MBeanException (src)
- wraps application exceptions from persistence store
RuntimeOperationsException (src)
public void store() throws MBeanException (src) , RuntimeOperationsException (src) , InstanceNotFoundException (src)
PersistentMBean (src)
store
in interface PersistentMBean (src)
MBeanException (src)
- wraps application exceptions from persistence store
InstanceNotFoundException (src)
- if the MBean's state could not be stored
RuntimeOperationsException (src)
public MBeanInfo (src) getMBeanInfo()
DynamicMBean (src)
getMBeanInfo
in interface DynamicMBean (src)
public java.lang.Object invoke(java.lang.String opName, java.lang.Object[] opArgs, java.lang.String[] sig) throws MBeanException (src) , ReflectionException (src)
DynamicMBean (src)
invoke
in interface DynamicMBean (src)
opName
- the name of the operation to perform.opArgs
- the parameters to pass to the operation.sig
- the signartures of the parameters.
MBeanException (src)
- wraps any error thrown by the resource when
performing the operation.
ReflectionException (src)
- wraps any error invoking the resource.public java.lang.Object getAttribute(java.lang.String attrName) throws AttributeNotFoundException (src) , MBeanException (src) , ReflectionException (src)
DynamicMBean (src)
getAttribute
in interface DynamicMBean (src)
attrName
- the name of the attribute.
MBeanException (src)
- wraps any error thrown by the resource when
getting the attribute.
AttributeNotFoundException (src)
- when there is no such attribute.
ReflectionException (src)
- wraps any error invoking the resource.public AttributeList (src) getAttributes(java.lang.String[] attrNames)
DynamicMBean (src)
getAttributes
in interface DynamicMBean (src)
attrNames
- the names of the attribute.
AttributeList
(src) of name and value pairs.public void setAttribute(Attribute (src) attribute) throws AttributeNotFoundException (src) , InvalidAttributeValueException (src) , MBeanException (src) , ReflectionException (src)
DynamicMBean (src)
Attribute
(src) .
setAttribute
in interface DynamicMBean (src)
attribute
- the name and new value of the attribute.
InvalidAttributeValueException (src)
- when the new value cannot be
converted to the type of the attribute.
AttributeNotFoundException (src)
- when there is no such attribute.
MBeanException (src)
- wraps any error thrown by the resource when
setting the new value.
ReflectionException (src)
- wraps any error invoking the resource.Attribute
(src) public AttributeList (src) setAttributes(AttributeList (src) attributes)
DynamicMBean (src)
AttributeList
(src) of name and new value pairs.
setAttributes
in interface DynamicMBean (src)
attributes
- the name an new value pairs.
AttributeList
(src) of name and value pairs
that were actually set.public void addNotificationListener(NotificationListener (src) inlistener, NotificationFilter (src) infilter, java.lang.Object inhandback) throws java.lang.IllegalArgumentException
NotificationBroadcaster (src)
addNotificationListener
in interface NotificationBroadcaster (src)
inlistener
- implementation of the listener objectinfilter
- implementation of the filter object or null
if no filtering is requiredinhandback
- A handback object associated with each notification
sent by this notification broadcaster.
java.lang.IllegalArgumentException
- if listener is nullpublic void removeNotificationListener(NotificationListener (src) inlistener) throws ListenerNotFoundException (src)
NotificationBroadcaster (src)
removeNotificationListener
in interface NotificationBroadcaster (src)
inlistener
- the listener object to remove
ListenerNotFoundException (src)
- if the listener was not foundpublic void removeNotificationListener(NotificationListener (src) listener, NotificationFilter (src) filter, java.lang.Object handback) throws ListenerNotFoundException (src)
NotificationEmitter (src)
Only the listener, filter, handback triplet is removed
removeNotificationListener
in interface NotificationEmitter (src)
listener
- the listener object to removefilter
- the filter registered with the listenerhandback
- the handback object associated with the registered listener
ListenerNotFoundException (src)
- if the listener was not foundpublic void sendNotification(Notification (src) ntfyObj) throws MBeanException (src) , RuntimeOperationsException (src)
sendNotification
in interface ModelMBeanNotificationBroadcaster (src)
MBeanException (src)
RuntimeOperationsException (src)
public void sendNotification(java.lang.String ntfyText) throws MBeanException (src) , RuntimeOperationsException (src)
sendNotification
in interface ModelMBeanNotificationBroadcaster (src)
MBeanException (src)
RuntimeOperationsException (src)
public MBeanNotificationInfo (src) [] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster (src)
MBeanNotificationInfo
(src) public void addAttributeChangeNotificationListener(NotificationListener (src) inlistener, java.lang.String inAttributeName, java.lang.Object inhandback) throws MBeanException (src) , RuntimeOperationsException (src) , java.lang.IllegalArgumentException
addAttributeChangeNotificationListener
in interface ModelMBeanNotificationBroadcaster (src)
MBeanException (src)
RuntimeOperationsException (src)
java.lang.IllegalArgumentException
public void removeAttributeChangeNotificationListener(NotificationListener (src) inlistener, java.lang.String inAttributeName) throws MBeanException (src) , RuntimeOperationsException (src) , ListenerNotFoundException (src)
removeAttributeChangeNotificationListener
in interface ModelMBeanNotificationBroadcaster (src)
MBeanException (src)
RuntimeOperationsException (src)
ListenerNotFoundException (src)
public void sendAttributeChangeNotification(AttributeChangeNotification (src) ntfyObj) throws MBeanException (src) , RuntimeOperationsException (src)
sendAttributeChangeNotification
in interface ModelMBeanNotificationBroadcaster (src)
MBeanException (src)
RuntimeOperationsException (src)
public void sendAttributeChangeNotification(Attribute (src) inOldVal, Attribute (src) inNewVal) throws MBeanException (src) , RuntimeOperationsException (src)
sendAttributeChangeNotification
in interface ModelMBeanNotificationBroadcaster (src)
MBeanException (src)
RuntimeOperationsException (src)
public ObjectName (src) preRegister(MBeanServer (src) server, ObjectName (src) name) throws java.lang.Exception
MBeanRegistration (src)
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister
in interface MBeanRegistration (src)
java.lang.Exception
- for any error, the MBean is not registered.public void postRegister(java.lang.Boolean registrationDone)
MBeanRegistration (src)
postRegister
in interface MBeanRegistration (src)
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.public void preDeregister() throws java.lang.Exception
MBeanRegistration (src)
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister
in interface MBeanRegistration (src)
java.lang.Exception
public void postDeregister()
MBeanRegistration (src)
postDeregister
in interface MBeanRegistration (src)
protected ClassLoaderRepository (src) getClassLoaderRepository()
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |