Search in sources :

Example 1 with CheckpointSchedulingExecutor

use of alluxio.master.lineage.checkpoint.CheckpointSchedulingExecutor in project alluxio by Alluxio.

the class LineageMaster method start.

@Override
public void start(boolean isLeader) throws IOException {
    super.start(isLeader);
    if (isLeader) {
        getExecutorService().submit(new HeartbeatThread(HeartbeatContext.MASTER_CHECKPOINT_SCHEDULING, new CheckpointSchedulingExecutor(this, mFileSystemMaster), Configuration.getInt(PropertyKey.MASTER_LINEAGE_CHECKPOINT_INTERVAL_MS)));
        getExecutorService().submit(new HeartbeatThread(HeartbeatContext.MASTER_FILE_RECOMPUTATION, new RecomputeExecutor(new RecomputePlanner(mLineageStore, mFileSystemMaster), mFileSystemMaster), Configuration.getInt(PropertyKey.MASTER_LINEAGE_RECOMPUTE_INTERVAL_MS)));
    }
}
Also used : CheckpointSchedulingExecutor(alluxio.master.lineage.checkpoint.CheckpointSchedulingExecutor) HeartbeatThread(alluxio.heartbeat.HeartbeatThread) RecomputePlanner(alluxio.master.lineage.recompute.RecomputePlanner) RecomputeExecutor(alluxio.master.lineage.recompute.RecomputeExecutor)

Aggregations

HeartbeatThread (alluxio.heartbeat.HeartbeatThread)1 CheckpointSchedulingExecutor (alluxio.master.lineage.checkpoint.CheckpointSchedulingExecutor)1 RecomputeExecutor (alluxio.master.lineage.recompute.RecomputeExecutor)1 RecomputePlanner (alluxio.master.lineage.recompute.RecomputePlanner)1