|
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.collectd.CollectableService
The CollectableService class ...
Field Summary | |
private static boolean |
ABORT_COLLECTION
|
private ServiceCollector |
m_collector
|
private long |
m_lastCollectionTime
The last time data collection ocurred |
private long |
m_lastScheduledCollectionTime
The last time the collector was scheduled for collection. |
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 collection parameters |
private EventProxy |
m_proxy
The event proxy |
private Scheduler |
m_scheduler
The scheduler for collectd |
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 monitor. |
private CollectorUpdates |
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) |
CollectableService(int dbNodeId,
java.net.InetAddress address,
java.lang.String svcName,
Package pkg)
Constructs a new instance of a CollectableService object. |
Method Summary | |
CollectorUpdates |
getCollectorUpdates()
Returns updates object |
int |
getNodeId()
Returns node identifier |
java.lang.String |
getPackageName()
Returns the package name |
(package private) java.util.Map |
getPropertyMap()
|
java.lang.String |
getServiceName()
Returns the service name |
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 collectd config factory. |
void |
run()
This is the main method of the class. |
private boolean |
scheduledOutage()
Checks the package information for the collectable 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 nodentifier |
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_lastCollectionTime
private long m_lastScheduledCollectionTime
private final Scheduler m_scheduler
private CollectorUpdates m_updates
private EventProxy m_proxy
private static final boolean ABORT_COLLECTION
private static java.util.Map m_properties
private ServiceCollector m_collector
private final java.lang.String m_svcPropKey
private static java.util.Map SVC_PROP_MAP
Constructor Detail |
CollectableService(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 CollectorUpdates getCollectorUpdates()
public void refreshPackage()
public boolean isReady()
isReady
in interface ReadyRunnable
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 |