org.eclipse.jetty.monitor.jmx
Class EventTrigger

java.lang.Object
  extended by org.eclipse.jetty.monitor.jmx.EventTrigger
Direct Known Subclasses:
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.


Constructor Summary
EventTrigger()
          Construct an event trigger
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTrigger

public EventTrigger()
Construct an event trigger

Method Detail

getID

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

Returns:
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

Returns:
true to trigger an event
Throws:
Exception

getState

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

Parameters:
timestamp - time stamp associated with invocation
Returns:
event state or null if not found


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