Package com.codahale.metrics.health.jvm

Examples of com.codahale.metrics.health.jvm.ThreadDeadlockHealthCheck


@Singleton
public class DeadlockHealthCheckProvider
  implements Provider<HealthCheck>
{
  public HealthCheck get() {
    return new ThreadDeadlockHealthCheck();
  }
View Full Code Here


     */
    public AdminEnvironment(MutableServletContextHandler handler,
                            HealthCheckRegistry healthChecks, MetricRegistry metricRegistry) {
        super(handler);
        this.healthChecks = healthChecks;
        this.healthChecks.register("deadlocks", new ThreadDeadlockHealthCheck());
        this.tasks = new TaskServlet(metricRegistry);
        tasks.add(new GarbageCollectionTask());
        addServlet("tasks", tasks).addMapping("/tasks/*");
        handler.addLifeCycleListener(new AbstractLifeCycle.AbstractLifeCycleListener() {
            @Override
View Full Code Here

      registerAll("jvm.buffers", bufferPoolMetrics, registry);
      registerAll("jvm.gc", new GarbageCollectorMetricSet(), registry);
      registerAll("jvm.memory", new MemoryUsageGaugeSet(), registry);
      registerAll("jvm.threads", new ThreadStatesGaugeSet(), registry);
      register("jvm.fileDescriptorCountRatio", new FileDescriptorRatioGauge(), registry);
      context.getHealthCheckRegistry().register("deadlocks", new ThreadDeadlockHealthCheck());
    }
View Full Code Here

      registerAll("jvm.buffers", bufferPoolMetrics, registry);
      registerAll("jvm.gc", new GarbageCollectorMetricSet(), registry);
      registerAll("jvm.memory", new MemoryUsageGaugeSet(), registry);
      registerAll("jvm.threads", new ThreadStatesGaugeSet(), registry);
      register("jvm.fileDescriptorCountRatio", new FileDescriptorRatioGauge(), registry);
      context.getHealthCheckRegistry().register("deadlocks", new ThreadDeadlockHealthCheck());
    }
View Full Code Here

            metrics.register("jvm.garbage", new GarbageCollectorMetricSet());
            metrics.register("jvm.threads", new ThreadStatesGaugeSet());
            metrics.register("jvm.files", new FileDescriptorRatioGauge());
            metrics.register("jvm.buffers", new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));

            healthChecks.register("threadLocks", new ThreadDeadlockHealthCheck());
        }

        if (RestxContext.Modes.PROD.equals(appSettings.mode())) {
            setupReporters();
        }
View Full Code Here

TOP

Related Classes of com.codahale.metrics.health.jvm.ThreadDeadlockHealthCheck

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.