campus.sysnort.trigger
Class MissingCardTrigger

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

public class MissingCardTrigger
extends Trigger
implements SyslogConstants

A Sysnort trigger that sends email when a reported stolen/missing card is associated with the network.

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

Field Summary
protected  java.util.Set _cards
           
protected  java.lang.String _emailto
           
protected  java.lang.String _smtp
           
 
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
MissingCardTrigger()
           
 
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

_cards

protected java.util.Set _cards

_smtp

protected java.lang.String _smtp

_emailto

protected java.lang.String _emailto
Constructor Detail

MissingCardTrigger

public MissingCardTrigger()
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