| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--network.detectors.EventDetector
        |
        +--network.detectors.AgentServerLogEventDetector
| Field Summary | |
protected  com.oroinc.text.regex.PatternCompiler | 
compiler
Perl pattern match compiler  | 
protected  int | 
currentYear
 | 
private  java.lang.String[] | 
defaultLocalTriggeringEvents
The events which trigger AgentServerLogEvent  | 
(package private)  java.io.RandomAccessFile | 
dis
A random access file object to read the logfile  | 
protected  java.lang.String[][] | 
eventInfoTable
 | 
(package private)  int | 
EVENTLIMIT
Max number of events to be read for a single TimerEvent  | 
protected  java.lang.String | 
eventName
 | 
(package private)  java.io.File | 
file
File handle for the logfile  | 
(package private)  long | 
filePtr
Last position read in the file  | 
(package private)  java.lang.String | 
logFilename
Name of the agentServer Log file  | 
protected  com.oroinc.text.regex.PatternMatcher | 
matcher
Perl pattern matcher object  | 
protected  java.util.Vector | 
monthLookup
 | 
(package private)  long | 
newLen
 | 
protected  java.lang.String | 
paramInstr
 | 
protected  java.util.Vector | 
paramProcInstr
 | 
protected  java.lang.String | 
pattern
 | 
private  java.util.Vector | 
patternVector
 | 
(package private)  long | 
prevLen
 | 
protected  boolean | 
toolsCreated
 | 
| Fields inherited from class network.detectors.EventDetector | 
agentURN, attempts, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, printRunningThreadsFlag, 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 | |
private  void | 
addMonths()
 | 
 java.util.Vector | 
generateEvent(network.events.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)
 | 
private  java.util.Vector | 
readLogFile()
 | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
java.io.RandomAccessFile dis
java.lang.String logFilename
long filePtr
int EVENTLIMIT
private java.lang.String[] defaultLocalTriggeringEvents
protected java.lang.String[][] eventInfoTable
protected java.lang.String pattern
protected java.lang.String eventName
protected java.util.Vector paramProcInstr
protected int currentYear
protected java.lang.String paramInstr
protected boolean toolsCreated
private java.util.Vector patternVector
protected java.util.Vector monthLookup
protected com.oroinc.text.regex.PatternMatcher matcher
protected com.oroinc.text.regex.PatternCompiler compiler
java.io.File file
long prevLen
long newLen
| Constructor Detail | 
public AgentServerLogEventDetector(ConfigObject configObj)
public AgentServerLogEventDetector(java.lang.String logFileName,
                                   ConfigObject configObj)
logFileName - Name of the AgentServer logfile| Method Detail | 
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName in class EventDetectorpublic java.util.Vector generateEvent(network.events.Event triggerringEvent)
generateEvent in class EventDetectortriggerringEvent - 
private java.util.Vector readLogFile()
protected java.util.Vector match(java.lang.String line,
                                 java.lang.String inputPattern)
line - inputPattern - 
public void populatePatterns(java.util.Vector patternVector)
populatePatterns in class EventDetectorpatternVector - 
private void addMonths()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||