// Alternate BlockCacheDirectoryFactory support currently disabled in 0.2.0,
// look for it in 0.2.1
String blockCacheVersion = configuration.get(BLUR_SHARD_BLOCK_CACHE_VERSION, "v2");
long totalNumberOfBytes = configuration.getLong(BLUR_SHARD_BLOCK_CACHE_TOTAL_SIZE, VM.maxDirectMemory() - _64MB);
if (blockCacheVersion.equals("v1")) {
blockCacheDirectoryFactory = new BlockCacheDirectoryFactoryV1(configuration, totalNumberOfBytes);
} else if (blockCacheVersion.equals("v2")) {
blockCacheDirectoryFactory = new BlockCacheDirectoryFactoryV2(configuration, totalNumberOfBytes);
} else {
throw new RuntimeException("Unknown block cache version [" + blockCacheVersion + "] can be [v1,v2]");
}