|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--campus.sysnort.Trigger
Abstract class for Sysnort trigger. A trigger has a condition and an action. Sysnort checks an arriving event against the condition and calls the action if the condition is satisfied.
Field Summary | |
protected java.lang.Object |
_actionObject
|
protected java.lang.String |
_name
|
Constructor Summary | |
Trigger()
|
Method Summary | |
abstract boolean |
checkCondition(Event evt)
Check whether the new event satisfy this trigger's condition. |
java.lang.Object |
getActionObject()
Get the object containing all necessary info to take an action. |
java.lang.String |
getName()
Get the name of this trigger. |
java.lang.String |
getPackPolicy()
Return the PACK policy for this trigger, default as empty. |
void |
init(serp.util.Options opts)
Init the trigger with customized arguments in configuration. |
void |
setName(java.lang.String name)
Set the name of this trigger. |
abstract void |
takeAction(java.lang.Object actionObject)
When the checkCondition returns true, Sysnort retrieves the action object and may call takeAction immediately or defer to a later time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Object _actionObject
protected java.lang.String _name
Constructor Detail |
public Trigger()
Method Detail |
public void init(serp.util.Options opts) throws java.lang.Exception
java.lang.Exception
public void setName(java.lang.String name)
public java.lang.String getName()
public java.lang.String getPackPolicy()
public abstract boolean checkCondition(Event evt) throws java.lang.Exception
java.lang.Exception
public final java.lang.Object getActionObject()
public abstract void takeAction(java.lang.Object actionObject) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |