public Response getUptimeMs() {
return Response.ok(System.currentTimeMillis() - mWorker.getStartTimeMs()).build();
}
@GET
@Path(GET_METRICS)
<BUG>@ReturnType("java.util.Map<String, Long>")
</BUG>
public Response getMetrics() {
MetricRegistry metricRegistry = mWorker.getWorkerMetricsSystem().getMetricRegistry();
Map<String, Counter> counters = metricRegistry.getCounters();

public Response getUptimeMs() {
return Response.ok(System.currentTimeMillis() - mWorker.getStartTimeMs()).build();
}
@GET
@Path(GET_METRICS)
@ReturnType("java.util.SortedMap<String, Long>")
public Response getMetrics() {
MetricRegistry metricRegistry = mWorker.getWorkerMetricsSystem().getMetricRegistry();
Map<String, Counter> counters = metricRegistry.getCounters();
