Exemplo n.º 1
0
 /**
  * Initialize GiraphMetrics with Hadoop Context
  *
  * @param conf GiraphConfiguration to use.
  */
 private GiraphMetrics(GiraphConfiguration conf) {
   perJobOptional = GiraphMetricsRegistry.create(conf, "giraph", "job");
   perSuperstep = SuperstepMetricsRegistry.create(conf, INPUT_SUPERSTEP);
   perJobRequired = GiraphMetricsRegistry.createWithOptional("giraph", "job");
 }
Exemplo n.º 2
0
 /** Stop using metrics (for cleanup) */
 public void shutdown() {
   perJobOptional.shutdown();
   perJobRequired.shutdown();
   perSuperstep.shutdown();
 }
Exemplo n.º 3
0
 /** Initialize no-op registry that creates no-op metrics. */
 private GiraphMetrics() {
   perJobOptional = GiraphMetricsRegistry.createFake();
   perSuperstep = SuperstepMetricsRegistry.createFake();
   perJobRequired = GiraphMetricsRegistry.createWithOptional("giraph", "job");
 }
Exemplo n.º 4
0
 /**
  * Dump all metrics to output stream provided.
  *
  * @param out PrintStream to dump to.
  */
 public void dumpToStream(PrintStream out) {
   perJobOptional.printToStream(out);
   perJobRequired.printToStream(out);
 }