public class CheckpointManager extends java.lang.Object implements MessageHandler, JobFaultListener
Constructor and Description |
---|
CheckpointManager(RRServer rrServer,
StateStore stateStore,
java.lang.String jobId) |
Modifier and Type | Method and Description |
---|---|
void |
faultOccurred()
this is called when a worker failed in the job
it is also called when a worker is restarted before its failure message received
|
void |
faultRestored()
this is called when all workers restored
and they all come to a barrier after the barrier
|
void |
init() |
void |
onMessage(RequestID id,
int workerId,
Message message)
Handles a specific message type
|
public CheckpointManager(RRServer rrServer, StateStore stateStore, java.lang.String jobId)
public void init()
public void onMessage(RequestID id, int workerId, Message message)
MessageHandler
onMessage
in interface MessageHandler
id
- request idworkerId
- worker idmessage
- protbuf messagepublic void faultOccurred()
JobFaultListener
faultOccurred
in interface JobFaultListener
public void faultRestored()
JobFaultListener
faultRestored
in interface JobFaultListener