Rio Project 4.2 API Documentation
org.rioproject.sla
Class SLAThresholdEventAdapter
java.lang.Object
org.rioproject.event.EventNotificationAdapter
org.rioproject.sla.SLAThresholdEventAdapter
- All Implemented Interfaces:
- Remote, EventListener, RemoteEventListener, SLAPolicyEventListener
public class SLAThresholdEventAdapter
- extends EventNotificationAdapter
- implements SLAPolicyEventListener
Provides the support to transform SLAThresholdEvent notifications
to JMX notifications
- Author:
- Dennis Reedy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT_TYPE_BREACHED
public static final String EVENT_TYPE_BREACHED
- See Also:
- Constant Field Values
EVENT_TYPE_CLEARED
public static final String EVENT_TYPE_CLEARED
- See Also:
- Constant Field Values
NOTIFICATION_INFO
protected static final MBeanNotificationInfo NOTIFICATION_INFO
SLAThresholdEventAdapter
public SLAThresholdEventAdapter(ObjectName objectName,
NotificationBroadcasterSupport notificationBroadcasterSupport)
- Create a SLAThresholdEventAdapter
- Parameters:
objectName - The JMX ObjectNamenotificationBroadcasterSupport - The
JMX NotificationBroadcasterSupport
notify
public void notify(RemoteEvent theEvent)
throws UnknownEventException,
RemoteException
- Transforms the notification of a SLAThresholdEvent to a JMX
notification
- Specified by:
notify in interface RemoteEventListener- Specified by:
notify in class EventNotificationAdapter
- Parameters:
theEvent - The remote evet notification
- Throws:
UnknownEventException - If theEvent argument is an unknown or
unexpected type
RemoteException- See Also:
EventNotificationAdapter.notify(net.jini.core.event.RemoteEvent)
policyAction
public void policyAction(SLAPolicyEvent event)
- Notification of a SLAPolicyEvent
- Specified by:
policyAction in interface SLAPolicyEventListener
- Parameters:
event - The SLAPolicyEvent
getNotificationInfo
public MBeanNotificationInfo getNotificationInfo()
- Get the MBeanNotificationInfo for the transformed SLAThresholdEvent
- Specified by:
getNotificationInfo in class EventNotificationAdapter
- Returns:
- The
MBeanNotificationInfo for the JMX
notification - See Also:
EventNotificationAdapter.getNotificationInfo()
Copyright © 2006-2011 Rio Project. All Rights Reserved.