org.eclipse.jetty.monitor.integration
Class JavaMonitorTrigger<TYPE extends Comparable<TYPE>>

java.lang.Object
  extended by org.eclipse.jetty.monitor.jmx.EventTrigger
      extended by org.eclipse.jetty.monitor.triggers.AttrEventTrigger<TYPE>
          extended by org.eclipse.jetty.monitor.integration.JavaMonitorTrigger<TYPE>

public class JavaMonitorTrigger<TYPE extends Comparable<TYPE>>
extends AttrEventTrigger<TYPE>


Field Summary
 
Fields inherited from class org.eclipse.jetty.monitor.triggers.AttrEventTrigger
_attributeName, _objectName, _states
 
Constructor Summary
JavaMonitorTrigger(ObjectName nameObject, String attributeName, String id, String name, boolean dynamic)
           
 
Method Summary
 String getID()
          Retrieve the identification string of the event trigger
 String getNameString()
          Returns the string representation of this event trigger in the format "[object_name:attribute_name]".
protected  boolean getSaveAll()
           
 boolean match(Comparable<TYPE> value)
          Verify if the event trigger conditions are in the appropriate state for an event to be triggered.
 
Methods inherited from class org.eclipse.jetty.monitor.triggers.AttrEventTrigger
getState, getValue, match, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaMonitorTrigger

public JavaMonitorTrigger(ObjectName nameObject,
                          String attributeName,
                          String id,
                          String name,
                          boolean dynamic)
                   throws IllegalArgumentException
Parameters:
nameObject -
attributeName -
id -
dynamic -
Throws:
IllegalArgumentException
Method Detail

match

public boolean match(Comparable<TYPE> value)
Description copied from class: AttrEventTrigger
Verify if the event trigger conditions are in the appropriate state for an event to be triggered. Allows subclasses to override the default behavior that matches every invocation of this trigger

Overrides:
match in class AttrEventTrigger<TYPE extends Comparable<TYPE>>
See Also:
AttrEventTrigger.match(java.lang.Comparable)

getSaveAll

protected boolean getSaveAll()
Overrides:
getSaveAll in class AttrEventTrigger<TYPE extends Comparable<TYPE>>

getID

public String getID()
Description copied from class: EventTrigger
Retrieve the identification string of the event trigger

Overrides:
getID in class EventTrigger
Returns:
unique identification string

getNameString

public String getNameString()
Description copied from class: AttrEventTrigger
Returns the string representation of this event trigger in the format "[object_name:attribute_name]". Allows subclasses to override the name string used to identify this event trigger in the event state object as well as string representation of the subclasses.

Overrides:
getNameString in class AttrEventTrigger<TYPE extends Comparable<TYPE>>
Returns:
string representation of the event trigger


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