|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetwork.detectors.EventDetector
network.detectors.CPUTimerEventDetector
The CPUTimerEvent Detector is a special detector. It is not triggered, as are other detectors, but rather runs in a loop, each cycle of which generates a CPUTimerEvent, then sleeps for a specified timeout. This detector does not depend on any other detectors.
| Field Summary |
| Fields inherited from class network.detectors.EventDetector |
agentURN, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, remoteTriggeringEvents, reportTable |
| Constructor Summary | |
CPUTimerEventDetector(ConfigObject configObj)
|
|
CPUTimerEventDetector(long timeoutPeriod,
ConfigObject configObj)
Creates a new CPUTimerEventDetector with timeout specified by timeoutPeriod (milliseconds). |
|
CPUTimerEventDetector(java.lang.String timeoutPeriodString)
Creates a new CPUTimerEventDetector by parsing a string to obtain the timeout for each CPUTimerEvent generation. |
|
| Method Summary | |
java.util.Vector |
generateEvent(Event triggeredEvent)
Returns a null vector of events (because the main function is generating all the events on a timer basis). |
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 modification of detector configuration by passing a Long object of milliseconds for the new time out. |
void |
run()
Generates a CPUTimerEvent every localTimeOut milliseconds. |
void |
setTimeoutPeriod(long time)
Sets the time between CPUTimerEvent generations. |
void |
stopDetector()
|
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 CPUTimerEventDetector(ConfigObject configObj)
public CPUTimerEventDetector(long timeoutPeriod,
ConfigObject configObj)
timeoutPeriod - the number of milliseconds between each CPUTimerEvent generation.public CPUTimerEventDetector(java.lang.String timeoutPeriodString)
timeoutPeriodString - string containing the number of milliseconds between each CPUTimerEvent generation.| Method Detail |
public void stopDetector()
stopDetector in class EventDetectorpublic 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)
throws java.lang.Exception
modifyDetector in class EventDetectorobject - an array of Objects with a Long object as the only parameter
java.lang.Exceptionpublic void setTimeoutPeriod(long time)
time - a time in milliseconds.
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName in class EventDetectorpublic java.util.Vector generateEvent(Event triggeredEvent)
generateEvent in class EventDetectortriggeredEvent - event that triggered this detector.
public void run()
run in interface java.lang.Runnablerun in class EventDetector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||