Provider<MonitoringStatistics> statistics;
@GET
public String getStats() throws InterruptedException {
final MonitoringStatistics monitoringStatistics = statistics.get();
final ResourceStatistics resourceStatistics = monitoringStatistics.getResourceClassStatistics()
.get(SubResource.class);
if (resourceStatistics == null) {
return "null";
}
String resp = "";
for (Map.Entry<ResourceMethod, ResourceMethodStatistics> entry
: resourceStatistics.getResourceMethodStatistics().entrySet()) {
if (entry.getKey().getHttpMethod().equals("GET")) {
resp = resp + "getFound";
}
}
return resp;