NodeIDType
- public class WaitAckStartEpoch<NodeIDType> extends ThresholdProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>
Modifier and Type | Field and Description |
---|---|
static ReconfigurationPacket.PacketType[] |
types
Packet types handled.
|
waitfor
Constructor and Description |
---|
WaitAckStartEpoch(StartEpoch<NodeIDType> startEpoch,
RepliconfigurableReconfiguratorDB<NodeIDType> DB) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
amObviated() |
java.util.Set<ReconfigurationPacket.PacketType> |
getEventTypes() |
java.lang.String |
getKey() |
long |
getPeriod()
The current restart period.
|
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.
|
java.lang.String |
refreshKey() |
GenericMessagingTask<NodeIDType,?>[] |
restart() |
GenericMessagingTask<NodeIDType,?>[] |
start()
Actions executed in the beginning.
|
java.lang.String |
toString() |
fix, handleEvent, setPeriod
public static final ReconfigurationPacket.PacketType[] types
public WaitAckStartEpoch(StartEpoch<NodeIDType> startEpoch, RepliconfigurableReconfiguratorDB<NodeIDType> DB)
startEpoch
- DB
- public GenericMessagingTask<NodeIDType,?>[] restart()
public GenericMessagingTask<NodeIDType,?>[] start()
ProtocolTask
protected boolean amObviated()
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 GenericMessagingTask<NodeIDType,?>[] handleThresholdEvent(ProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>[] ptasks)
ThresholdProtocolTask
handleThresholdEvent
in class ThresholdProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>
public java.lang.String toString()
toString
in class java.lang.Object
public long getPeriod()
ThresholdProtocolTask
getPeriod
in interface SchedulableProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>
getPeriod
in class ThresholdProtocolTask<NodeIDType,ReconfigurationPacket.PacketType,java.lang.String>