public final class CloudCostUtils extends Object
Modifier and Type | Field and Description |
---|---|
static Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> |
ABFS_COSTMAP |
static Map<String,Map<DefaultFileSystemMaster.Metrics.UFSOps,Double>> |
COSTMAP |
static Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> |
GCS_COSTMAP |
static Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> |
OSS_COSTMAP |
static Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> |
S3_COSTMAP
Cost map is a map between ufs operations and their associated cost in dollars per operation.
|
Modifier and Type | Method and Description |
---|---|
static double |
calculateCost(String ufsType,
Map<String,Long> perUfsMap)
Calculate the saved cost from the perUfs Operations saved map.
|
public static final Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> S3_COSTMAP
public static final Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> ABFS_COSTMAP
public static final Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> GCS_COSTMAP
public static final Map<DefaultFileSystemMaster.Metrics.UFSOps,Double> OSS_COSTMAP
public static final Map<String,Map<DefaultFileSystemMaster.Metrics.UFSOps,Double>> COSTMAP
public static double calculateCost(String ufsType, Map<String,Long> perUfsMap)
ufsType
- ufs type could be s3, gcs, abfs etcperUfsMap
- a map mapping operations to the number of ops savedCopyright © 2023. All Rights Reserved.