public final class CheckpointingClientImpl extends java.lang.Object implements MessageHandler, CheckpointingClient
CheckpointManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_WAIT_TIME |
Constructor and Description |
---|
CheckpointingClientImpl(RRClient rrClient,
long waitTime) |
Modifier and Type | Method and Description |
---|---|
void |
init() |
Checkpoint.FamilyInitializeResponse |
initFamily(int containerIndex,
int containersCount,
java.lang.String family,
java.util.Set<java.lang.Integer> members) |
void |
onMessage(RequestID id,
int workerId,
Message message)
Handles a specific message type
|
Checkpoint.ComponentDiscoveryResponse |
sendDiscoveryMessage(java.lang.String family,
int index) |
void |
sendVersionUpdate(java.lang.String family,
int index,
long version,
MessageHandler messageHandler) |
public static final java.lang.String CONFIG_WAIT_TIME
public CheckpointingClientImpl(RRClient rrClient, long waitTime)
public void init()
public Checkpoint.ComponentDiscoveryResponse sendDiscoveryMessage(java.lang.String family, int index) throws BlockingSendException
sendDiscoveryMessage
in interface CheckpointingClient
BlockingSendException
public Checkpoint.FamilyInitializeResponse initFamily(int containerIndex, int containersCount, java.lang.String family, java.util.Set<java.lang.Integer> members) throws BlockingSendException
initFamily
in interface CheckpointingClient
BlockingSendException
public void sendVersionUpdate(java.lang.String family, int index, long version, MessageHandler messageHandler)
sendVersionUpdate
in interface CheckpointingClient
public void onMessage(RequestID id, int workerId, Message message)
MessageHandler
onMessage
in interface MessageHandler
id
- request idworkerId
- worker idmessage
- protbuf message