use of com.google.api.services.dataflow.model.MetricShortId in project beam by apache.
the class CounterShortIdCacheTest method createWorkServiceState.
private List<WorkItemServiceState> createWorkServiceState(MetricShortId[]... counterIds) {
List<WorkItemServiceState> states = new ArrayList<>();
for (MetricShortId[] ids : counterIds) {
WorkItemServiceState state = new WorkItemServiceState();
List<MetricShortId> shortIds = new ArrayList<>();
for (int i = 0; i < ids.length; i++) {
shortIds.add(ids[i]);
}
state.setMetricShortId(shortIds);
states.add(state);
}
return states;
}
Aggregations