network.detectors
Class RLoginEventDetector

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

public class RLoginEventDetector
extends SyslogEventDetector
implements java.io.Serializable

Detects logins from the RLogin protocol. Triggered by default by SyslogEvent.

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
RLoginEventDetector(ConfigObject configObj)
          Creates an instance of RLoginEventDetector using the default triggering events
RLoginEventDetector(java.util.Vector localtriggeringEventClassNames, java.util.Vector remotetriggeringEventClassNames, ConfigObject configObj)
          Creates an instance of RLoginEventDetector using the given triggering events
 
Method Summary
 java.util.Vector generateEvent(Event triggeredEvent)
          Detects logins using RLogin.
 java.lang.String getGeneratingEventClassName()
          Returns the name of the event that this detector triggers
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

RLoginEventDetector

public RLoginEventDetector(ConfigObject configObj)
                    throws java.lang.Exception
Creates an instance of RLoginEventDetector using the default triggering events


RLoginEventDetector

public RLoginEventDetector(java.util.Vector localtriggeringEventClassNames,
                           java.util.Vector remotetriggeringEventClassNames,
                           ConfigObject configObj)
                    throws java.lang.Exception
Creates an instance of RLoginEventDetector using the given triggering events

Method Detail

getGeneratingEventClassName

public java.lang.String getGeneratingEventClassName()
Returns the name of the event that this detector triggers

Overrides:
getGeneratingEventClassName in class SyslogEventDetector
Returns:
A string containing the name of the event that this detector triggers

generateEvent

public java.util.Vector generateEvent(Event triggeredEvent)
Detects logins using RLogin. This is accomplished by parsing a line from the syslog and looking for RLogins

Overrides:
generateEvent in class SyslogEventDetector
Parameters:
triggeredEvent -
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