Search in sources :

Example 1 with NotifyCheckpointComplete

use of org.apache.flink.runtime.messages.checkpoint.NotifyCheckpointComplete 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 NotifyCheckpointComplete

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

the class ActorTaskManagerGateway method notifyCheckpointComplete.

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

Aggregations

NotifyCheckpointComplete (org.apache.flink.runtime.messages.checkpoint.NotifyCheckpointComplete)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 TriggerCheckpoint (org.apache.flink.runtime.messages.checkpoint.TriggerCheckpoint)1 Test (org.junit.Test)1