Class ThreadStatesGaugeSet
java.lang.Object
com.codahale.metrics.jvm.ThreadStatesGaugeSet
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new set of gauges using the default MXBeans.ThreadStatesGaugeSet(ThreadMXBean threads, ThreadDeadlockDetector deadlockDetector) Creates a new set of gauges using the given MXBean and detector. -
Method Summary
Modifier and TypeMethodDescriptionA map of metric names to metrics.private intgetThreadCount(Thread.State state)
-
Field Details
-
threads
-
deadlockDetector
-
-
Constructor Details
-
ThreadStatesGaugeSet
public ThreadStatesGaugeSet()Creates a new set of gauges using the default MXBeans. -
ThreadStatesGaugeSet
Creates a new set of gauges using the given MXBean and detector.- Parameters:
threads- a thread MXBeandeadlockDetector- a deadlock detector
-
-
Method Details
-
getMetrics
-
getThreadCount
-