network.detectors
Class AjantaResourceMonitorEventDetector
java.lang.Object
network.detectors.EventDetector
network.detectors.AjantaResourceMonitorEventDetector
- All Implemented Interfaces:
- java.lang.Runnable, java.io.Serializable
- public class AjantaResourceMonitorEventDetector
- extends EventDetector
- implements java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
java.util.Vector |
generateEvent(Event triggeredEvent)
|
java.lang.String |
getGeneratingEventClassName()
|
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)
|
static void |
parsearmargsFile(java.lang.String armargsFile,
java.util.Vector argsToLook)
|
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.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 |
AjantaResourceMonitorEventDetector
public AjantaResourceMonitorEventDetector(ConfigObject configObj)
- The default constructor. Uses the default resource monitor config file.
AjantaResourceMonitorEventDetector
public AjantaResourceMonitorEventDetector(java.lang.String armargsFile,
ConfigObject configObj)
- Creates a new AjantaResourceMonitorEvent Detector based on configuration info from the file armargsFile.
- Parameters:
armargsFile
- the path to the resource monitor config file.
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
getGeneratingEventClassName
public java.lang.String getGeneratingEventClassName()
- Specified by:
getGeneratingEventClassName
in class EventDetector
- Returns:
modifyDetector
public void modifyDetector(java.lang.Object object)
- Parameters:
object
-
- Returns:
generateEvent
public java.util.Vector generateEvent(Event triggeredEvent)
- Specified by:
generateEvent
in class EventDetector
- Parameters:
triggeredEvent
-
- Returns:
parsearmargsFile
public static void parsearmargsFile(java.lang.String armargsFile,
java.util.Vector argsToLook)