org.opennms.netmgt.poller.pollables
Class PollableInterface

java.lang.Object
  extended by org.opennms.netmgt.poller.pollables.PollableElement
      extended by org.opennms.netmgt.poller.pollables.PollableContainer
          extended by 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
PollableInterface(PollableNode node, InetAddress addr)
          Constructor for PollableInterface.
 
Method Summary
 Event createDownEvent(Date date)
          createDownEvent
protected  Object createMemberKey(PollableElement member)
          createMemberKey
 PollableService createService(String svcName)
          createService
 Event createUpEvent(Date date)
          createUpEvent
 InetAddress getAddress()
          getAddress
 PollContext getContext()
          getContext
 String getIpAddr()
          getIpAddr
 PollableNetwork getNetwork()
          getNetwork
 PollableNode getNode()
          getNode
 int getNodeId()
          getNodeId
 String getNodeLabel()
          getNodeLabel
 PollableService getService(String svcName)
          getService
protected  PollStatus poll(PollableElement elem)
          poll
 PollStatus pollRemainingMembers(PollableElement member)
          pollRemainingMembers
 void recalculateStatus()
          recalculateStatus
 void reparentTo(PollableNode newNode)
          reparentTo
 PollableElement selectPollElement()
          selectPollElement
 String toString()
          toString
protected  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, isTreeLockAvailable, obtainTreeLock, processComingUp, processGoingDown, processLingeringCauses, releaseTreeLock, resolveOutage, setCause, setParent, updateStatus, withTreeLock, withTreeLock, withTreeLock, withTreeLock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PollableInterface

public PollableInterface(PollableNode node,
                         InetAddress addr)

Constructor for PollableInterface.

Parameters:
node - a PollableNode object.
addr - a InetAddress 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 class PollableElement
Returns:
a PollContext object.

getIpAddr

public String getIpAddr()

getIpAddr

Returns:
a String object.

getAddress

public InetAddress getAddress()

getAddress

Returns:
a InetAddress object.

getNodeId

public int getNodeId()

getNodeId

Returns:
a int.

getNodeLabel

public String getNodeLabel()

getNodeLabel

Returns:
a String object.

createService

public PollableService createService(String svcName)

createService

Parameters:
svcName - a String object.
Returns:
a PollableService object.

getService

public PollableService getService(String svcName)

getService

Parameters:
svcName - a String object.
Returns:
a PollableService object.

createMemberKey

protected Object createMemberKey(PollableElement member)

createMemberKey

Specified by:
createMemberKey in class PollableContainer
Parameters:
member - a PollableElement object.
Returns:
a Object object.

visitThis

protected void visitThis(PollableVisitor v)

visitThis

Overrides:
visitThis in class PollableContainer
Parameters:
v - a PollableVisitor object.

recalculateStatus

public void recalculateStatus()

recalculateStatus

Overrides:
recalculateStatus in class PollableContainer

selectPollElement

public PollableElement selectPollElement()

selectPollElement

Overrides:
selectPollElement in class PollableContainer
Returns:
a PollableElement object.

poll

protected PollStatus poll(PollableElement elem)

poll

Overrides:
poll in class PollableContainer
Parameters:
elem - a PollableElement object.
Returns:
a PollStatus object.

pollRemainingMembers

public PollStatus pollRemainingMembers(PollableElement member)

pollRemainingMembers

Overrides:
pollRemainingMembers in class PollableContainer
Parameters:
member - a PollableElement object.
Returns:
a PollStatus object.

createDownEvent

public Event createDownEvent(Date date)

createDownEvent

Specified by:
createDownEvent in class PollableElement
Parameters:
date - a Date object.
Returns:
a Event object.

createUpEvent

public Event createUpEvent(Date date)

createUpEvent

Specified by:
createUpEvent in class PollableElement
Parameters:
date - a Date object.
Returns:
a Event object.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

reparentTo

public void reparentTo(PollableNode newNode)

reparentTo

Parameters:
newNode - a PollableNode object.


Copyright © 2011. All Rights Reserved.