|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.threshd.SnmpThresholder
public final class SnmpThresholder
The SnmpThresholder class ...
| Field Summary |
|---|
| Fields inherited from interface org.opennms.netmgt.threshd.ServiceThresholder |
|---|
statusType, THRESHOLDING_FAILED, THRESHOLDING_SUCCEEDED, THRESHOLDING_UNKNOWN |
| Constructor Summary | |
|---|---|
SnmpThresholder()
|
|
| Method Summary | |
|---|---|
int |
check(ThresholdNetworkInterface netIface,
EventProxy eproxy,
Map parms)
Perform threshold checking. |
protected void |
checkIfDir(File directory,
SnmpThresholdNetworkInterface snmpIface,
Date date,
org.opennms.netmgt.xml.event.Events events)
Performs threshold checking on an SNMP RRD interface directory. |
protected void |
checkNodeDir(File directory,
SnmpThresholdNetworkInterface thresholdNetworkInterface,
Date date,
org.opennms.netmgt.xml.event.Events events)
Performs threshold checking on an SNMP RRD node directory. |
protected void |
checkResourceDir(File directory,
SnmpThresholdNetworkInterface snmpIface,
Date date,
org.opennms.netmgt.xml.event.Events events)
|
protected static Map<String,ThresholdEntity> |
getAttributeMap(ThresholdResourceType resourceType)
|
IfInfoGetter |
getIfInfoGetter()
|
ThresholdsDao |
getThresholdsDao()
|
void |
initialize(Map parameters)
Initialize the service thresholder. |
void |
initialize(ThresholdNetworkInterface netIface,
Map parms)
Responsible for performing all necessary initialization for the specified interface in preparation for thresholding. |
protected boolean |
passedThresholdFilters(File resourceDir,
String thresholdGroup,
String resourceType,
String dataSource)
|
void |
reinitialize()
Called when configurations have changed and need to be refreshed at the ServiceThresolder level. |
void |
release()
Responsible for freeing up any resources held by the thresholder. |
void |
release(ThresholdNetworkInterface iface)
Responsible for releasing any resources associated with the specified interface. |
String |
serviceName()
Returns the name of the service that the plug-in collects ("SNMP"). |
void |
setIfInfoGetter(IfInfoGetter ifInfoGetter)
|
void |
setThresholdsDao(ThresholdsDao thresholdsDao)
|
protected String |
stripRrdExtension(String fileName)
File name has format: |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SnmpThresholder()
| Method Detail |
|---|
public String serviceName()
Returns the name of the service that the plug-in collects ("SNMP").
public void initialize(Map parameters)
Initialize the service thresholder.
initialize in interface ServiceThresholderparameters - Not currently used.
RuntimeException - Thrown if an unrecoverable error occurs that prevents the
plug-in from functioning.public void reinitialize()
ServiceThresholder
reinitialize in interface ServiceThresholderpublic void release()
release in interface ServiceThresholder
public void initialize(ThresholdNetworkInterface netIface,
Map parms)
initialize in interface ServiceThresholderiface - Network interface to be prepped for thresholding.parameters - Key/value pairs associated with the package to which the
interface belongs..public void release(ThresholdNetworkInterface iface)
release in interface ServiceThresholderiface - Network interface to be released.
public int check(ThresholdNetworkInterface netIface,
EventProxy eproxy,
Map parms)
check in interface ServiceThresholderiface - Network interface to be data collected.eproxy - Eventy proxy for sending events.parameters - Key/value pairs from the package to which the interface
belongs.
protected void checkNodeDir(File directory,
SnmpThresholdNetworkInterface thresholdNetworkInterface,
Date date,
org.opennms.netmgt.xml.event.Events events)
throws IllegalArgumentException
directory - RRD repository directorysnmpIface - TODOdate - Source for timestamp to be used for all generated eventsevents - Castor events object containing any events to be generated as
a result of threshold checking.interval - Configured thresholding intervalrange - Time interval before last possible PDP is considered
"out of date"thresholdMap - Map of node level ThresholdEntity objects keyed by datasource
name.nodeId - Node identifierprimary - Primary SNMP interface address
IllegalArgumentException - if path parameter is not a directory.
protected void checkIfDir(File directory,
SnmpThresholdNetworkInterface snmpIface,
Date date,
org.opennms.netmgt.xml.event.Events events)
throws IllegalArgumentException
directory - RRD repository directorysnmpIface - TODOdate - Source for timestamp to be used for all generated eventsallIfThresholdMap - Map of threshold maps indexed by ifLabelevents - Castor events object containing any events to be generated as
a result of threshold checking.nodeId - Node identifierprimary - Primary SNMP interface addressinterval - Configured thresholding intervalrange - Time interval before last possible PDP is considered
"out of date"baseIfThresholdMap - Map of configured interface level ThresholdEntity objects
keyed by datasource name.
IllegalArgumentException - if path parameter is not a directory.
protected void checkResourceDir(File directory,
SnmpThresholdNetworkInterface snmpIface,
Date date,
org.opennms.netmgt.xml.event.Events events)
throws IllegalArgumentException
IllegalArgumentException
protected boolean passedThresholdFilters(File resourceDir,
String thresholdGroup,
String resourceType,
String dataSource)
protected String stripRrdExtension(String fileName)
protected static Map<String,ThresholdEntity> getAttributeMap(ThresholdResourceType resourceType)
public ThresholdsDao getThresholdsDao()
public void setThresholdsDao(ThresholdsDao thresholdsDao)
public IfInfoGetter getIfInfoGetter()
public void setIfInfoGetter(IfInfoGetter ifInfoGetter)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||