public class CheckpointCoordinator extends Object
| Constructor and Description |
|---|
CheckpointCoordinator(org.apache.flink.api.common.JobID job,
int numSuccessfulCheckpointsToRetain,
long checkpointTimeout,
ExecutionVertex[] tasksToTrigger,
ExecutionVertex[] tasksToWaitFor,
ExecutionVertex[] tasksToCommitTo,
ClassLoader userClassLoader) |
| Modifier and Type | Method and Description |
|---|---|
akka.actor.ActorRef |
createJobStatusListener(akka.actor.ActorSystem actorSystem,
long checkpointInterval) |
int |
getNumberOfPendingCheckpoints() |
int |
getNumberOfRetainedSuccessfulCheckpoints() |
Map<Long,PendingCheckpoint> |
getPendingCheckpoints() |
List<SuccessfulCheckpoint> |
getSuccessfulCheckpoints() |
boolean |
isShutdown() |
void |
receiveAcknowledgeMessage(AcknowledgeCheckpoint message) |
void |
restoreLatestCheckpointedState(Map<JobVertexID,ExecutionJobVertex> tasks,
boolean errorIfNoCheckpoint,
boolean allOrNothingState) |
void |
shutdown()
Shuts down the checkpoint coordinator.
|
void |
startPeriodicCheckpointScheduler(long interval) |
void |
stopPeriodicCheckpointScheduler() |
void |
triggerCheckpoint()
Triggers a new checkpoint and uses the current system time as the
checkpoint time.
|
boolean |
triggerCheckpoint(long timestamp)
Triggers a new checkpoint and uses the given timestamp as the checkpoint
timestamp.
|
public CheckpointCoordinator(org.apache.flink.api.common.JobID job,
int numSuccessfulCheckpointsToRetain,
long checkpointTimeout,
ExecutionVertex[] tasksToTrigger,
ExecutionVertex[] tasksToWaitFor,
ExecutionVertex[] tasksToCommitTo,
ClassLoader userClassLoader)
public void shutdown()
public boolean isShutdown()
public void triggerCheckpoint()
public boolean triggerCheckpoint(long timestamp)
timestamp - The timestamp for the checkpoint.public void receiveAcknowledgeMessage(AcknowledgeCheckpoint message)
public void restoreLatestCheckpointedState(Map<JobVertexID,ExecutionJobVertex> tasks, boolean errorIfNoCheckpoint, boolean allOrNothingState) throws Exception
Exceptionpublic int getNumberOfPendingCheckpoints()
public int getNumberOfRetainedSuccessfulCheckpoints()
public Map<Long,PendingCheckpoint> getPendingCheckpoints()
public List<SuccessfulCheckpoint> getSuccessfulCheckpoints()
public void startPeriodicCheckpointScheduler(long interval)
public void stopPeriodicCheckpointScheduler()
public akka.actor.ActorRef createJobStatusListener(akka.actor.ActorSystem actorSystem,
long checkpointInterval)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.