|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.core.base.Adaptee
public class Adaptee
A manageable adaptee for non-referable MBeans.
| Field Summary | |
|---|---|
static String |
ADAPTEE_NOTIF_DESCRIPTION
The notification description. |
static ModelMBeanNotificationInfo[] |
ADAPTEE_NOTIFICATIONS
Adaptee notifications. |
| Fields inherited from interface org.norther.tammi.core.base.MBeanDelegate |
|---|
ARRAY_TYPE, OBJECT_TYPE, PRIMITIVE_TYPE, STRING_TYPE |
| Constructor Summary | |
|---|---|
Adaptee()
Constructs a new adaptee. |
|
| Method Summary | |
|---|---|
void |
addAdaptee(Manageable adaptee)
Adds a nested adaptee. |
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
AttributeSupport |
getAttributeSupport()
Gets the attribute support. |
Broker |
getBroker()
Gets the referent of the broker MBean. |
String |
getCanonicalName()
Gets the canonical name. |
Domain |
getDomain()
Gets the referent of the domain MBean. |
Factory |
getFactory()
Gets the referent of the factory MBean. |
LoaderMBean |
getLoader()
Gets the referent of the loader MBean. |
Log |
getLog()
Gets an anonymous log. |
Log |
getLog(Object object)
Gets an object specific log. |
MBeanReference |
getMBean()
Gets a reference to the adapter MBean. |
MBeanServer |
getMBeanServer()
Gets the MBean server. |
MBeanNotificationInfo[] |
getNotificationInfo()
|
ObjectName |
getObjectName()
Gets the object name. |
long |
getRegistrationTime()
Gets the registration time. |
long |
getSequenceNumber()
Gets the notification sequence number. |
boolean |
hasListeners()
Checks whether there are registered notification listeners. |
boolean |
isRegistered()
Checks whether registered. |
void |
postmanaged()
This method is called when the implementing adaptee has been managed either during post-registration of the corresponding adapter MBean or just after it is explicitly added to the adapter MBean during run-time. |
void |
premanaged(MBeanDelegate adapter)
This method is called when the implementing adaptee is trying to be managed either during pre-registration of the corresponding adapter MBean or just before it is explicitly added to the adapter MBean during run-time. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
sendNotification(Notification notif)
Sends the specified notification. |
void |
sendNotification(String message)
Sends a generic notification. |
void |
sendNotification(String message,
Object data)
Sends a generic notification with data. |
void |
sendNotification(String message,
String name,
String type,
Object oldValue,
Object newValue)
Sends a modification notification with values for object attributes. |
void |
unmanaged()
This method is called when the implementing adaptee is unmanaged either during pre-deregistration of the corresponding adapter MBean or just before it is explicitly removed from the adapter MBean during run-time. |
void |
unregister()
Unregisters this MBean if it is still registered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ADAPTEE_NOTIF_DESCRIPTION
public static final ModelMBeanNotificationInfo[] ADAPTEE_NOTIFICATIONS
| Constructor Detail |
|---|
public Adaptee()
| Method Detail |
|---|
public void premanaged(MBeanDelegate adapter)
throws Exception
Manageable
premanaged in interface Manageableadapter - the managing adapter.
Exception - if the adaptee refused to be managed.public void postmanaged()
Manageable
postmanaged in interface Manageable
public void unmanaged()
throws Exception
Manageable
unmanaged in interface ManageableException - if the adaptee refused to be unmanaged.public MBeanReference getMBean()
MBeanDelegate
getMBean in interface MBeanDelegatepublic Domain getDomain()
MBeanDelegate
getDomain in interface MBeanDelegatepublic LoaderMBean getLoader()
MBeanDelegate
getLoader in interface MBeanDelegatepublic Broker getBroker()
MBeanDelegate
getBroker in interface MBeanDelegatepublic Factory getFactory()
MBeanDelegate
getFactory in interface MBeanDelegatepublic Log getLog(Object object)
MBeanDelegate
getLog in interface MBeanDelegateobject - the object.
public Log getLog()
MBeanDelegate
getLog in interface MBeanDelegatepublic long getRegistrationTime()
MBeanDelegate
getRegistrationTime in interface MBeanDelegatepublic void unregister()
MBeanDelegate
unregister in interface MBeanDelegatepublic long getSequenceNumber()
MBeanDelegate
getSequenceNumber in interface MBeanDelegatepublic void sendNotification(Notification notif)
MBeanDelegate
sendNotification in interface MBeanDelegatenotif - the notification to send.public void sendNotification(String message)
MBeanDelegate
sendNotification in interface MBeanDelegatemessage - the notification message.
public void sendNotification(String message,
Object data)
MBeanDelegate
sendNotification in interface MBeanDelegatemessage - the notification message.data - a user data object of any type.
public void sendNotification(String message,
String name,
String type,
Object oldValue,
Object newValue)
MBeanDelegate
Not that values may be nulls when applicable, e.g. for complicated
attributes and primitives. Null type is replaced with
java.lang.Object.
sendNotification in interface MBeanDelegatemessage - the notification message.name - the attribute name.type - the attribute type.oldValue - the old value.newValue - the new value.public boolean hasListeners()
MBeanDelegate
hasListeners in interface MBeanDelegate
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 NotificationBroadcasterpublic ObjectName getObjectName()
public boolean isRegistered()
public MBeanServer getMBeanServer()
public String getCanonicalName()
public AttributeSupport getAttributeSupport()
public void addAdaptee(Manageable adaptee)
adaptee - the nested adaptee.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||