public interface OverlayManager
| Modifier and Type | Field and Description |
|---|---|
static long |
CUR_VER |
static long |
TEMP_VER |
| Modifier and Type | Method and Description |
|---|---|
OverlayVersion |
createOverlay(long inVersion)
Create a specific version of the overlay.
|
OverlayVersion |
getCurrentOverlay()
Get the current version of the overlay used for routing new events.
|
OverlayPath |
getCurrentPath(NodeDetails inNode)
Get the most recent known path to the node, up to the current version.
|
OverlayVersion |
getOverlay(long inVersion)
Get a specific version of the overlay, creating it if needed.
|
java.util.List<OverlayVersion> |
getOverlays() |
OverlayPath |
getPath(NodeDetails inNode,
long inVersion)
Get the known path to a given node for a specific overlay version.
|
java.util.List<OverlayPath> |
getPaths(NodeDetails inNode)
Get the known paths to a given node.
|
boolean |
isRequestDataIn() |
boolean |
removeOverlay(long inVersion)
Remove a specific version of the overlay from the set of active overlays.
|
boolean |
removePath(NodeDetails inNode,
long inVersion)
Remove the known path to a node over a specific version of the overlay.
|
boolean |
setCurrentOverlay(long inVersion)
Set a specific version of the overlay as the current version.
|
boolean |
setRequestDataIn(boolean inRequestDataIn)
Set the request mode of this node in the overlay.
|
boolean |
updatePath(NodeDetails inNode,
OverlayPath inPath)
Update the known path to a node for a given version of the overlay.
|
static final long CUR_VER
static final long TEMP_VER
boolean isRequestDataIn()
boolean setRequestDataIn(boolean inRequestDataIn)
inRequestDataIn - - True if data should be sent to this node.java.util.List<OverlayVersion> getOverlays() throws OverlayException
OverlayExceptionOverlayVersion getOverlay(long inVersion) throws OverlayException
inVersion - - The version of the overlay to create.OverlayExceptionOverlayVersion getCurrentOverlay() throws OverlayException
OverlayExceptionboolean setCurrentOverlay(long inVersion)
throws OverlayException
inVersion - - The version to mark as current.OverlayExceptionOverlayVersion createOverlay(long inVersion) throws OverlayException
inVersion - - The version to create.OverlayExceptionboolean removeOverlay(long inVersion)
throws OverlayException
inVersion - - The version to remove.OverlayExceptionjava.util.List<OverlayPath> getPaths(NodeDetails inNode) throws OverlayException
inNode - - The node to get paths to.OverlayExceptionOverlayPath getPath(NodeDetails inNode, long inVersion) throws OverlayException
inNode - - The node to get the path to.inVersion - - The version of the overlay.OverlayExceptionOverlayPath getCurrentPath(NodeDetails inNode) throws OverlayException
inNode - - The node to get the path to.OverlayExceptionboolean updatePath(NodeDetails inNode, OverlayPath inPath) throws OverlayException
inNode - - The node that the path references.inPath - - The overlay path to the node.OverlayExceptionboolean removePath(NodeDetails inNode, long inVersion) throws OverlayException
inNode - - The node that the path references.inVersion - - The version of the overlay.OverlayException