@Override
  public void updateStochasticCost(String tableName, String costFunctionName, String functionDesc,
    Double cost) {
    if (tableName == null || costFunctionName == null || cost == null) {
      return;
    }
    if (functionDesc != null) {
      costFunctionDescs.put(costFunctionName, functionDesc);
    }

    synchronized (stochasticCosts) {
      Map<String, Double> costs = stochasticCosts.get(tableName);
      if (costs == null) {
        costs = new ConcurrentHashMap<>();
      }
      costs.put(costFunctionName, cost);
      stochasticCosts.put(tableName, costs);
    }
  }
Reports stochastic load balancer costs to JMX
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/master/balancer/MetricsStochasticBalancerSourceImpl.java