Search in sources :

Example 1 with TriggerCheckpoint

use of org.apache.flink.runtime.messages.checkpoint.TriggerCheckpoint in project flink by apache.

the class CheckpointMessagesTest method testTriggerAndConfirmCheckpoint.

@Test
public void testTriggerAndConfirmCheckpoint() {
    try {
        NotifyCheckpointComplete cc = new NotifyCheckpointComplete(new JobID(), new ExecutionAttemptID(), 45287698767345L, 467L);
        testSerializabilityEqualsHashCode(cc);
        TriggerCheckpoint tc = new TriggerCheckpoint(new JobID(), new ExecutionAttemptID(), 347652734L, 7576752L, CheckpointOptions.forFullCheckpoint());
        testSerializabilityEqualsHashCode(tc);
    } catch (Exception e) {
        e.printStackTrace();
        fail(e.getMessage());
    }
}
Also used : ExecutionAttemptID(org.apache.flink.runtime.executiongraph.ExecutionAttemptID) TriggerCheckpoint(org.apache.flink.runtime.messages.checkpoint.TriggerCheckpoint) JobID(org.apache.flink.api.common.JobID) IOException(java.io.IOException) NotifyCheckpointComplete(org.apache.flink.runtime.messages.checkpoint.NotifyCheckpointComplete) Test(org.junit.Test) CheckpointCoordinatorTest(org.apache.flink.runtime.checkpoint.CheckpointCoordinatorTest)

Example 2 with TriggerCheckpoint

use of org.apache.flink.runtime.messages.checkpoint.TriggerCheckpoint in project flink by apache.

the class ActorTaskManagerGateway method triggerCheckpoint.

@Override
public void triggerCheckpoint(ExecutionAttemptID executionAttemptID, JobID jobId, long checkpointId, long timestamp, CheckpointOptions checkpointOptions) {
    Preconditions.checkNotNull(executionAttemptID);
    Preconditions.checkNotNull(jobId);
    actorGateway.tell(new TriggerCheckpoint(jobId, executionAttemptID, checkpointId, timestamp, checkpointOptions));
}
Also used : TriggerCheckpoint(org.apache.flink.runtime.messages.checkpoint.TriggerCheckpoint)

Aggregations

TriggerCheckpoint (org.apache.flink.runtime.messages.checkpoint.TriggerCheckpoint)2 IOException (java.io.IOException)1 JobID (org.apache.flink.api.common.JobID)1 CheckpointCoordinatorTest (org.apache.flink.runtime.checkpoint.CheckpointCoordinatorTest)1 ExecutionAttemptID (org.apache.flink.runtime.executiongraph.ExecutionAttemptID)1 NotifyCheckpointComplete (org.apache.flink.runtime.messages.checkpoint.NotifyCheckpointComplete)1 Test (org.junit.Test)1