|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. |
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. |
Loader |
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... values)
Sends a modification notification. |
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 Manageable
adapter
- 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 Manageable
Exception
- if the adaptee refused to be unmanaged.public MBeanReference<?> getMBean()
MBeanDelegate
getMBean
in interface MBeanDelegate
public Loader getLoader()
MBeanDelegate
getLoader
in interface MBeanDelegate
public Domain getDomain()
MBeanDelegate
getDomain
in interface MBeanDelegate
public Broker getBroker()
MBeanDelegate
getBroker
in interface MBeanDelegate
public Factory getFactory()
MBeanDelegate
getFactory
in interface MBeanDelegate
public Log getLog(Object object)
MBeanDelegate
getLog
in interface MBeanDelegate
object
- the object.
public Log getLog()
MBeanDelegate
getLog
in interface MBeanDelegate
public long getRegistrationTime()
MBeanDelegate
getRegistrationTime
in interface MBeanDelegate
public void unregister()
MBeanDelegate
unregister
in interface MBeanDelegate
public long getSequenceNumber()
MBeanDelegate
getSequenceNumber
in interface MBeanDelegate
public void sendNotification(Notification notif)
MBeanDelegate
sendNotification
in interface MBeanDelegate
notif
- the notification to send.public void sendNotification(String message)
MBeanDelegate
sendNotification
in interface MBeanDelegate
message
- the notification message.public void sendNotification(String message, Object data)
MBeanDelegate
sendNotification
in interface MBeanDelegate
message
- the notification message.data
- a user data object of any type.public void sendNotification(String message, String name, String type, Object... values)
MBeanDelegate
Not that changed attribute values need not to be passed to the
notification. Null type is replaced with java.lang.Object
.
sendNotification
in interface MBeanDelegate
message
- the notification message.name
- the attribute name.type
- the attribute type.values
- the old and new value of the attribute.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 NotificationEmitter
ListenerNotFoundException
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public 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 |