network.detectors
Class PartitionFullEventDetector
java.lang.Object
network.detectors.EventDetector
network.detectors.SyslogEventDetector
network.detectors.PartitionFullEventDetector
- All Implemented Interfaces:
- java.lang.Runnable, java.io.Serializable
- public class PartitionFullEventDetector
- extends SyslogEventDetector
- implements java.io.Serializable
Detects if any disk partition is full
- See Also:
- Serialized Form
Constructor Summary |
PartitionFullEventDetector(ConfigObject configObj)
Creates an instance of PartitionFullEventDetector with the default triggering events |
PartitionFullEventDetector(java.util.Vector localtriggeringEventClassNames,
java.util.Vector remotetriggeringEventClassNames,
ConfigObject configObj)
Creates an instance of PartitionFullEventDetector with the given triggering events |
Method Summary |
java.util.Vector |
generateEvent(Event triggeredEvent)
Detects if a partition is full based on messages from the syslog file
tokens - matched tokens as given in pattern
The method is synchronized because, when we invoke
modifyDetector method, some of the variables would be null. |
java.lang.String |
getGeneratingEventClassName()
Returns the name of the event this detector triggers |
Methods inherited from class network.detectors.EventDetector |
getAlarmLevel, getAlertLevel, getLocalTriggeringEventClassNames, getRemoteTriggeringEventClassNames, getSynchronizer, InitializeFields, 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 |
PartitionFullEventDetector
public PartitionFullEventDetector(ConfigObject configObj)
throws java.lang.Exception
- Creates an instance of PartitionFullEventDetector with the default triggering events
PartitionFullEventDetector
public PartitionFullEventDetector(java.util.Vector localtriggeringEventClassNames,
java.util.Vector remotetriggeringEventClassNames,
ConfigObject configObj)
throws java.lang.Exception
- Creates an instance of PartitionFullEventDetector with the given triggering events
getGeneratingEventClassName
public java.lang.String getGeneratingEventClassName()
- Returns the name of the event this detector triggers
- Overrides:
getGeneratingEventClassName
in class SyslogEventDetector
- Returns:
- A string containing the name of the event this detector triggers
generateEvent
public java.util.Vector generateEvent(Event triggeredEvent)
- Detects if a partition is full based on messages from the syslog file
tokens - matched tokens as given in pattern
The method is synchronized because, when we invoke
modifyDetector method, some of the variables would be null. Hence,
we are making the method synchronized
- Overrides:
generateEvent
in class SyslogEventDetector
- Parameters:
triggeredEvent
- The event that triggers this detector.
- Returns:
- A vector of events