network.detectors
Class FileAddedEventDetector

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

public class FileAddedEventDetector
extends EventDetector
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class network.detectors.EventDetector
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable
 
Constructor Summary
FileAddedEventDetector(ConfigObject configObj)
           
FileAddedEventDetector(java.lang.String input, ConfigObject configObj)
           
FileAddedEventDetector(java.util.Vector localtriggeringEventClassNames, java.util.Vector remotetriggeringEventClassNames, ConfigObject configObj)
           
 
Method Summary
 java.util.Vector check(java.util.Vector Signatures)
          This method is for comparing the files after the monitor Agent sends the FileSign vector
 FileAddedEvent compare(network.detectors.util.FileName fn, network.detectors.util.FileSign fs, network.detectors.util.FileSign fsign, java.lang.String hname)
          Compare the received file signature with the one in the database
 java.util.Vector generateEvent(Event triggeredEvent)
           
 java.lang.String getGeneratingEventClassName()
           
 
Methods inherited from class network.detectors.EventDetector
getAlarmLevel, getAlertLevel, getLocalTriggeringEventClassNames, getRemoteTriggeringEventClassNames, getSynchronizer, InitializeFields, modifyDetector, populatePatterns, 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

FileAddedEventDetector

public FileAddedEventDetector(ConfigObject configObj)

FileAddedEventDetector

public FileAddedEventDetector(java.lang.String input,
                              ConfigObject configObj)

FileAddedEventDetector

public FileAddedEventDetector(java.util.Vector localtriggeringEventClassNames,
                              java.util.Vector remotetriggeringEventClassNames,
                              ConfigObject configObj)
Method Detail

getGeneratingEventClassName

public java.lang.String getGeneratingEventClassName()
Specified by:
getGeneratingEventClassName in class EventDetector
Returns:

generateEvent

public java.util.Vector generateEvent(Event triggeredEvent)
Specified by:
generateEvent in class EventDetector
Parameters:
triggeredEvent -
Returns:

check

public java.util.Vector check(java.util.Vector Signatures)
                       throws java.rmi.RemoteException
This method is for comparing the files after the monitor Agent sends the FileSign vector

Parameters:
Signatures -
Returns:
Throws:
java.rmi.RemoteException

compare

public FileAddedEvent compare(network.detectors.util.FileName fn,
                              network.detectors.util.FileSign fs,
                              network.detectors.util.FileSign fsign,
                              java.lang.String hname)
Compare the received file signature with the one in the database