network.detectors
Class FtpEventDetector

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

public class FtpEventDetector
extends SyslogEventDetector
implements java.io.Serializable

This detector extends the SyslogEventDetector and generates FtpEvents when called.

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
FtpEventDetector(ConfigObject configObj)
          The default constructor.
FtpEventDetector(java.util.Vector localtriggeringEventClassNames, java.util.Vector remotetriggeringEventClassNames, ConfigObject configObj)
          A constructor that sets up triggering dependencies based on a vector of dependencies that you pass.
 
Method Summary
 java.util.Vector generateEvent(Event triggeredEvent)
          This method will parse the event string from triggeredEvent and generate a corresponding FtpEvent.
 java.lang.String getGeneratingEventClassName()
          Returns the fully-qualified classname of the event that this detector may generate.
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

FtpEventDetector

public FtpEventDetector(java.util.Vector localtriggeringEventClassNames,
                        java.util.Vector remotetriggeringEventClassNames,
                        ConfigObject configObj)
                 throws java.lang.Exception
A constructor that sets up triggering dependencies based on a vector of dependencies that you pass.


FtpEventDetector

public FtpEventDetector(ConfigObject configObj)
                 throws java.lang.Exception
The default constructor. Sets up triggering dependencies.

Method Detail

getGeneratingEventClassName

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

Overrides:
getGeneratingEventClassName in class SyslogEventDetector
Returns:
the fully-qualified classname of the event that this detector may generate.

generateEvent

public java.util.Vector generateEvent(Event triggeredEvent)
This method will parse the event string from triggeredEvent and generate a corresponding FtpEvent.

Overrides:
generateEvent in class SyslogEventDetector
Parameters:
triggeredEvent - the event that triggered the detector.
Returns:
a vector of FtpEvents.

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