|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetwork.detectors.EventDetector
network.detectors.DaemonDeletedEventDetector
The DaemonDeletedEventDetector detects if a daemon has been deleted. Since we don't really know if a process is a daemon, we parse a list of known daemons that must not be deleted. This detector is triggered by the DeletedProcessEvent, so if the process name is one of the daemon names on the list, we generate a DaemonDeletedEvent.
Field Summary |
Fields inherited from class network.detectors.EventDetector |
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable |
Constructor Summary | |
DaemonDeletedEventDetector(ConfigObject configObj)
Creates this detector based on configuration found in the default config file ($NETMON/config/daemons) obtained from network.AdminClient. |
|
DaemonDeletedEventDetector(java.lang.String daemonsFile,
ConfigObject configObj)
Creates this detector from config info found in the file passed. |
Method Summary | |
java.util.Vector |
generateEvent(Event triggeredEvent)
Presently, this method is triggered by a DeletedProcessEvent. |
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. |
void |
modifyDetector(java.lang.Object object)
Allows detector configuration modification. |
static void |
parseDaemonNamesFile(java.lang.String daemonsFile,
java.util.Vector daemonNames)
Parses the config file and fills a passed vector with the daemon names. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DaemonDeletedEventDetector(ConfigObject configObj)
public DaemonDeletedEventDetector(java.lang.String daemonsFile, ConfigObject configObj)
daemonsFile
- path to a config file.Method Detail |
public static void parseDaemonNamesFile(java.lang.String daemonsFile, java.util.Vector daemonNames)
daemonsFile
- path to a config file.daemonNames
- a vector to be filled with daemon names from the config file.
public static java.lang.String[] getParamList()
public static java.lang.Object[] translateParameters(java.lang.String[] inputarray) throws java.lang.Exception
inputarray
- an array of strings that contains user inputs.
java.lang.Exception
public void modifyDetector(java.lang.Object object)
object
- a network.PatternObject
network.PatternObject
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName
in class EventDetector
public java.util.Vector generateEvent(Event triggeredEvent)
generateEvent
in class EventDetector
triggeredEvent
- the event that triggered this detector.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |