List of usage examples for org.apache.hadoop.mapreduce.v2.api.protocolrecords GetCountersResponse setCounters
public abstract void setCounters(Counters counters);
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 }