Class PollableInterface
- java.lang.Object
-
- org.opennms.netmgt.poller.pollables.PollableElement
-
- org.opennms.netmgt.poller.pollables.PollableContainer
-
- org.opennms.netmgt.poller.pollables.PollableInterface
-
public class PollableInterface extends PollableContainer
Represents a PollableInterface- Version:
- $Id: $
- Author:
- Mathew Brozowski
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.netmgt.poller.pollables.PollableContainer
PollableContainer.Accumulator<T>, PollableContainer.Iter, PollableContainer.SimpleIter<T>
-
-
Constructor Summary
Constructors Constructor Description PollableInterface(PollableNode node, java.net.InetAddress addr)
Constructor for PollableInterface.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
createDownEvent(java.util.Date date)
createDownEventprotected java.lang.Object
createMemberKey(PollableElement member)
createMemberKeyPollableService
createService(java.lang.String svcName)
createServiceEvent
createUpEvent(java.util.Date date)
createUpEventjava.net.InetAddress
getAddress()
getAddressPollContext
getContext()
getContextjava.lang.String
getIpAddr()
getIpAddrPollableNetwork
getNetwork()
getNetworkPollableNode
getNode()
getNodeint
getNodeId()
getNodeIdjava.lang.String
getNodeLabel()
getNodeLabeljava.lang.String
getNodeLocation()
PollableService
getService(java.lang.String svcName)
getServicejava.util.List<PollableService>
getServices()
protected PollStatus
poll(PollableElement elem)
pollPollStatus
pollRemainingMembers(PollableElement member)
pollRemainingMembersvoid
recalculateStatus()
recalculateStatusvoid
reparentTo(PollableNode newNode)
reparentToPollableElement
selectPollElement()
selectPollElementjava.lang.String
toString()
toStringprotected void
visitThis(PollableVisitor v)
visitThis-
Methods inherited from class org.opennms.netmgt.poller.pollables.PollableContainer
addMember, delete, deleteMember, deriveValueFromMembers, deriveValueFromMembers, doExtrapolateCause, doInheritParentalCause, forEachMember, forEachMember, getMember, getMemberCount, getMembers, getMemberStatus, poll, processCause, processMemberStatusChanges, processResolution, processStatusChange, removeMember, resetStatusChanged, resolveAllOutages, visit, visitMembers
-
Methods inherited from class org.opennms.netmgt.poller.pollables.PollableElement
createOutage, doPoll, extrapolateCause, getCause, getLockRoot, getParent, getScope, getStatus, hasOpenOutage, inheritParentalCause, isDeleted, isStatusChanged, obtainTreeLock, obtainTreeLock, processComingUp, processGoingDown, processLingeringCauses, releaseTreeLock, resolveOutage, setCause, setParent, updateStatus, withTreeLock, withTreeLock, withTreeLock, withTreeLock
-
-
-
-
Constructor Detail
-
PollableInterface
public PollableInterface(PollableNode node, java.net.InetAddress addr)
Constructor for PollableInterface.
- Parameters:
node
- aPollableNode
object.addr
- aInetAddress
object.
-
-
Method Detail
-
getNode
public PollableNode getNode()
getNode
- Returns:
- a
PollableNode
object.
-
getNetwork
public PollableNetwork getNetwork()
getNetwork
- Returns:
- a
PollableNetwork
object.
-
getContext
public PollContext getContext()
getContext
- Specified by:
getContext
in classPollableElement
- Returns:
- a
PollContext
object.
-
getIpAddr
public java.lang.String getIpAddr()
getIpAddr
- Returns:
- a
String
object.
-
getAddress
public java.net.InetAddress getAddress()
getAddress
- Returns:
- a
InetAddress
object.
-
getNodeId
public int getNodeId()
getNodeId
- Returns:
- a int.
-
getNodeLabel
public java.lang.String getNodeLabel()
getNodeLabel
- Returns:
- a
String
object.
-
getNodeLocation
public java.lang.String getNodeLocation()
-
createService
public PollableService createService(java.lang.String svcName)
createService
- Parameters:
svcName
- aString
object.- Returns:
- a
PollableService
object.
-
getService
public PollableService getService(java.lang.String svcName)
getService
- Parameters:
svcName
- aString
object.- Returns:
- a
PollableService
object.
-
getServices
public java.util.List<PollableService> getServices()
-
createMemberKey
protected java.lang.Object createMemberKey(PollableElement member)
createMemberKey
- Specified by:
createMemberKey
in classPollableContainer
- Parameters:
member
- aPollableElement
object.- Returns:
- a
Object
object.
-
visitThis
protected void visitThis(PollableVisitor v)
visitThis
- Overrides:
visitThis
in classPollableContainer
- Parameters:
v
- aPollableVisitor
object.
-
recalculateStatus
public void recalculateStatus()
recalculateStatus
- Overrides:
recalculateStatus
in classPollableContainer
-
selectPollElement
public PollableElement selectPollElement()
selectPollElement
- Overrides:
selectPollElement
in classPollableContainer
- Returns:
- a
PollableElement
object.
-
poll
protected PollStatus poll(PollableElement elem)
poll
- Overrides:
poll
in classPollableContainer
- Returns:
- a
PollStatus
object.
-
pollRemainingMembers
public PollStatus pollRemainingMembers(PollableElement member)
pollRemainingMembers
- Overrides:
pollRemainingMembers
in classPollableContainer
- Parameters:
member
- aPollableElement
object.- Returns:
- a
PollStatus
object.
-
createDownEvent
public Event createDownEvent(java.util.Date date)
createDownEvent
- Specified by:
createDownEvent
in classPollableElement
- Parameters:
date
- aDate
object.- Returns:
- a
Event
object.
-
createUpEvent
public Event createUpEvent(java.util.Date date)
createUpEvent
- Specified by:
createUpEvent
in classPollableElement
- Parameters:
date
- aDate
object.- Returns:
- a
Event
object.
-
toString
public java.lang.String toString()
toString
- Overrides:
toString
in classjava.lang.Object
- Returns:
- a
String
object.
-
reparentTo
public void reparentTo(PollableNode newNode)
reparentTo
- Parameters:
newNode
- aPollableNode
object.
-
-