NodeIDType
- public interface ReplicaCoordinator<NodeIDType>
Modifier and Type | Method and Description |
---|---|
boolean |
coordinateRequest(Request request,
ExecutedCallback callback)
This method performs whatever replica coordination action is necessary to
handle the request.
|
boolean |
createReplicaGroup(java.lang.String serviceName,
int epoch,
java.lang.String state,
java.util.Set<NodeIDType> nodes)
This method should return true if the replica group is successfully
created or one already exists with the same set of nodes.
|
boolean |
deleteReplicaGroup(java.lang.String serviceName,
int epoch)
This method should result in all state corresponding to serviceName being
deleted
|
java.util.Set<NodeIDType> |
getReplicaGroup(java.lang.String serviceName)
This method must return the replica group that was most recently
successfully created for the serviceName using createReplicaGroup.
|
boolean coordinateRequest(Request request, ExecutedCallback callback) throws java.io.IOException, RequestParseException
request
- callback
- Application.execute(edu.umass.cs.gigapaxos.interfaces.Request)
invocation.java.io.IOException
RequestParseException
boolean createReplicaGroup(java.lang.String serviceName, int epoch, java.lang.String state, java.util.Set<NodeIDType> nodes)
serviceName
- epoch
- state
- nodes
- boolean deleteReplicaGroup(java.lang.String serviceName, int epoch)
serviceName
- epoch
- java.util.Set<NodeIDType> getReplicaGroup(java.lang.String serviceName)
serviceName
- serviceName
.