Search in sources :

Example 1 with DummyMetricGroup

use of org.apache.flink.api.common.eventtime.WatermarkStrategyTest.DummyMetricGroup in project flink by apache.

the class CheckpointCoordinatorMasterHooksTest method instantiateCheckpointCoordinator.

private CheckpointCoordinator instantiateCheckpointCoordinator(ExecutionGraph graph, ScheduledExecutor testingScheduledExecutor) {
    CheckpointCoordinatorConfiguration chkConfig = new CheckpointCoordinatorConfiguration(10000000L, 600000L, 0L, 1, CheckpointRetentionPolicy.NEVER_RETAIN_AFTER_TERMINATION, true, false, 0, 0);
    Executor executor = Executors.directExecutor();
    return new CheckpointCoordinator(graph.getJobID(), chkConfig, Collections.emptyList(), new StandaloneCheckpointIDCounter(), new StandaloneCompletedCheckpointStore(10), new MemoryStateBackend(), executor, new CheckpointsCleaner(), testingScheduledExecutor, new CheckpointFailureManager(0, NoOpFailJobCall.INSTANCE), new DefaultCheckpointPlanCalculator(graph.getJobID(), new ExecutionGraphCheckpointPlanCalculatorContext(graph), graph.getVerticesTopologically(), false), new ExecutionAttemptMappingProvider(graph.getAllExecutionVertices()), new CheckpointStatsTracker(1, new DummyMetricGroup()));
}
Also used : MemoryStateBackend(org.apache.flink.runtime.state.memory.MemoryStateBackend) CheckpointCoordinatorConfiguration(org.apache.flink.runtime.jobgraph.tasks.CheckpointCoordinatorConfiguration) ExecutionGraphCheckpointPlanCalculatorContext(org.apache.flink.runtime.executiongraph.ExecutionGraphCheckpointPlanCalculatorContext) ManuallyTriggeredScheduledExecutor(org.apache.flink.util.concurrent.ManuallyTriggeredScheduledExecutor) ScheduledExecutor(org.apache.flink.util.concurrent.ScheduledExecutor) Executor(java.util.concurrent.Executor) DummyMetricGroup(org.apache.flink.api.common.eventtime.WatermarkStrategyTest.DummyMetricGroup)

Aggregations

Executor (java.util.concurrent.Executor)1 DummyMetricGroup (org.apache.flink.api.common.eventtime.WatermarkStrategyTest.DummyMetricGroup)1 ExecutionGraphCheckpointPlanCalculatorContext (org.apache.flink.runtime.executiongraph.ExecutionGraphCheckpointPlanCalculatorContext)1 CheckpointCoordinatorConfiguration (org.apache.flink.runtime.jobgraph.tasks.CheckpointCoordinatorConfiguration)1 MemoryStateBackend (org.apache.flink.runtime.state.memory.MemoryStateBackend)1 ManuallyTriggeredScheduledExecutor (org.apache.flink.util.concurrent.ManuallyTriggeredScheduledExecutor)1 ScheduledExecutor (org.apache.flink.util.concurrent.ScheduledExecutor)1