|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.ObjectInstance org.norther.tammi.core.base.MBeanInstance<R>
R
- the adapter type.public class MBeanInstance<R>
An extension to javax.management.ObjectInstance
containing an
optional reference to the corresponding registered MBean instance.
Constructor Summary | |
---|---|
MBeanInstance(ReferableMBean<R> 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<R> instance)
Marks as deserialized. |
boolean |
equals(Object object)
|
R |
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 javax.management.ObjectInstance |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MBeanInstance(ReferableMBean<R> instance)
instance
- the MBean instance.Method Detail |
---|
public boolean equals(Object object)
equals
in class ObjectInstance
public int hashCode()
hashCode
in class ObjectInstance
public R get()
MBeanReference
get
in interface MBeanReference<R>
public ObjectName getObjectName()
MBeanReference
getObjectName
in interface MBeanReference<R>
getObjectName
in class ObjectInstance
public String getClassName()
MBeanReference
getClassName
in interface MBeanReference<R>
getClassName
in class ObjectInstance
public boolean isRegistered()
MBeanReference
isRegistered
in interface MBeanReference<R>
public MBeanServer getMBeanServer()
MBeanReference
getMBeanServer
in interface MBeanReference<R>
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 NotificationEmitter
ListenerNotFoundException
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public 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<R> 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 |