network.detectors
Class XDMEventDetector

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

public class XDMEventDetector
extends SyslogEventDetector
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.detectors.SyslogEventDetector
compiler, currentYear, eventInfoTable, eventName, matcher, monthLookup, paramInstr, paramProcInstr, pattern, toolsCreated
 
Fields inherited from class network.detectors.EventDetector
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable
 
Constructor Summary
XDMEventDetector(ConfigObject configObj)
           
XDMEventDetector(java.util.Vector localtriggeringEventClassNames, java.util.Vector remotetriggeringEventClassNames, ConfigObject configObj)
           
 
Method Summary
 java.util.Vector generateEvent(Event triggeredEvent)
          tokens - matched tokens as given in pattern The method is synchronized because, when we invoke modifyDetector method, some of the variables would be null.
 java.lang.String getGeneratingEventClassName()
           
static java.lang.String[] getParamList()
          Returns array of strings containing all the parameters that can be used as input to modify this detector.
static java.lang.Object[] translateParameters(java.lang.String[] inputarray)
          This function takes an array of strings from GUI which contains input and converts them to array of objects and returns.
 
Methods inherited from class network.detectors.SyslogEventDetector
match, modifyDetector, parsePatternFile, populatePatterns, setLastReadTime
 
Methods inherited from class network.detectors.EventDetector
getAlarmLevel, getAlertLevel, getLocalTriggeringEventClassNames, getRemoteTriggeringEventClassNames, getSynchronizer, InitializeFields, 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

XDMEventDetector

public XDMEventDetector(ConfigObject configObj)
                 throws java.lang.Exception

XDMEventDetector

public XDMEventDetector(java.util.Vector localtriggeringEventClassNames,
                        java.util.Vector remotetriggeringEventClassNames,
                        ConfigObject configObj)
                 throws java.lang.Exception
Method Detail

getGeneratingEventClassName

public java.lang.String getGeneratingEventClassName()
Overrides:
getGeneratingEventClassName in class SyslogEventDetector
Returns:

getParamList

public static java.lang.String[] getParamList()
Returns array of strings containing all the parameters that can be used as input to modify this detector. Each entry in the array corresponds to one parameter with structure " : ".

Returns:
parameterList, an array of Strings indicating parameters and their types

translateParameters

public static java.lang.Object[] translateParameters(java.lang.String[] inputarray)
                                              throws java.lang.Exception
This function takes an array of strings from GUI which contains input and converts them to array of objects and returns.

Parameters:
inputarray - an array of strings that contains user inputs.
Returns:
objArray an array of objects converted from the array of strings got from user.
Throws:
java.lang.Exception

generateEvent

public java.util.Vector generateEvent(Event triggeredEvent)
tokens - matched tokens as given in pattern The method is synchronized because, when we invoke modifyDetector method, some of the variables would be null. Hence, we are making the method synchronized

Overrides:
generateEvent in class SyslogEventDetector
Parameters:
triggeredEvent -
Returns: