Example usage for org.apache.hadoop.mapreduce.v2.api.protocolrecords GetCountersResponse setCounters

List of usage examples for org.apache.hadoop.mapreduce.v2.api.protocolrecords GetCountersResponse setCounters

Introduction

In this page you can find the example usage for org.apache.hadoop.mapreduce.v2.api.protocolrecords GetCountersResponse setCounters.

Prototype

public abstract void setCounters(Counters counters);

Source Link

Usage

From source file:org.apache.tez.mapreduce.client.NotRunningJob.java

License:Apache License

@Override
public GetCountersResponse getCounters(GetCountersRequest request) throws IOException {
    GetCountersResponse resp = recordFactory.newRecordInstance(GetCountersResponse.class);
    Counters counters = recordFactory.newRecordInstance(Counters.class);
    counters.addAllCounterGroups(new HashMap<String, CounterGroup>());
    resp.setCounters(counters);
    return resp;//from  w  w w  .  j  ava  2s  .  com
}