Search in sources :

Example 1 with LineageStore

use of alluxio.master.lineage.meta.LineageStore in project alluxio by Alluxio.

the class CheckpointLatestPlannerTest method before.

/**
   * Sets up all dependencies before a test runs.
   */
@Before
public void before() {
    mLineageStore = new LineageStore(new LineageIdGenerator());
    mJob = new CommandLineJob("test", new JobConf("output"));
    mFileSystemMaster = Mockito.mock(FileSystemMaster.class);
    mPlanner = new CheckpointLatestPlanner(new LineageStoreView(mLineageStore), new FileSystemMasterView(mFileSystemMaster));
}
Also used : FileSystemMasterView(alluxio.master.file.meta.FileSystemMasterView) LineageStore(alluxio.master.lineage.meta.LineageStore) FileSystemMaster(alluxio.master.file.FileSystemMaster) LineageIdGenerator(alluxio.master.lineage.meta.LineageIdGenerator) CommandLineJob(alluxio.job.CommandLineJob) JobConf(alluxio.job.JobConf) LineageStoreView(alluxio.master.lineage.meta.LineageStoreView) Before(org.junit.Before)

Example 2 with LineageStore

use of alluxio.master.lineage.meta.LineageStore in project alluxio by Alluxio.

the class RecomputePlannerTest method before.

/**
   * Sets up the dependencies before a test runs.
   */
@Before
public void before() {
    mLineageStore = new LineageStore(new LineageIdGenerator());
    mJob = new CommandLineJob("test", new JobConf("output"));
    mFileSystemMaster = Mockito.mock(FileSystemMaster.class);
    Mockito.when(mFileSystemMaster.getFileSystemMasterView()).thenReturn(new FileSystemMasterView(mFileSystemMaster));
    mPlanner = new RecomputePlanner(mLineageStore, mFileSystemMaster);
}
Also used : FileSystemMasterView(alluxio.master.file.meta.FileSystemMasterView) LineageStore(alluxio.master.lineage.meta.LineageStore) FileSystemMaster(alluxio.master.file.FileSystemMaster) LineageIdGenerator(alluxio.master.lineage.meta.LineageIdGenerator) CommandLineJob(alluxio.job.CommandLineJob) JobConf(alluxio.job.JobConf) Before(org.junit.Before)

Aggregations

CommandLineJob (alluxio.job.CommandLineJob)2 JobConf (alluxio.job.JobConf)2 FileSystemMaster (alluxio.master.file.FileSystemMaster)2 FileSystemMasterView (alluxio.master.file.meta.FileSystemMasterView)2 LineageIdGenerator (alluxio.master.lineage.meta.LineageIdGenerator)2 LineageStore (alluxio.master.lineage.meta.LineageStore)2 Before (org.junit.Before)2 LineageStoreView (alluxio.master.lineage.meta.LineageStoreView)1