public class GiraphMetrics extends Object
| Modifier and Type | Method and Description | 
|---|---|
| void | addSuperstepResetObserver(ResetSuperstepMetricsObserver observer)Anyone using per-superstep counters needs to re-initialize their Metrics
 object on each new superstep. | 
| void | dumpToStream(PrintStream out)Dump all metrics to output stream provided. | 
| static GiraphMetrics | get()Get singleton instance of GiraphMetrics. | 
| GcTracker | getGcTracker()Get GC tracker | 
| static void | init(GiraphConfiguration conf)Initialize singleton instance of GiraphMetrics. | 
| GiraphMetricsRegistry | perJobOptional()Get per-job optional metrics. | 
| GiraphMetricsRegistry | perJobRequired()Get per-job required metrics. | 
| SuperstepMetricsRegistry | perSuperstep()Get per-superstep metrics. | 
| void | resetSuperstepMetrics(long superstep)Reset the per-superstep MetricsRegistry | 
| void | shutdown()Stop using metrics (for cleanup) | 
public static GiraphMetrics get()
public static void init(GiraphConfiguration conf)
conf - GiraphConfiguration to use.public GiraphMetricsRegistry perJobOptional()
GiraphMetricsRegistrypublic GiraphMetricsRegistry perJobRequired()
GiraphMetricsRegistrypublic SuperstepMetricsRegistry perSuperstep()
public GcTracker getGcTracker()
public void addSuperstepResetObserver(ResetSuperstepMetricsObserver observer)
observer - SuperstepObserver to watchpublic void resetSuperstepMetrics(long superstep)
superstep - long number of supersteppublic void dumpToStream(PrintStream out)
out - PrintStream to dump to.public void shutdown()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.