Rio Project 4.2 API Documentation
org.rioproject.event
Class EventNotificationAdapter
java.lang.Object
org.rioproject.event.EventNotificationAdapter
- All Implemented Interfaces:
- Remote, EventListener, RemoteEventListener
- Direct Known Subclasses:
- ProvisionFailureEventAdapter, ProvisionMonitorEventAdapter, SLAThresholdEventAdapter
public abstract class EventNotificationAdapter
- extends Object
- implements RemoteEventListener
The EventNotificationAdapter defines the essentials for an event client to
transform a remote event notification to a JMX notification.
- Author:
- Dennis Reedy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objectName
protected final ObjectName objectName
notificationBroadcasterSupport
protected final NotificationBroadcasterSupport notificationBroadcasterSupport
EventNotificationAdapter
public EventNotificationAdapter(ObjectName objectName,
NotificationBroadcasterSupport notificationBroadcasterSupport)
- Creates an EventNotificationAdapter, initializing required properties
- Parameters:
objectName - The JMX ObjectNamenotificationBroadcasterSupport - The
NotificationBroadcasterSupport for sending
the notification
- Throws:
NullPointerException - if any of the constructor arguments are
null
notify
public abstract void notify(RemoteEvent theEvent)
throws UnknownEventException,
RemoteException
- Implements the contract of a
RemoteEventListener, and provides the
adapter that concrete classes must implement to transform the remote
event to a JMX notification
- Specified by:
notify in interface RemoteEventListener
- Parameters:
theEvent - The remote evet notification
- Throws:
UnknownEventException - If theEvent argument is an unknown or
unexpected type
NullPointerException - If theEvent argument is null
RemoteException- See Also:
RemoteEventListener.notify(net.jini.core.event.RemoteEvent)
getNotificationInfo
public abstract MBeanNotificationInfo getNotificationInfo()
- Get the MBeanNotificationInfo for the transformed event
- Returns:
- The
MBeanNotificationInfo for the JMX
notification
Copyright © 2006-2011 Rio Project. All Rights Reserved.