public class BlockCounters extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static Counter | getCounter(org.apache.hadoop.mapreduce.Mapper.Context context,
          String group,
          String name) | 
| static Counter | getNoOpCounter() | 
| static void | setMasterTimeCounter(PairedPieceAndStage<?> masterPiece,
                    long superstep,
                    long millis,
                    StatusReporter reporter,
                    BlockMasterLogic.TimeStatsPerEvent timeStats) | 
| static void | setStageCounters(String prefix,
                Object stage,
                StatusReporter reporter)Takes all fields from stage object, and puts them into counters,
 if possible. | 
| static void | setWorkerTimeCounter(BlockWorkerPieces<?> workerPieces,
                    long superstep,
                    long millis,
                    StatusReporter reporter,
                    BlockMasterLogic.TimeStatsPerEvent timeStats) | 
public static final String GROUP
public static void setStageCounters(String prefix, Object stage, StatusReporter reporter)
public static void setMasterTimeCounter(PairedPieceAndStage<?> masterPiece, long superstep, long millis, StatusReporter reporter, BlockMasterLogic.TimeStatsPerEvent timeStats)
public static void setWorkerTimeCounter(BlockWorkerPieces<?> workerPieces, long superstep, long millis, StatusReporter reporter, BlockMasterLogic.TimeStatsPerEvent timeStats)
public static Counter getCounter(org.apache.hadoop.mapreduce.Mapper.Context context, String group, String name)
public static Counter getNoOpCounter()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.