All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
close()
Close gracefully.
|
void |
executed(Request request,
boolean handled)
Reconfiguration is initiated using a callback because the intent to
conduct a reconfiguration must be persistently committed before
initiating the reconfiguration.
|
static int |
getClientFacingClearPort(int port) |
static int |
getClientFacingSSLPort(int port)
|
Callback<Request,ReconfiguratorRequest> |
getDefaultCallback() |
java.util.Set<ReconfigurationPacket.PacketType> |
getPacketTypes() |
protected ActiveReplica<NodeIDType> |
getReconfigurableReconfiguratorAsActiveReplica()
This treats the reconfigurator itself as an "active replica" in order to
be able to reconfigure reconfigurator groups.
|
static java.lang.String |
getTaskKey(java.lang.Class<?> C,
BasicReconfigurationPacket<?> rcPacket,
java.lang.String myID) |
protected static java.lang.String |
getTaskKeyPrev(java.lang.Class<?> C,
BasicReconfigurationPacket<?> rcPacket,
java.lang.String myID) |
GenericMessagingTask<NodeIDType,?>[] |
handleCreateServiceName(CreateServiceName create,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
Create service name is a special case of reconfiguration where the
previous group is non-existent.
|
GenericMessagingTask<NodeIDType,?>[] |
handleCreateServiceName(CreateServiceName create,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks,
Callback<Request,ReconfiguratorRequest> callback) |
GenericMessagingTask<NodeIDType,?>[] |
handleDeleteServiceName(DeleteServiceName delete,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
We need to ensure that both the stop/drop at actives happens atomically
with the removal of the record at reconfigurators.
|
GenericMessagingTask<NodeIDType,?>[] |
handleDeleteServiceName(DeleteServiceName delete,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks,
Callback<Request,ReconfiguratorRequest> callback) |
GenericMessagingTask<NodeIDType,?>[] |
handleDemandReport(DemandReport<NodeIDType> report,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
Incorporates demand reports (possibly but not necessarily with replica
coordination), checks for reconfiguration triggers, and initiates
reconfiguration if needed.
|
GenericMessagingTask<NodeIDType,?>[] |
handleEchoRequest(EchoRequest echo,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks) |
boolean |
handleMessage(Request incoming,
NIOHeader header) |
GenericMessagingTask<NodeIDType,?>[] |
handleRCRecordRequest(RCRecordRequest<NodeIDType> rcRecReq,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
Simply hand over DB request to DB.
|
GenericMessagingTask<?,?>[] |
handleReconfigureActiveNodeConfig(ReconfigureActiveNodeConfig<NodeIDType> changeActives,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks) |
GenericMessagingTask<?,?>[] |
handleReconfigureRCNodeConfig(ReconfigureRCNodeConfig<NodeIDType> changeRC,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
Handles a request to add or delete a reconfigurator from the set of all
reconfigurators in NodeConfig.
|
GenericMessagingTask<NodeIDType,?>[] |
handleRequestActiveReplicas(RequestActiveReplicas request,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
This method simply looks up and returns the current set of active
replicas.
|
GenericMessagingTask<NodeIDType,?>[] |
handleRequestActiveReplicas(RequestActiveReplicas request,
ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks,
Callback<Request,ReconfiguratorRequest> callback) |
boolean |
preExecuted(Request request) |
ReconfiguratorRequest |
sendRequest(ReconfiguratorRequest request) |
RequestCallbackFuture<ReconfiguratorRequest> |
sendRequest(ReconfiguratorRequest request,
Callback<Request,ReconfiguratorRequest> callback) |
java.lang.String |
toString() |