| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  |
  +--network.detectors.EventDetector
        |
        +--network.detectors.MarkFailEventDetector
Looks for the MARK message in the syslog file. If the MARK message is not seen in a specified amount of time, a MarkFailEvent will be created This is used to detect if the syslog daemon is down
| Field Summary | |
private  long | 
cumulativeTime
 | 
private  java.lang.String[] | 
defaultLocalTriggeringEvents
 | 
protected  java.lang.String | 
eventName
The name of the event  | 
private  long | 
markTimeOut
 | 
protected  java.util.Vector | 
monthLookup
Table lookup for number to month name match  | 
| Fields inherited from class network.detectors.EventDetector | 
agentURN, attempts, cred, dbModule, eventIDGenerator, eventTable, host, localTriggeringEvents, printRunningThreadsFlag, remoteTriggeringEvents, reportTable | 
| Constructor Summary | |
MarkFailEventDetector(ConfigObject configObj)
Creates a MarkFailEventDetector with the default mark time specified in AdminClient The mark time is the amount of time the detector will wait for a mark event before creating a MarkFailEvent  | 
|
MarkFailEventDetector(long markTime,
                      ConfigObject configObj)
Creates a MarkFailEventDetector with the specified mark time specified in AdminClient  | 
|
MarkFailEventDetector(java.lang.String markTime,
                      ConfigObject configObj)
Creates a MarkFailEventDetector with the specified mark time specified in AdminClient  | 
|
| Method Summary | |
private  void | 
addMonths()
Initializes the month lookup array  | 
 java.util.Vector | 
generateEvent(network.events.Event triggeredEvent)
Receives either a TimerEvent or SyslogEvent.  | 
 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.  | 
 void | 
modifyDetector(java.lang.Object[] object)
Allows modification of detector configuration by passing a Long object of milliseconds for the new time out.  | 
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 | 
| Field Detail | 
private java.lang.String[] defaultLocalTriggeringEvents
protected java.lang.String eventName
protected java.util.Vector monthLookup
private long markTimeOut
private long cumulativeTime
| Constructor Detail | 
public MarkFailEventDetector(ConfigObject configObj)
public MarkFailEventDetector(long markTime,
                             ConfigObject configObj)
markTime - The amount of time the detector will wait for a mark event before creating a MarkFailEvent
public MarkFailEventDetector(java.lang.String markTime,
                             ConfigObject configObj)
markTime - The amount of time the detector will wait for a mark event before creating a MarkFailEvent. Must be parseable into a long| Method Detail | 
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)
                    throws java.lang.Exception
modifyDetector in class EventDetectorobject - an array of Objects with a Long object as the only parameter
java.lang.Exceptionprivate void addMonths()
public java.lang.String getGeneratingEventClassName()
getGeneratingEventClassName in class EventDetectorpublic java.util.Vector generateEvent(network.events.Event triggeredEvent)
generateEvent in class EventDetectortriggeredEvent - The event triggering this detector
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||