network.detectors
Class TestEventDetector

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

public class TestEventDetector
extends EventDetector

As the name implies, this is a test detector. It may be triggered by TimerEvents, but it will take no action. It is merely a template.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.detectors.EventDetector
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable
 
Constructor Summary
TestEventDetector()
          The default constructor.
TestEventDetector(ConfigObject configObj)
           
 
Method Summary
 java.util.Vector generateEvent(Event triggeredEvent)
          This method will be triggered whenever a TimerEvent is processed.
 java.lang.String getGeneratingEventClassName()
          Returns the fully-qualified classname of the event that this detector may generate.
 
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

TestEventDetector

public TestEventDetector()
The default constructor. Sets its triggering events to network.events.TimerEvent.


TestEventDetector

public TestEventDetector(ConfigObject configObj)
Method Detail

getGeneratingEventClassName

public java.lang.String getGeneratingEventClassName()
Returns the fully-qualified classname of the event that this detector may generate.

Specified by:
getGeneratingEventClassName in class EventDetector
Returns:
the fully-qualified classname of the event that this detector may generate.

generateEvent

public java.util.Vector generateEvent(Event triggeredEvent)
This method will be triggered whenever a TimerEvent is processed. It is a noop, since no action will be taken.

Specified by:
generateEvent in class EventDetector
Parameters:
triggeredEvent - the triggering event (a TimerEvent).
Returns:
a null vector.