public class RpcBenchPreparationUtils extends Object
Modifier and Type | Field and Description |
---|---|
static BlockStoreLocation |
BLOCK_LOCATION_MEM |
static long |
CAPACITY |
static Map<String,Long> |
CAPACITY_MEM |
static List<ConfigProperty> |
EMPTY_CONFIG |
static Map<String,List<String>> |
LOST_STORAGE |
static Map<String,Long> |
USED_MEM_EMPTY |
Modifier and Type | Method and Description |
---|---|
static Map<BlockStoreLocation,List<Long>> |
generateBlockIdOnTiers(Map<TierAlias,List<Integer>> tiersConfig)
Generates block IDs according to the storage tier/dir setup.
|
static void |
prepareBlocksInMaster(Map<BlockStoreLocation,List<Long>> locToBlocks)
Prepare all relevant block IDs on the master side concurrently.
|
public static final long CAPACITY
public static final BlockStoreLocation BLOCK_LOCATION_MEM
public static final List<ConfigProperty> EMPTY_CONFIG
public static void prepareBlocksInMaster(Map<BlockStoreLocation,List<Long>> locToBlocks) throws InterruptedException
locToBlocks
- a map from block location to block IDsInterruptedException
public static Map<BlockStoreLocation,List<Long>> generateBlockIdOnTiers(Map<TierAlias,List<Integer>> tiersConfig)
Long.MAX_VALUE
.tiersConfig
- the tier/dir block countsCopyright © 2023. All Rights Reserved.