|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.poller.monitors.IPv4NetworkInterface
org.opennms.netmgt.threshd.ThresholdableService
The ThresholdableService class ...
Field Summary | |
private static boolean |
ABORT_THRESHOLD_CHECK
|
private long |
m_lastScheduledThresholdCheckTime
The last time this service was scheduled for threshold checking. |
private long |
m_lastThresholdCheckTime
The last time a threshold check ocurred |
private int |
m_nodeId
Interface's parent node identifier |
private Package |
m_package
The package information for this interface/service pair |
private static java.util.Map |
m_properties
The map of thresholding parameters |
private EventProxy |
m_proxy
The proxy used to send events. |
private Scheduler |
m_scheduler
The scheduler for threshd |
private Service |
m_service
The service informaion for this interface/service pair |
private int |
m_status
Last known/current status |
private java.lang.String |
m_svcPropKey
The key used to lookup the service properties that are passed to the thresholder. |
private ServiceThresholder |
m_thresholder
|
private ThresholderUpdates |
m_updates
Service updates |
private static java.util.Map |
SVC_PROP_MAP
The map of service parameters. |
Fields inherited from class org.opennms.netmgt.poller.monitors.IPv4NetworkInterface |
m_address |
Fields inherited from interface org.opennms.netmgt.poller.monitors.NetworkInterface |
TYPE_IPV4, TYPE_UNKNOWN |
Constructor Summary | |
(package private) |
ThresholdableService(int dbNodeId,
java.net.InetAddress address,
java.lang.String svcName,
Package pkg)
Constructs a new instance of a ThresholdableService object. |
Method Summary | |
long |
getInterval()
Returns the service's configured thresholding interval. |
int |
getNodeId()
Returns node identifier |
java.lang.String |
getPackageName()
Returns the service name |
(package private) java.util.Map |
getPropertyMap()
|
java.lang.String |
getServiceName()
Returns the service name |
ThresholderUpdates |
getThresholderUpdates()
Returns updates object |
boolean |
isReady()
This method is used to evaluate the status of this interface and service pair. |
private boolean |
processUpdates()
Process any outstanding updates. |
void |
refreshPackage()
Uses the existing package name to try and re-obtain the package from the threshd config factory. |
void |
run()
This is the main method of the class. |
private boolean |
scheduledOutage()
Checks the package information for the thresholdable service and determines if any of the calendar outages associated with the package apply to the current time and the service's interface. |
private void |
sendEvent(java.lang.String uei)
Generate event and send it to eventd via the event proxy. |
void |
setNodeId(int nodeId)
Set node identifier |
Methods inherited from class org.opennms.netmgt.poller.monitors.IPv4NetworkInterface |
getAddress, getAttribute, getType, setAttribute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private int m_nodeId
private Package m_package
private final Service m_service
private int m_status
private long m_lastThresholdCheckTime
private long m_lastScheduledThresholdCheckTime
private final EventProxy m_proxy
private final Scheduler m_scheduler
private ThresholderUpdates m_updates
private static final boolean ABORT_THRESHOLD_CHECK
private static java.util.Map m_properties
private ServiceThresholder m_thresholder
private final java.lang.String m_svcPropKey
private static java.util.Map SVC_PROP_MAP
Constructor Detail |
ThresholdableService(int dbNodeId, java.net.InetAddress address, java.lang.String svcName, Package pkg)
dbNodeId
- The database identifier key for the interfaces' nodeaddress
- InetAddress of the interface to collect fromsvcName
- Service namepkg
- The package containing parms for this collectable service.Method Detail |
public int getNodeId()
public void setNodeId(int nodeId)
public java.lang.String getServiceName()
public java.lang.String getPackageName()
public void refreshPackage()
public ThresholderUpdates getThresholderUpdates()
public boolean isReady()
isReady
in interface ReadyRunnable
public long getInterval()
private void sendEvent(java.lang.String uei)
public void run()
isReady
method to determine
execution. If the instance is ready for execution then it is started with
it's own thread context to execute the query. The last step in the method
before it exits is to reschedule the interface.
run
in interface java.lang.Runnable
java.util.Map getPropertyMap()
private boolean scheduledOutage()
private boolean processUpdates()
|
OpenNMS API 1.2.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |