@InterfaceAudience.Private public class StartupProgressMetrics extends Object implements MetricsSource
StartupProgress to a MetricsSource to expose its
information via JMX.| Constructor and Description |
|---|
StartupProgressMetrics(StartupProgress startupProgress)
Creates a new StartupProgressMetrics registered with the metrics system.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getMetrics(MetricsCollector collector,
boolean all)
Get metrics from the source
|
static void |
register(StartupProgress prog)
Registers StartupProgressMetrics linked to the given StartupProgress.
|
public StartupProgressMetrics(StartupProgress startupProgress)
startupProgress - StartupProgress to linkpublic static void register(StartupProgress prog)
prog - StartupProgress to linkpublic void getMetrics(MetricsCollector collector, boolean all)
MetricsSourcegetMetrics in interface MetricsSourcecollector - to contain the resulting metrics snapshotall - if true, return all metrics even if unchanged.Copyright © 2013 Apache Software Foundation. All rights reserved.