@Test public void getBlockLocation() { BlockStoreLocation expectedLocation = new BlockStoreLocation(mTier.getTierAlias(), mDir.getDirIndex(), mDir.getDirMedium()); Assert.assertEquals(expectedLocation, mBlockMeta.getBlockLocation()); }
public BlockStoreLocation getBlockLocation() { StorageTier tier = mDir.getParentTier(); return new BlockStoreLocation(tier.getTierAlias(), mDir.getDirIndex(), mDir.getDirMedium()); }
AbstractBlockMeta { public BlockStoreLocation getBlockLocation() { StorageTier tier = mDir.getParentTier(); return new BlockStoreLocation(tier.getTierAlias(), mDir.getDirIndex(), mDir.getDirMedium()); } }
AbstractBlockMeta { public BlockStoreLocation getBlockLocation() { StorageTier tier = mDir.getParentTier(); return new BlockStoreLocation(tier.getTierAlias(), mDir.getDirIndex(), mDir.getDirMedium()); } AbstractBlockMeta(long blockId, StorageDir dir); }
AbstractBlockMeta { public BlockStoreLocation getBlockLocation() { StorageTier tier = mDir.getParentTier(); return new BlockStoreLocation(tier.getTierAlias(), mDir.getDirIndex(), mDir.getDirMedium()); } AbstractBlockMeta(long blockId, StorageDir dir); static String tempPath(StorageDir dir, long sessionId, long blockId); static String commitPath(StorageDir dir, long blockId); long getBlockId(); BlockStoreLocation getBlockLocation(); StorageDir getParentDir(); abstract String getPath(); abstract long getBlockSize(); }
AbstractBlockMeta { public BlockStoreLocation getBlockLocation() { StorageTier tier = mDir.getParentTier(); return new BlockStoreLocation(tier.getTierAlias(), mDir.getDirIndex(), mDir.getDirMedium()); } AbstractBlockMeta(long blockId, StorageDir dir); static String tempPath(StorageDir dir, long sessionId, long blockId); static String commitPath(StorageDir dir, long blockId); long getBlockId(); BlockStoreLocation getBlockLocation(); StorageDir getParentDir(); abstract String getPath(); abstract long getBlockSize();  }