network.detectors
Class OutsideAndLocalLoginEventDetector

java.lang.Object
  extended bynetwork.detectors.EventDetector
      extended bynetwork.detectors.OutsideAndLocalLoginEventDetector
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class OutsideAndLocalLoginEventDetector
extends EventDetector
implements java.io.Serializable

Detects if the same user has logged in from the local domain and an outside domain at the same time.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.detectors.EventDetector
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable
 
Constructor Summary
OutsideAndLocalLoginEventDetector(ConfigObject configObj)
           
 
Method Summary
 java.util.Vector generateEvent(Event triggeredEvent)
          Checks to see if an OutsideDomainLoginEvent coincides with a user already being logged in locally Accomplishes this by querying the LoginEvent table in the database and checking if the last record is an xdmOn event.
 java.lang.String getGeneratingEventClassName()
          Returns the name of the event that this detector triggers
 
Methods inherited from class network.detectors.EventDetector
getAlarmLevel, getAlertLevel, getLocalTriggeringEventClassNames, getRemoteTriggeringEventClassNames, getSynchronizer, InitializeFields, modifyDetector, populatePatterns, printRunningThreads, run, setAgentURN, setAlarmLevel, setAlertLevel, setDB, setEventIDGenerator, setEventTable, setLocalTriggeringEvents, setRemoteTriggeringEvents, setReportTable, stopDetector, switchOffPrintRunningThreads
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutsideAndLocalLoginEventDetector

public OutsideAndLocalLoginEventDetector(ConfigObject configObj)
Method Detail

getGeneratingEventClassName

public java.lang.String getGeneratingEventClassName()
Returns the name of the event that this detector triggers

Specified by:
getGeneratingEventClassName in class EventDetector
Returns:
A String containing the name of the event that this detector triggers

generateEvent

public java.util.Vector generateEvent(Event triggeredEvent)
Checks to see if an OutsideDomainLoginEvent coincides with a user already being logged in locally Accomplishes this by querying the LoginEvent table in the database and checking if the last record is an xdmOn event.

Specified by:
generateEvent in class EventDetector
Parameters:
triggeredEvent - The event that triggers this detector. Should be an OutsideDomainLoginEvent
Returns:
A Vector of events corresponding to each detected simultaneous outside and local login