public class NoopAppCoordinator extends PaxosReplicaCoordinator<java.lang.String>
Modifier and Type | Class and Description |
---|---|
static class |
NoopAppCoordinator.CoordType
Intended to support two types of coordination policies: lazy and paxos.
|
log
app, messenger
Modifier and Type | Method and Description |
---|---|
boolean |
coordinateRequest(Request request,
ExecutedCallback callback)
Start of abstract methods
|
boolean |
createReplicaGroup(java.lang.String serviceName,
int epoch,
java.lang.String state,
java.util.Set<java.lang.String> 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
|
protected boolean |
existsGroup(java.lang.String name,
int epoch) |
java.util.Set<java.lang.String> |
getReplicaGroup(java.lang.String serviceName)
This method must return the replica group that was most recently
successfully created for the serviceName using createReplicaGroup.
|
java.util.Set<IntegerPacketType> |
getRequestTypes() |
ReconfigurableRequest |
getStopRequest(java.lang.String name,
int epoch)
Returns a stop request that when executed by the app ensures that no
subsequent request after the stop is executed in that epoch.
|
coordinateRequest, createReplicaGroup, deleteFinalState, existsOrHigher, forceCheckpoint, getEpoch, getFinalState, getFinalStateContainer, putInitialState, removeDead, setOutOfOrderLimit, stop, stopFailureMonitoring, toString
callCallback, checkpoint, execute, execute, execute, getAppRequestTypes, getARARNodesAsString, getARRCNodesAsString, getCallback, getCoordinatorRequestTypes, getMessenger, getMutualAuthAppRequestTypes, getMyID, getRequest, getRequest, getRequest, handleIncoming, hasLargeCheckpoints, registerCoordination, restore, sendAllLazy, setCallback, setLargeCheckpoints, setMessenger, setStopCallback
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getMutualAuthRequestTypes, getServerAuthRequestTypes
public boolean coordinateRequest(Request request, ExecutedCallback callback) throws java.io.IOException, RequestParseException
AbstractReplicaCoordinator
coordinateRequest
in interface ReplicaCoordinator<java.lang.String>
coordinateRequest
in class PaxosReplicaCoordinator<java.lang.String>
java.io.IOException
RequestParseException
public boolean createReplicaGroup(java.lang.String serviceName, int epoch, java.lang.String state, java.util.Set<java.lang.String> nodes)
ReplicaCoordinator
createReplicaGroup
in interface ReplicaCoordinator<java.lang.String>
createReplicaGroup
in class PaxosReplicaCoordinator<java.lang.String>
public boolean deleteReplicaGroup(java.lang.String serviceName, int epoch)
ReplicaCoordinator
deleteReplicaGroup
in interface ReplicaCoordinator<java.lang.String>
deleteReplicaGroup
in class PaxosReplicaCoordinator<java.lang.String>
public java.util.Set<java.lang.String> getReplicaGroup(java.lang.String serviceName)
ReplicaCoordinator
getReplicaGroup
in interface ReplicaCoordinator<java.lang.String>
getReplicaGroup
in class PaxosReplicaCoordinator<java.lang.String>
serviceName
.public java.util.Set<IntegerPacketType> getRequestTypes()
getRequestTypes
in interface AppRequestParser
getRequestTypes
in class PaxosReplicaCoordinator<java.lang.String>
public ReconfigurableRequest getStopRequest(java.lang.String name, int epoch)
Reconfigurable
getStopRequest
in interface Reconfigurable
getStopRequest
in class PaxosReplicaCoordinator<java.lang.String>
name:epoch
.protected boolean existsGroup(java.lang.String name, int epoch)