public interface CoordinationStrategy
| Modifier and Type | Method and Description |
|---|---|
List<NodeDetail> |
getAllNodeDetails()
Retrieve node details of all the nodes.
|
List<String> |
getAllNodeIdentifiers()
Retrieve IDs of all the nodes.
|
String |
getNodeIdentifierOfCoordinator()
Retrieve the node ID of the coordinator node.
|
boolean |
isCoordinator()
Used to query if the current node is the coordinator.
|
void |
start()
Meant to be invoked when the coordination algorithm should start working.
|
void |
stop()
Meant to be invoked when the coordination algorithm should stop working.
|
boolean isCoordinator()
String getNodeIdentifierOfCoordinator() throws CoordinationException
CoordinationExceptionList<String> getAllNodeIdentifiers() throws CoordinationException
CoordinationExceptionList<NodeDetail> getAllNodeDetails() throws CoordinationException
CoordinationExceptionvoid start()
void stop()
Copyright © 2018 WSO2. All rights reserved.