network.detectors
Class AgentServerLogEventDetector

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

public class AgentServerLogEventDetector
extends EventDetector

See Also:
Serialized Form

Field Summary
protected  com.oroinc.text.regex.PatternCompiler compiler
          Perl pattern match compiler
protected  int currentYear
           
protected  java.lang.String[][] eventInfoTable
           
protected  java.lang.String eventName
           
protected  com.oroinc.text.regex.PatternMatcher matcher
          Perl pattern matcher object
protected  java.util.Vector monthLookup
           
protected  java.lang.String paramInstr
           
protected  java.util.Vector paramProcInstr
           
protected  java.lang.String pattern
           
protected  boolean toolsCreated
           
 
Fields inherited from class network.detectors.EventDetector
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable
 
Constructor Summary
AgentServerLogEventDetector(ConfigObject configObj)
          Default constructor for the AgentServerLogEventDetector.
AgentServerLogEventDetector(java.lang.String logFileName, ConfigObject configObj)
          Constructor for the AgentServerLogDetector.
 
Method Summary
 java.util.Vector generateEvent(Event triggerringEvent)
          Generates an
 java.lang.String getGeneratingEventClassName()
          Function which returns the generated Event Class name
protected  java.util.Vector match(java.lang.String line, java.lang.String inputPattern)
           
 void populatePatterns(java.util.Vector patternVector)
           
 
Methods inherited from class network.detectors.EventDetector
getAlarmLevel, getAlertLevel, getLocalTriggeringEventClassNames, getRemoteTriggeringEventClassNames, getSynchronizer, InitializeFields, modifyDetector, 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
 

Field Detail

eventInfoTable

protected java.lang.String[][] eventInfoTable

pattern

protected java.lang.String pattern

eventName

protected java.lang.String eventName

paramProcInstr

protected java.util.Vector paramProcInstr

currentYear

protected int currentYear

paramInstr

protected java.lang.String paramInstr

toolsCreated

protected boolean toolsCreated

monthLookup

protected java.util.Vector monthLookup

matcher

protected com.oroinc.text.regex.PatternMatcher matcher
Perl pattern matcher object


compiler

protected com.oroinc.text.regex.PatternCompiler compiler
Perl pattern match compiler

Constructor Detail

AgentServerLogEventDetector

public AgentServerLogEventDetector(ConfigObject configObj)
Default constructor for the AgentServerLogEventDetector.


AgentServerLogEventDetector

public AgentServerLogEventDetector(java.lang.String logFileName,
                                   ConfigObject configObj)
Constructor for the AgentServerLogDetector.

Parameters:
logFileName - Name of the AgentServer logfile
Method Detail

getGeneratingEventClassName

public java.lang.String getGeneratingEventClassName()
Function which returns the generated Event Class name

Specified by:
getGeneratingEventClassName in class EventDetector
Returns:
Event Class is returned as a string

generateEvent

public java.util.Vector generateEvent(Event triggerringEvent)
Generates an

Specified by:
generateEvent in class EventDetector
Parameters:
triggerringEvent -
Returns:
Event Class is returned as a string

match

protected java.util.Vector match(java.lang.String line,
                                 java.lang.String inputPattern)
Parameters:
line -
inputPattern -
Returns:

populatePatterns

public void populatePatterns(java.util.Vector patternVector)
Overrides:
populatePatterns in class EventDetector
Parameters:
patternVector -
Returns: