org.eclipse.jetty.monitor.jmx
Class NotifierGroup

java.lang.Object
  extended by org.eclipse.jetty.monitor.jmx.NotifierGroup
All Implemented Interfaces:
EventNotifier
Direct Known Subclasses:
MonitorAction

public class NotifierGroup
extends Object
implements EventNotifier

NotifierGroup This class allows for grouping of the event notifiers


Constructor Summary
NotifierGroup()
          Create a notifier group
 
Method Summary
 boolean addNotifier(EventNotifier notifier)
          Add specified event notifier to event notifier group
 boolean addNotifiers(Collection<EventNotifier> notifiers)
          Add a collection of event notifiers to event notifier group
 Collection<EventNotifier> getNotifiers()
          Retrieve all event notifier associated with this group
 void notify(EventTrigger trigger, EventState<?> state, long timestamp)
          Invoke the notify() method of each of the notifiers in group
 boolean removeNotifier(EventNotifier notifier)
          Remove event notifier from event notifier group
 boolean removeNotifiers(Collection<EventNotifier> notifiers)
          Remove a collection of event notifiers from event notifier group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotifierGroup

public NotifierGroup()
Create a notifier group

Method Detail

getNotifiers

public Collection<EventNotifier> getNotifiers()
Retrieve all event notifier associated with this group

Returns:
collection of event notifiers

addNotifier

public boolean addNotifier(EventNotifier notifier)
Add specified event notifier to event notifier group

Parameters:
notifier - event notifier to be added
Returns:
true if successful

addNotifiers

public boolean addNotifiers(Collection<EventNotifier> notifiers)
Add a collection of event notifiers to event notifier group

Parameters:
notifiers - collection of event notifiers to be added
Returns:
true if successful

removeNotifier

public boolean removeNotifier(EventNotifier notifier)
Remove event notifier from event notifier group

Parameters:
notifier - event notifier to be removed
Returns:
true if successful

removeNotifiers

public boolean removeNotifiers(Collection<EventNotifier> notifiers)
Remove a collection of event notifiers from event notifier group

Parameters:
notifiers - collection of event notifiers to be removed
Returns:
true if successful

notify

public void notify(EventTrigger trigger,
                   EventState<?> state,
                   long timestamp)
Invoke the notify() method of each of the notifiers in group

Specified by:
notify in interface EventNotifier
state - an event state
timestamp - time stamp of the event
See Also:
EventNotifier.notify(org.eclipse.jetty.monitor.jmx.EventTrigger, org.eclipse.jetty.monitor.jmx.EventState, long)


Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.