|
OpenNMS API 1.1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opennms.netmgt.poller.PollableInterface
The PollableInterface class...
Field Summary | |
private java.net.InetAddress |
m_address
IP address of this interface |
private PollableNode |
m_node
node that this interface belongs to |
private java.util.List |
m_pollableServices
Reference to the list of all scheduled services |
private Scheduler |
m_scheduler
Reference to the poller scheduler |
private java.util.Map |
m_services
Map of 'PollableService' objects keyed by service name |
private int |
m_status
Last known/current status |
private boolean |
m_statusChangedFlag
Set by poll() method. |
Fields inherited from interface org.opennms.netmgt.poller.Pollable |
STATUS_DOWN, STATUS_UNKNOWN, STATUS_UP, statusType |
Constructor Summary | |
PollableInterface(PollableNode node,
java.net.InetAddress address)
Constructor. |
Method Summary | |
void |
addService(PollableService service)
Add a PollableService object to the services map keyed by service name. |
void |
deleteAllServices()
|
java.net.InetAddress |
getAddress()
Return the address of this interface |
PollableNode |
getNode()
Return the node this interface belongs to |
PollableService |
getService(java.lang.String svcName)
|
java.util.Collection |
getServices()
|
int |
getStatus()
Returns current status of the object |
int |
poll(PollableService pSvc)
Invokes a poll of the service. |
void |
recalculateStatus()
Responsible for recalculating the UP/DOWN status of the interface. |
void |
removeService(PollableService service)
|
void |
resetStatusChanged()
|
boolean |
statusChanged()
|
boolean |
supportsService(java.lang.String svcName)
Takes a service and returns true if this interface supports the service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private PollableNode m_node
private java.net.InetAddress m_address
private int m_status
private java.util.Map m_services
private boolean m_statusChangedFlag
private Scheduler m_scheduler
private java.util.List m_pollableServices
Constructor Detail |
public PollableInterface(PollableNode node, java.net.InetAddress address)
Method Detail |
public PollableNode getNode()
public java.net.InetAddress getAddress()
public java.util.Collection getServices()
public PollableService getService(java.lang.String svcName)
public void addService(PollableService service)
public void removeService(PollableService service)
public void deleteAllServices()
public boolean supportsService(java.lang.String svcName)
public int getStatus()
Pollable
getStatus
in interface Pollable
public boolean statusChanged()
statusChanged
in interface Pollable
public void resetStatusChanged()
public void recalculateStatus()
public int poll(PollableService pSvc)
Invokes a poll of the service.
If the service changes status then node outage processing will be invoked and the status of the entire interface will be evaluated.
|
OpenNMS API 1.1.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |