NodeIDType
- public class WaitEpochFinalState<NodeIDType> extends ThresholdProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>
Modifier and Type | Field and Description |
---|---|
protected static ReconfigurationPacket.PacketType[] |
types |
waitfor
Constructor and Description |
---|
WaitEpochFinalState(NodeIDType myID,
StartEpoch<NodeIDType> startEpoch,
AbstractReplicaCoordinator<NodeIDType> appCoordinator) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addNotifiee(NodeIDType node,
java.lang.String key) |
GenericMessagingTask<NodeIDType,?>[] |
getAckStarts() |
java.util.Set<ReconfigurationPacket.PacketType> |
getEventTypes() |
java.lang.String |
getKey() |
boolean |
handleEvent(ProtocolEvent<ReconfigurationPacket.PacketType,java.lang.String> event) |
GenericMessagingTask<NodeIDType,?>[] |
handleThresholdEvent(ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
Default action is to cancel the protocol task when the threshold is
reached.
|
boolean |
isDone() |
java.lang.String |
refreshKey() |
GenericMessagingTask<NodeIDType,?>[] |
restart() |
GenericMessagingTask<NodeIDType,?>[] |
start()
Actions executed in the beginning.
|
java.lang.String |
toString() |
fix, getPeriod, handleEvent, setPeriod
protected static final ReconfigurationPacket.PacketType[] types
public WaitEpochFinalState(NodeIDType myID, StartEpoch<NodeIDType> startEpoch, AbstractReplicaCoordinator<NodeIDType> appCoordinator)
myID
- startEpoch
- appCoordinator
- public GenericMessagingTask<NodeIDType,?>[] restart()
public GenericMessagingTask<NodeIDType,?>[] start()
ProtocolTask
public java.lang.String refreshKey()
public java.util.Set<ReconfigurationPacket.PacketType> getEventTypes()
public java.lang.String getKey()
public boolean handleEvent(ProtocolEvent<ReconfigurationPacket.PacketType,java.lang.String> event)
handleEvent
in class ThresholdProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String addNotifiee(NodeIDType node, java.lang.String key)
node
- key
- public GenericMessagingTask<NodeIDType,?>[] handleThresholdEvent(ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
ThresholdProtocolTask
handleThresholdEvent
in class ThresholdProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>
public GenericMessagingTask<NodeIDType,?>[] getAckStarts()
public boolean isDone()