|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.poller.pollables.PollableElement
org.opennms.netmgt.poller.pollables.PollableService
public class PollableService
Represents a PollableService
| Constructor Summary | |
|---|---|
PollableService(PollableInterface iface,
String svcName)
|
|
| Method Summary | |
|---|---|
Event |
createDownEvent(Date date)
|
void |
createOutage(PollEvent cause)
|
Event |
createResponsiveEvent(Date date)
|
Event |
createUnresponsiveEvent(Date date)
|
Event |
createUpEvent(Date date)
|
void |
delete()
|
PollStatus |
doPoll()
|
PollStatus |
doRun()
|
InetAddress |
getAddress()
Returns the InetAddress associated with the service |
PollContext |
getContext()
|
PollableInterface |
getInterface()
|
String |
getIpAddr()
Returns the ipAddr string associated with this monitored service |
NetworkInterface |
getNetInterface()
Returns the Netinterface object for this service. |
PollableNetwork |
getNetwork()
|
PollableNode |
getNode()
|
int |
getNodeId()
Returns the nodeId of the node that this service is associated with |
String |
getNodeLabel()
Returns the label of the node that this service is associated with |
Schedule |
getSchedule()
|
long |
getStatusChangeTime()
|
String |
getSvcName()
Returns the svcName associated with this monitored service |
boolean |
isReady()
Returns true if the runnable is ready to start. |
PollStatus |
poll()
|
void |
processStatusChange(Date date)
|
void |
refreshConfig()
|
protected void |
resolveOutage(PollEvent resolution)
|
void |
run()
|
void |
schedule()
|
void |
sendDeleteEvent()
|
void |
setPollConfig(PollableServiceConfig pollConfig)
|
void |
setSchedule(Schedule schedule)
|
String |
toString()
|
void |
updateStatus(PollStatus newStatus)
|
protected void |
visitThis(PollableVisitor v)
|
| Methods inherited from class org.opennms.netmgt.poller.pollables.PollableElement |
|---|
doExtrapolateCause, doInheritParentalCause, doPoll, extrapolateCause, getCause, getLockRoot, getParent, getScope, getStatus, hasOpenOutage, inheritParentalCause, isDeleted, isStatusChanged, isTreeLockAvailable, obtainTreeLock, poll, processCause, processComingUp, processGoingDown, processLingeringCauses, processResolution, recalculateStatus, releaseTreeLock, resetStatusChanged, resolveAllOutages, selectPollElement, setCause, setParent, visit, withTreeLock, withTreeLock, withTreeLock, withTreeLock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PollableService(PollableInterface iface,
String svcName)
svcName - iface - | Method Detail |
|---|
public PollableInterface getInterface()
public PollableNode getNode()
public PollableNetwork getNetwork()
public PollContext getContext()
getContext in class PollableElementpublic String getSvcName()
MonitoredService
getSvcName in interface MonitoredServicepublic String getIpAddr()
MonitoredService
getIpAddr in interface MonitoredServicepublic int getNodeId()
MonitoredService
getNodeId in interface MonitoredServicepublic String getNodeLabel()
MonitoredService
getNodeLabel in interface MonitoredServiceprotected void visitThis(PollableVisitor v)
visitThis in class PollableElementpublic void setPollConfig(PollableServiceConfig pollConfig)
pollConfig - public PollStatus poll()
poll in class PollableElementpublic NetworkInterface getNetInterface()
MonitoredService
getNetInterface in interface MonitoredServiceUnknownHostExceptionpublic InetAddress getAddress()
MonitoredService
getAddress in interface MonitoredServicepublic PollStatus doPoll()
public Event createDownEvent(Date date)
createDownEvent in class PollableElementpublic Event createUpEvent(Date date)
createUpEvent in class PollableElementpublic Event createUnresponsiveEvent(Date date)
public Event createResponsiveEvent(Date date)
public void createOutage(PollEvent cause)
createOutage in class PollableElementcause - TODOprotected void resolveOutage(PollEvent resolution)
resolveOutage in class PollableElementresolution - TODOpublic String toString()
toString in class Objectpublic void processStatusChange(Date date)
processStatusChange in class PollableElementpublic void updateStatus(PollStatus newStatus)
updateStatus in class PollableElementpublic void setSchedule(Schedule schedule)
schedule - public Schedule getSchedule()
public long getStatusChangeTime()
public boolean isReady()
ReadyRunnable
isReady in interface ReadyRunnablepublic void run()
run in interface Runnablepublic PollStatus doRun()
public void delete()
delete in class PollableElementpublic void schedule()
public void sendDeleteEvent()
public void refreshConfig()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||