Class JvmThreadCollector
java.lang.Object
io.fluxzero.sdk.tracking.metrics.host.collectors.JvmThreadCollector
- All Implemented Interfaces:
MetricCollector<JvmThreadMetrics>
Collector for JVM thread metrics using JMX.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollect()Collects metrics.booleanChecks if this collector is available on the current platform.
-
Constructor Details
-
JvmThreadCollector
public JvmThreadCollector()
-
-
Method Details
-
collect
Description copied from interface:MetricCollectorCollects metrics.- Specified by:
collectin interfaceMetricCollector<JvmThreadMetrics>- Returns:
- an Optional containing the collected metrics, or empty if collection failed or the metrics are not available on this platform
-
isAvailable
public boolean isAvailable()Description copied from interface:MetricCollectorChecks if this collector is available on the current platform.This method should return quickly and may cache its result.
- Specified by:
isAvailablein interfaceMetricCollector<JvmThreadMetrics>- Returns:
- true if this collector can collect metrics on the current platform
-