org.eclipse.jetty.monitor.jmx
类 NotifierGroup

java.lang.Object
  继承者 org.eclipse.jetty.monitor.jmx.NotifierGroup
所有已实现的接口:
EventNotifier
直接已知子类:
MonitorAction

public class NotifierGroup
extends Object
implements EventNotifier

NotifierGroup This class allows for grouping of the event notifiers


构造方法摘要
NotifierGroup()
          Create a notifier group
 
方法摘要
 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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

NotifierGroup

public NotifierGroup()
Create a notifier group

方法详细信息

getNotifiers

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

返回:
collection of event notifiers

addNotifier

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

参数:
notifier - event notifier to be added
返回:
true if successful

addNotifiers

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

参数:
notifiers - collection of event notifiers to be added
返回:
true if successful

removeNotifier

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

参数:
notifier - event notifier to be removed
返回:
true if successful

removeNotifiers

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

参数:
notifiers - collection of event notifiers to be removed
返回:
true if successful

notify

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

指定者:
接口 EventNotifier 中的 notify
state - an event state
timestamp - time stamp of the event
另请参见:
EventNotifier.notify(org.eclipse.jetty.monitor.jmx.EventTrigger, org.eclipse.jetty.monitor.jmx.EventState, long)


Copyright © 2013. All Rights Reserved.