@Test public void createTempBlockMeta() { TempBlockMeta tempBlockMeta = mTestDirView.createTempBlockMeta(TEST_SESSION_ID, TEST_TEMP_BLOCK_ID, TEST_BLOCK_SIZE); Assert.assertEquals(TEST_SESSION_ID, tempBlockMeta.getSessionId()); Assert.assertEquals(TEST_TEMP_BLOCK_ID, tempBlockMeta.getBlockId()); Assert.assertEquals(TEST_BLOCK_SIZE, tempBlockMeta.getBlockSize()); Assert.assertEquals(mTestDir, tempBlockMeta.getParentDir()); }
public TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize) { return new TempBlockMeta(sessionId, blockId, initialBlockSize, mDir); }
StorageDirView { public TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize) { return new TempBlockMeta(sessionId, blockId, initialBlockSize, mDir); } }
StorageDirView { public TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize) { return new TempBlockMeta(sessionId, blockId, initialBlockSize, mDir); } StorageDirView(StorageDir dir, StorageTierView tierView); }
StorageDirView { public TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize) { return new TempBlockMeta(sessionId, blockId, initialBlockSize, mDir); } StorageDirView(StorageDir dir, StorageTierView tierView); abstract long getAvailableBytes(); long getReservedBytes(); int getDirViewIndex(); long getCapacityBytes(); long getCommittedBytes(); TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize); StorageTierView getParentTierView(); String getMediumType(); BlockStoreLocation toBlockStoreLocation(); }
StorageDirView { public TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize) { return new TempBlockMeta(sessionId, blockId, initialBlockSize, mDir); } StorageDirView(StorageDir dir, StorageTierView tierView); abstract long getAvailableBytes(); long getReservedBytes(); int getDirViewIndex(); long getCapacityBytes(); long getCommittedBytes(); TempBlockMeta createTempBlockMeta(long sessionId, long blockId, long initialBlockSize); StorageTierView getParentTierView(); String getMediumType(); BlockStoreLocation toBlockStoreLocation();  }