private void processResource(final Resource resource, final String pathPrefix) { final StringBuilder pathSB = new StringBuilder(pathPrefix); if (!pathPrefix.endsWith("/") && !resource.getPath().startsWith("/")) { pathSB.append("/"); } pathSB.append(resource.getPath()); uriStatistics.put(pathSB.toString(), new ResourceStatisticsImpl.Builder(resource, methodFactory)); for (final ResourceMethod resourceMethod : resource.getResourceMethods()) { getOrCreateResourceBuilder(resourceMethod).addMethod(resourceMethod); } }
private void processResource(final Resource resource, final String pathPrefix) { final StringBuilder pathSB = new StringBuilder(pathPrefix); if (!pathPrefix.endsWith("/") && !resource.getPath().startsWith("/")) { pathSB.append("/"); } pathSB.append(resource.getPath()); uriStatistics.put(pathSB.toString(), new ResourceStatisticsImpl.Builder(resource, methodFactory)); for (final ResourceMethod resourceMethod : resource.getResourceMethods()) { getOrCreateResourceBuilder(resourceMethod).addMethod(resourceMethod); } }
/** * Add execution of a resource method in the resource. * * @param resourceMethod Resource method executed. * @param methodStartTime Time of execution of the resource method. * @param methodDuration Time spent on execution of resource method itself. * @param requestStartTime Time when the request matching to the executed resource method has been received by Jersey. * @param requestDuration Time of whole request processing (from receiving the request until writing the response). */ void addExecution(final ResourceMethod resourceMethod, final long methodStartTime, final long methodDuration, final long requestStartTime, final long requestDuration) { cached = null; if (resourceExecutionStatisticsBuilder.get() == null) { resourceExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } resourceExecutionStatisticsBuilder.get().addExecution(methodStartTime, methodDuration); if (requestExecutionStatisticsBuilder.get() == null) { requestExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } requestExecutionStatisticsBuilder.get().addExecution(requestStartTime, requestDuration); addMethod(resourceMethod); }
/** * Add execution of a resource method in the resource. * * @param resourceMethod Resource method executed. * @param methodStartTime Time of execution of the resource method. * @param methodDuration Time spent on execution of resource method itself. * @param requestStartTime Time when the request matching to the executed resource method has been received by Jersey. * @param requestDuration Time of whole request processing (from receiving the request until writing the response). */ void addExecution(final ResourceMethod resourceMethod, final long methodStartTime, final long methodDuration, final long requestStartTime, final long requestDuration) { cached = null; if (resourceExecutionStatisticsBuilder.get() == null) { resourceExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } resourceExecutionStatisticsBuilder.get().addExecution(methodStartTime, methodDuration); if (requestExecutionStatisticsBuilder.get() == null) { requestExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } requestExecutionStatisticsBuilder.get().addExecution(requestStartTime, requestDuration); addMethod(resourceMethod); }
/** * Add execution of a resource method in the resource. * * @param resourceMethod Resource method executed. * @param methodStartTime Time of execution of the resource method. * @param methodDuration Time spent on execution of resource method itself. * @param requestStartTime Time when the request matching to the executed resource method has been received by Jersey. * @param requestDuration Time of whole request processing (from receiving the request until writing the response). */ void addExecution(final ResourceMethod resourceMethod, final long methodStartTime, final long methodDuration, final long requestStartTime, final long requestDuration) { cached = null; if (resourceExecutionStatisticsBuilder.get() == null) { resourceExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } resourceExecutionStatisticsBuilder.get().addExecution(methodStartTime, methodDuration); if (requestExecutionStatisticsBuilder.get() == null) { requestExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } requestExecutionStatisticsBuilder.get().addExecution(requestStartTime, requestDuration); addMethod(resourceMethod); }
/** * Add execution of a resource method in the resource. * * @param resourceMethod Resource method executed. * @param methodStartTime Time of execution of the resource method. * @param methodDuration Time spent on execution of resource method itself. * @param requestStartTime Time when the request matching to the executed resource method has been received by Jersey. * @param requestDuration Time of whole request processing (from receiving the request until writing the response). */ void addExecution(final ResourceMethod resourceMethod, final long methodStartTime, final long methodDuration, final long requestStartTime, final long requestDuration) { cached = null; if (resourceExecutionStatisticsBuilder.get() == null) { resourceExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } resourceExecutionStatisticsBuilder.get().addExecution(methodStartTime, methodDuration); if (requestExecutionStatisticsBuilder.get() == null) { requestExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } requestExecutionStatisticsBuilder.get().addExecution(requestStartTime, requestDuration); addMethod(resourceMethod); }
/** * Add execution of a resource method in the resource. * * @param resourceMethod Resource method executed. * @param methodStartTime Time of execution of the resource method. * @param methodDuration Time spent on execution of resource method itself. * @param requestStartTime Time when the request matching to the executed resource method has been received by Jersey. * @param requestDuration Time of whole request processing (from receiving the request until writing the response). */ void addExecution(final ResourceMethod resourceMethod, final long methodStartTime, final long methodDuration, final long requestStartTime, final long requestDuration) { cached = null; if (resourceExecutionStatisticsBuilder.get() == null) { resourceExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } resourceExecutionStatisticsBuilder.get().addExecution(methodStartTime, methodDuration); if (requestExecutionStatisticsBuilder.get() == null) { requestExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } requestExecutionStatisticsBuilder.get().addExecution(requestStartTime, requestDuration); addMethod(resourceMethod); }
private void processResource(final Resource resource, final String pathPrefix) { final StringBuilder pathSB = new StringBuilder(pathPrefix); if (!pathPrefix.endsWith("/") && !resource.getPath().startsWith("/")) { pathSB.append("/"); } pathSB.append(resource.getPath()); uriStatistics.put(pathSB.toString(), new ResourceStatisticsImpl.Builder(resource, methodFactory)); for (final ResourceMethod resourceMethod : resource.getResourceMethods()) { getOrCreateResourceBuilder(resourceMethod).addMethod(resourceMethod); } }
private void processResource(final Resource resource, final String pathPrefix) { final StringBuilder pathSB = new StringBuilder(pathPrefix); if (!pathPrefix.endsWith("/") && !resource.getPath().startsWith("/")) { pathSB.append("/"); } pathSB.append(resource.getPath()); uriStatistics.put(pathSB.toString(), new ResourceStatisticsImpl.Builder(resource, methodFactory)); for (final ResourceMethod resourceMethod : resource.getResourceMethods()) { getOrCreateResourceBuilder(resourceMethod).addMethod(resourceMethod); } }
private void processResource(final Resource resource, final String pathPrefix) { final StringBuilder pathSB = new StringBuilder(pathPrefix); if (!pathPrefix.endsWith("/") && !resource.getPath().startsWith("/")) { pathSB.append("/"); } pathSB.append(resource.getPath()); uriStatistics.put(pathSB.toString(), new ResourceStatisticsImpl.Builder(resource, methodFactory)); for (final ResourceMethod resourceMethod : resource.getResourceMethods()) { getOrCreateResourceBuilder(resourceMethod).addMethod(resourceMethod); } }
private void processResource(final Resource resource, final String pathPrefix) { final StringBuilder pathSB = new StringBuilder(pathPrefix); if (!pathPrefix.endsWith("/") && !resource.getPath().startsWith("/")) { pathSB.append("/"); } pathSB.append(resource.getPath()); uriStatistics.put(pathSB.toString(), new ResourceStatisticsImpl.Builder(resource, methodFactory)); for (final ResourceMethod resourceMethod : resource.getResourceMethods()) { getOrCreateResourceBuilder(resourceMethod).addMethod(resourceMethod); } }
/** * Add execution of a resource method in the resource. * * @param resourceMethod Resource method executed. * @param methodStartTime Time of execution of the resource method. * @param methodDuration Time spent on execution of resource method itself. * @param requestStartTime Time when the request matching to the executed resource method has been received by Jersey. * @param requestDuration Time of whole request processing (from receiving the request until writing the response). */ void addExecution(final ResourceMethod resourceMethod, final long methodStartTime, final long methodDuration, final long requestStartTime, final long requestDuration) { cached = null; if (resourceExecutionStatisticsBuilder.get() == null) { resourceExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } resourceExecutionStatisticsBuilder.get().addExecution(methodStartTime, methodDuration); if (requestExecutionStatisticsBuilder.get() == null) { requestExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } requestExecutionStatisticsBuilder.get().addExecution(requestStartTime, requestDuration); addMethod(resourceMethod); }
private void processResource(final Resource resource, final String pathPrefix) { final StringBuilder pathSB = new StringBuilder(pathPrefix); if (!pathPrefix.endsWith("/") && !resource.getPath().startsWith("/")) { pathSB.append("/"); } pathSB.append(resource.getPath()); uriStatistics.put(pathSB.toString(), new ResourceStatisticsImpl.Builder(resource, methodFactory)); for (final ResourceMethod resourceMethod : resource.getResourceMethods()) { getOrCreateResourceBuilder(resourceMethod).addMethod(resourceMethod); } }
/** * Add execution of a resource method in the resource. * * @param resourceMethod Resource method executed. * @param methodStartTime Time of execution of the resource method. * @param methodDuration Time spent on execution of resource method itself. * @param requestStartTime Time when the request matching to the executed resource method has been received by Jersey. * @param requestDuration Time of whole request processing (from receiving the request until writing the response). */ void addExecution(final ResourceMethod resourceMethod, final long methodStartTime, final long methodDuration, final long requestStartTime, final long requestDuration) { cached = null; if (resourceExecutionStatisticsBuilder.get() == null) { resourceExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } resourceExecutionStatisticsBuilder.get().addExecution(methodStartTime, methodDuration); if (requestExecutionStatisticsBuilder.get() == null) { requestExecutionStatisticsBuilder.compareAndSet(null, new ExecutionStatisticsImpl.Builder()); } requestExecutionStatisticsBuilder.get().addExecution(requestStartTime, requestDuration); addMethod(resourceMethod); }