public class PollableNode extends PollableContainer
| Modifier and Type | Class and Description |
|---|---|
class |
PollableNode.Lock
Represents a Lock
|
PollableContainer.Accumulator<T>, PollableContainer.Iter, PollableContainer.SimpleIter<T>| Constructor and Description |
|---|
PollableNode(PollableNetwork network,
int nodeId,
String nodeLabel,
String nodeLocation)
Constructor for PollableNode.
|
addMember, delete, deleteMember, deriveValueFromMembers, deriveValueFromMembers, doExtrapolateCause, doInheritParentalCause, forEachMember, forEachMember, getMember, getMemberCount, getMembers, getMemberStatus, poll, poll, pollRemainingMembers, processCause, processMemberStatusChanges, processResolution, processStatusChange, recalculateStatus, removeMember, resetStatusChanged, resolveAllOutages, selectPollElement, visit, visitMemberscreateOutage, extrapolateCause, getCause, getParent, getScope, getStatus, hasOpenOutage, inheritParentalCause, isDeleted, isStatusChanged, processComingUp, processGoingDown, processLingeringCauses, resolveOutage, setCause, setParent, updateStatus, withTreeLock, withTreeLock, withTreeLock, withTreeLockpublic PollableNode(PollableNetwork network, int nodeId, String nodeLabel, String nodeLocation)
Constructor for PollableNode.
network - a PollableNetwork object.nodeId - a int.nodeLabel - a String object.nodeLocation - a String object.public int getNodeId()
getNodeId
public void setNodeLabel(String label)
public String getNodeLocation()
public PollableInterface createInterface(InetAddress addr)
createInterface
addr - a InetAddress object.PollableInterface object.public PollableInterface getInterface(InetAddress addr)
getInterface
addr - a InetAddress object.PollableInterface object.public List<PollableInterface> getInterfaces()
public PollableNetwork getNetwork()
getNetwork
PollableNetwork object.public PollContext getContext()
getContext
getContext in class PollableElementPollContext object.protected Object createMemberKey(PollableElement member)
createMemberKey
createMemberKey in class PollableContainermember - a PollableElement object.Object object.public PollableService createService(InetAddress addr, String svcName)
createService
svcName - a String object.addr - a InetAddress object.PollableService object.public PollableService getService(InetAddress addr, String svcName)
getService
svcName - a String object.addr - a InetAddress object.PollableService object.protected void visitThis(PollableVisitor v)
visitThis
visitThis in class PollableContainerv - a PollableVisitor object.public Event createDownEvent(Date date)
createDownEvent
createDownEvent in class PollableElementdate - a Date object.Event object.public Event createUpEvent(Date date)
createUpEvent
createUpEvent in class PollableElementdate - a Date object.Event object.public String toString()
toString
public PollableElement getLockRoot()
getLockRoot
getLockRoot in class PollableElementPollableElement object.public boolean isTreeLockAvailable()
isTreeLockAvailable
isTreeLockAvailable in class PollableElementpublic void obtainTreeLock(long timeout)
obtainTreeLock
obtainTreeLock in class PollableElementtimeout - a long.public void releaseTreeLock()
releaseTreeLock
releaseTreeLock in class PollableElementpublic PollStatus doPoll(PollableElement elem)
doPoll
doPoll in class PollableElementelem - a PollableElement object.PollStatus object.Copyright © 2020. All rights reserved.