org.eclipse.jetty.monitor.jmx
类 EventTrigger

java.lang.Object
  继承者 org.eclipse.jetty.monitor.jmx.EventTrigger
直接已知子类:
AggregateEventTrigger, AndEventTrigger, AttrEventTrigger, OrEventTrigger

public abstract class EventTrigger
extends Object

EventTrigger Abstract base class for all EventTrigger implementations. Used to determine whether the necessary conditions for triggering an event are present.


构造方法摘要
EventTrigger()
          Construct an event trigger
 
方法摘要
 String getID()
          Retrieve the identification string of the event trigger
abstract  EventState<?> getState(long timestamp)
          Retrieve the event state associated with specified invocation of the event trigger match method
abstract  boolean match(long timestamp)
          Abstract method to verify if the event trigger conditions are in the appropriate state for an event to be triggered
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

EventTrigger

public EventTrigger()
Construct an event trigger

方法详细信息

getID

public String getID()
Retrieve the identification string of the event trigger

返回:
unique identification string

match

public abstract boolean match(long timestamp)
                       throws Exception
Abstract method to verify if the event trigger conditions are in the appropriate state for an event to be triggered

返回:
true to trigger an event
抛出:
Exception

getState

public abstract EventState<?> getState(long timestamp)
Retrieve the event state associated with specified invocation of the event trigger match method

参数:
timestamp - time stamp associated with invocation
返回:
event state or null if not found


Copyright © 2013. All Rights Reserved.