public interface OverlayVersion
| Modifier and Type | Interface and Description |
|---|---|
static class |
OverlayVersion.OverlayState |
| Modifier and Type | Method and Description |
|---|---|
OverlayLink |
getLink(NodeDetails inNode)
Get a link to a specific remote node, if one exists.
|
java.util.List<OverlayLink> |
getLinks() |
OverlayPath |
getLocation() |
java.util.List<OverlayLink> |
getPrimaryLinks() |
OverlayVersion.OverlayState |
getState() |
long |
getVersion() |
boolean |
isActive() |
boolean |
isCurrent() |
boolean |
isLinked(NodeDetails inNode)
Check if a link to another node exists.
|
OverlayLink |
openLink(NodeDetails inNode,
boolean inPrimary)
Open a link to a specific remote node, if one does not exist.
|
boolean |
unlink(NodeDetails inNode)
Close a link.
|
boolean |
updateLocation(int[] inLocation)
Update the known location of this node in this version of the overlay.
|
long getVersion()
OverlayVersion.OverlayState getState()
OverlayPath getLocation()
boolean updateLocation(int[] inLocation)
throws OverlayException
inLocation - - The path to this node, assigned by a coordinator.OverlayExceptionboolean isActive()
boolean isCurrent()
boolean isLinked(NodeDetails inNode) throws OverlayException
inNode - - The remote node to test.OverlayExceptionjava.util.List<OverlayLink> getLinks() throws OverlayException
OverlayExceptionjava.util.List<OverlayLink> getPrimaryLinks() throws OverlayException
OverlayExceptionOverlayLink getLink(NodeDetails inNode) throws OverlayException
inNode - - The remote node that is linked to.OverlayExceptionOverlayLink openLink(NodeDetails inNode, boolean inPrimary) throws OverlayException
inNode - - The remote node to link to.inPrimary - - True if the new link is primary.OverlayExceptionboolean unlink(NodeDetails inNode) throws OverlayException
inNode - - The remote node to close and remove.OverlayException