|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.ObjectInstance
org.norther.tammi.core.base.MBeanInstance
public class MBeanInstance
An extension to javax.management.ObjectInstance containing an
optional reference to the corresponding registered MBean instance.
| Constructor Summary | |
|---|---|
MBeanInstance(ReferableMBean instance)
Constructs a new empty instance. |
|
| Method Summary | |
|---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
protected void |
deregistered()
Marks as deregistered. |
protected void |
deserialized(ReferableMBean instance)
Marks as deserialized. |
boolean |
equals(Object object)
|
Object |
get()
Gets the referent. |
String |
getClassName()
Gets the class name. |
MBeanServer |
getMBeanServer()
Gets the MBean server. |
MBeanNotificationInfo[] |
getNotificationInfo()
|
ObjectName |
getObjectName()
Gets the object name. |
int |
hashCode()
|
boolean |
isRegistered()
Checks whether registered, already unregistered or unregistration is just going on. |
protected void |
registered(ObjectName name,
MBeanServer server)
Marks as registered. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
protected void |
setMBeanServer(MBeanServer server)
Sets the MBean server. |
protected void |
setObjectName(ObjectName name)
Sets the object name. |
protected void |
unregistered()
Marks as unregistered. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MBeanInstance(ReferableMBean instance)
instance - the MBean instance.| Method Detail |
|---|
public boolean equals(Object object)
equals in class ObjectInstancepublic int hashCode()
hashCode in class ObjectInstancepublic Object get()
MBeanReference
get in interface MBeanReferencepublic ObjectName getObjectName()
MBeanReference
getObjectName in interface MBeanReferencegetObjectName in class ObjectInstancepublic String getClassName()
MBeanReference
getClassName in interface MBeanReferencegetClassName in class ObjectInstancepublic boolean isRegistered()
MBeanReference
isRegistered in interface MBeanReferencepublic MBeanServer getMBeanServer()
MBeanReference
getMBeanServer in interface MBeanReference
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
addNotificationListener in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationEmitterListenerNotFoundException
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
removeNotificationListener in interface NotificationBroadcasterListenerNotFoundExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcaster
protected void registered(ObjectName name,
MBeanServer server)
Note that notifications are not sent by MBeanInstance as the proper timing for notifications is decided by MBeans themselves.
name - the object name.server - the MBean server.
IllegalStateException - if already registered.
IllegalArgumentException - for a name pattern.protected void deregistered()
protected void unregistered()
Note that notifications are not sent by MBeanInstance as the proper timing for notifications is decided by MBeans themselves.
protected void deserialized(ReferableMBean instance)
instance - the MBean instance.protected void setObjectName(ObjectName name)
name - the object name.
IllegalStateException - if already registered.
IllegalArgumentException - for a name pattern.protected void setMBeanServer(MBeanServer server)
server - the MBean server.
IllegalStateException - if already registered.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||