public final class SnmpThresholder extends Object implements ServiceThresholder
The SnmpThresholder class ...
statusType, THRESHOLDING_FAILED, THRESHOLDING_SUCCEEDED, THRESHOLDING_UNKNOWN
Constructor and Description |
---|
SnmpThresholder()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
int |
check(ThresholdNetworkInterface netIface,
EventProxy eproxy,
Map<?,?> parms)
Deprecated.
Invokes threshold checking on the object.
|
protected void |
checkIfDir(File directory,
SnmpThresholdNetworkInterface snmpIface,
Date date,
Events events)
Deprecated.
Performs threshold checking on an SNMP RRD interface directory.
|
protected void |
checkNodeDir(File directory,
SnmpThresholdNetworkInterface thresholdNetworkInterface,
Date date,
Events events)
Deprecated.
Performs threshold checking on an SNMP RRD node directory.
|
protected void |
checkResourceDir(File directory,
SnmpThresholdNetworkInterface snmpIface,
Date date,
Events events)
Deprecated.
checkResourceDir
|
protected static Map<String,Set<ThresholdEntity>> |
getAttributeMap(ThresholdResourceType resourceType)
Deprecated.
getAttributeMap
|
IfInfoGetter |
getIfInfoGetter()
Deprecated.
getIfInfoGetter
|
ThresholdsDao |
getThresholdsDao()
Deprecated.
getThresholdsDao
|
void |
initialize(Map<?,?> parameters)
Deprecated.
initialize
|
void |
initialize(ThresholdNetworkInterface netIface,
Map<?,?> parms)
Deprecated.
initialize
|
protected boolean |
passedThresholdFilters(File resourceDir,
String thresholdGroup,
String resourceType,
String dataSource)
Deprecated.
passedThresholdFilters
|
void |
reinitialize()
Deprecated.
reinitialize
|
void |
release()
Deprecated.
Responsible for freeing up any resources held by the thresholder.
|
void |
release(ThresholdNetworkInterface iface)
Deprecated.
release
|
String |
serviceName()
Deprecated.
Returns the name of the service that the plug-in collects ("SNMP").
|
void |
setIfInfoGetter(IfInfoGetter ifInfoGetter)
Deprecated.
setIfInfoGetter
|
void |
setThresholdsDao(ThresholdsDao thresholdsDao)
Deprecated.
setThresholdsDao
|
protected String |
stripRrdExtension(String fileName)
Deprecated.
File name has format:
|
public String serviceName()
Returns the name of the service that the plug-in collects ("SNMP").
public void initialize(Map<?,?> parameters)
initialize
Initialize the service thresholder.
initialize
in interface ServiceThresholder
parameters
- a Map
object.RuntimeException
- Thrown if an unrecoverable error occurs that prevents the
plug-in from functioning.public void reinitialize()
reinitialize
reinitialize
in interface ServiceThresholder
public void release()
release
in interface ServiceThresholder
public void initialize(ThresholdNetworkInterface netIface, Map<?,?> parms)
initialize
Responsible for performing all necessary initialization for the specified interface in preparation for thresholding.initialize
in interface ServiceThresholder
netIface
- a ThresholdNetworkInterface
object.parms
- a Map
object.public void release(ThresholdNetworkInterface iface)
release
Responsible for releasing any resources associated with the specified interface.release
in interface ServiceThresholder
iface
- a ThresholdNetworkInterface
object.public int check(ThresholdNetworkInterface netIface, EventProxy eproxy, Map<?,?> parms)
Invokes threshold checking on the object.
Perform threshold checking.check
in interface ServiceThresholder
netIface
- a ThresholdNetworkInterface
object.eproxy
- a EventProxy
object.parms
- a Map
object.protected void checkNodeDir(File directory, SnmpThresholdNetworkInterface thresholdNetworkInterface, Date date, Events events) throws IllegalArgumentException
directory
- RRD repository directorydate
- 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.thresholdNetworkInterface
- a SnmpThresholdNetworkInterface
object.IllegalArgumentException
- if path parameter is not a directory.protected void checkIfDir(File directory, SnmpThresholdNetworkInterface snmpIface, Date date, 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.IllegalArgumentException
- if path parameter is not a directory.protected void checkResourceDir(File directory, SnmpThresholdNetworkInterface snmpIface, Date date, Events events) throws IllegalArgumentException
checkResourceDir
directory
- a File
object.snmpIface
- a SnmpThresholdNetworkInterface
object.date
- a Date
object.events
- a Events
object.IllegalArgumentException
- if any.protected boolean passedThresholdFilters(File resourceDir, String thresholdGroup, String resourceType, String dataSource)
passedThresholdFilters
protected String stripRrdExtension(String fileName)
fileName
- a String
object.protected static Map<String,Set<ThresholdEntity>> getAttributeMap(ThresholdResourceType resourceType)
getAttributeMap
resourceType
- a ThresholdResourceType
object.Map
object.public ThresholdsDao getThresholdsDao()
getThresholdsDao
ThresholdsDao
object.public void setThresholdsDao(ThresholdsDao thresholdsDao)
setThresholdsDao
thresholdsDao
- a ThresholdsDao
object.public IfInfoGetter getIfInfoGetter()
getIfInfoGetter
IfInfoGetter
object.public void setIfInfoGetter(IfInfoGetter ifInfoGetter)
setIfInfoGetter
ifInfoGetter
- a IfInfoGetter
object.Copyright © 2015. All Rights Reserved.