use of alluxio.worker.block.BlockMetadataManager in project alluxio by Alluxio.
the class StorageDirViewTest method before.
/**
* Sets up all dependencies before a test runs.
*/
@Before
public void before() throws Exception {
File tempFolder = mTestFolder.newFolder();
BlockMetadataManager metaManager = TieredBlockStoreTestUtils.defaultMetadataManager(tempFolder.getAbsolutePath());
mMetadataView = Mockito.spy(new BlockMetadataEvictorView(metaManager, new HashSet<Long>(), new HashSet<Long>()));
StorageTier testTier = metaManager.getTiers().get(TEST_TIER_LEVEL);
mTestDir = testTier.getDir(TEST_DIR);
mTestTierView = new StorageTierEvictorView(testTier, mMetadataView);
mTestDirView = new StorageDirEvictorView(mTestDir, mTestTierView, mMetadataView);
}
use of alluxio.worker.block.BlockMetadataManager in project alluxio by Alluxio.
the class StorageTierViewTest method before.
/**
* Sets up all dependencies before a test runs.
*/
@Before
public void before() throws Exception {
File tempFolder = mTestFolder.newFolder();
BlockMetadataManager metaManager = TieredBlockStoreTestUtils.defaultMetadataManager(tempFolder.getAbsolutePath());
mMetadataView = new BlockMetadataEvictorView(metaManager, new HashSet<Long>(), new HashSet<Long>());
mTestTier = metaManager.getTiers().get(TEST_TIER_LEVEL);
mTestTierView = new StorageTierEvictorView(mTestTier, mMetadataView);
}
Aggregations