public class OverlayManagerImpl extends NodeComponentImpl implements OverlayManager
CUR_VER, TEMP_VER| Constructor and Description |
|---|
OverlayManagerImpl(PeerGroupImpl inGroup) |
| 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() |
void |
onLinkUpdatedRemote(ds.funnel.overlay.event.MsgTLinkUpdate inEvent) |
MessageLink |
openBackingLink(NodeDetails inNode) |
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.
|
MessageLink |
setBackingLink(NodeDetails inNode,
MessageLink inLink) |
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.
|
java.lang.String |
toString() |
boolean |
updatePath(NodeDetails inNode,
OverlayPath inPath)
Update the known path to a node for a given version of the overlay.
|
getComponentKey, getComponentLink, hashCode, setComponentKey, startComponent, stopComponentpublic OverlayManagerImpl(PeerGroupImpl inGroup)
public boolean isRequestDataIn()
isRequestDataIn in interface OverlayManagerpublic boolean setRequestDataIn(boolean inRequestDataIn)
OverlayManagersetRequestDataIn in interface OverlayManagerinRequestDataIn - - True if data should be sent to this node.public java.util.List<OverlayVersion> getOverlays() throws OverlayException
getOverlays in interface OverlayManagerOverlayExceptionpublic OverlayVersion getOverlay(long inVersion) throws OverlayException
OverlayManagergetOverlay in interface OverlayManagerinVersion - - The version of the overlay to create.OverlayExceptionpublic OverlayVersion getCurrentOverlay() throws OverlayException
OverlayManagergetCurrentOverlay in interface OverlayManagerOverlayExceptionpublic boolean setCurrentOverlay(long inVersion)
throws OverlayException
OverlayManagersetCurrentOverlay in interface OverlayManagerinVersion - - The version to mark as current.OverlayExceptionpublic OverlayVersion createOverlay(long inVersion) throws OverlayException
OverlayManagercreateOverlay in interface OverlayManagerinVersion - - The version to create.OverlayExceptionpublic boolean removeOverlay(long inVersion)
throws OverlayException
OverlayManagerremoveOverlay in interface OverlayManagerinVersion - - The version to remove.OverlayExceptionpublic java.util.List<OverlayPath> getPaths(NodeDetails inNode) throws OverlayException
OverlayManagergetPaths in interface OverlayManagerinNode - - The node to get paths to.OverlayExceptionpublic OverlayPath getPath(NodeDetails inNode, long inVersion) throws OverlayException
OverlayManagergetPath in interface OverlayManagerinNode - - The node to get the path to.inVersion - - The version of the overlay.OverlayExceptionpublic OverlayPath getCurrentPath(NodeDetails inNode) throws OverlayException
OverlayManagergetCurrentPath in interface OverlayManagerinNode - - The node to get the path to.OverlayExceptionpublic boolean updatePath(NodeDetails inNode, OverlayPath inPath) throws OverlayException
OverlayManagerupdatePath in interface OverlayManagerinNode - - The node that the path references.inPath - - The overlay path to the node.OverlayExceptionpublic boolean removePath(NodeDetails inNode, long inVersion) throws OverlayException
OverlayManagerremovePath in interface OverlayManagerinNode - - The node that the path references.inVersion - - The version of the overlay.OverlayExceptionpublic MessageLink openBackingLink(NodeDetails inNode) throws LinkException
LinkExceptionpublic MessageLink setBackingLink(NodeDetails inNode, MessageLink inLink)
public void onLinkUpdatedRemote(ds.funnel.overlay.event.MsgTLinkUpdate inEvent)
public java.lang.String toString()
toString in class java.lang.Object