campus.sysnort.trigger
Class FlickerTrigger

java.lang.Object
  |
  +--campus.sysnort.Trigger
        |
        +--campus.sysnort.trigger.FlickerTrigger
All Implemented Interfaces:
SyslogConstants

public class FlickerTrigger
extends Trigger
implements SyslogConstants

A Sysnort trigger that detects a flickering card, which is associated with an AP for a short time before next rotation.

Version:
$Id: FlickerTrigger.java,v 1.7 2003/09/08 23:50:35 glchen Exp $
Author:
Guanling Chen

Nested Class Summary
(package private)  class FlickerTrigger.ClientState
           
 
Field Summary
protected  java.lang.String _emailto
           
protected  java.util.Set _reported
           
protected  java.lang.String _smtp
           
protected  java.util.Hashtable _state
           
static int HITS_THRESHOLD
           
static long TIME_THRESHOLD
           
 
Fields inherited from class campus.sysnort.Trigger
_actionObject, _name
 
Fields inherited from interface campus.syslog.SyslogConstants
BASE, EVT_ACTION, EVT_APNAME, EVT_CLIENTHOST, EVT_CLIENTMAC, EVT_DAY, EVT_MONTH, EVT_MSGTYPE, EVT_NOTE, EVT_TIME, EVT_TIMESTAMP, EVT_YEAR, IDX_ACTION, IDX_APNAME, IDX_CLIENTHOST, IDX_CLIENTMAC, IDX_DAY, IDX_MONTH, IDX_MSGTYPE, IDX_NOTE, IDX_TIME, IDX_TIMESTAMP, IDX_YEAR, TAG_ASSOCIATED, TAG_AUTHENTICATED, TAG_DEASSOCIATING, TAG_DEASSOCIATION, TAG_DEAUTHENTICATING, TAG_DEAUTHENTICATION, TAG_FATAL, TAG_INACTIVITY, TAG_INFO, TAG_REASSOCIATED, TAG_REPEAT_LAST_MSG, TAG_ROAMED, TAG_SYSLOG, TAG_WARNING
 
Constructor Summary
FlickerTrigger()
           
 
Method Summary
 boolean checkCondition(Event evt)
          Check whether the new event satisfy this trigger's condition.
 void init(serp.util.Options opts)
          Init the trigger with customized arguments in configuration.
 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 campus.sysnort.Trigger
getActionObject, getName, getPackPolicy, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HITS_THRESHOLD

public static int HITS_THRESHOLD

TIME_THRESHOLD

public static long TIME_THRESHOLD

_smtp

protected java.lang.String _smtp

_emailto

protected java.lang.String _emailto

_state

protected java.util.Hashtable _state

_reported

protected java.util.Set _reported
Constructor Detail

FlickerTrigger

public FlickerTrigger()
Method Detail

init

public void init(serp.util.Options opts)
          throws java.lang.Exception
Description copied from class: Trigger
Init the trigger with customized arguments in configuration.

Overrides:
init in class Trigger
java.lang.Exception

checkCondition

public boolean checkCondition(Event evt)
                       throws java.lang.Exception
Description copied from class: Trigger
Check whether the new event satisfy this trigger's condition. If yes, then this function returns true. The subclass must also encapsulate all the information to take action in the object _actionObject, which will be used by Sysnort to call takeAction.

Specified by:
checkCondition in class Trigger
java.lang.Exception

takeAction

public void takeAction(java.lang.Object actionObject)
                throws java.lang.Exception
Description copied from class: Trigger
When the checkCondition returns true, Sysnort retrieves the action object and may call takeAction immediately or defer to a later time.

Specified by:
takeAction in class Trigger
java.lang.Exception