APISonar


org.apache.hadoop.yarn.server.applicationhistoryservice.metrics.loadsimulator.util.Json.Json

> org > apache > hadoop > yarn > server > applicationhistoryservice > metrics > loadsimulator > util > Json > Json
org APIs apache APIs hadoop APIs yarn APIs server APIs applicationhistoryservice APIs metrics APIs loadsimulator APIs util APIs Json APIs Json APIs

Example 1
public String call() throws Exception {
    AppMetrics hostMetrics = hmg.createMetrics();

    try {
      String request = new Json().serialize(hostMetrics);
      String response = sender.pushMetrics(request);

      return response;
    } catch (IOException e) {
      LOG.error("Error while pushing metrics: ", e);
      throw e;
    }

  }