public class GiraphTimers extends HadoopCountersBase
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_NAME
Counter group name for the giraph timers
|
static String |
INITIALIZE_MS_NAME
Counter name for initialize msec
|
static String |
SETUP_MS_NAME
Counter name for setup msec
|
static String |
SHUTDOWN_MS_NAME
Counter name for shutdown msec
|
static String |
TOTAL_MS_NAME
Counter name for total msec
|
Modifier and Type | Method and Description |
---|---|
List<CustomCounter> |
getCounterList(long superstep)
Get a map of counter names and values for the given superstep
Counters include Setup, Initialise, Shutdown, Total, and time for
the given superstep
|
GiraphHadoopCounter |
getInitializeMs()
Get counter for initializing the process,
having to wait for a minimum number of processes to be available
before setup step
|
static GiraphTimers |
getInstance()
Get singleton instance.
|
GiraphHadoopCounter |
getSetupMs()
Get counter for setup time in milliseconds
|
GiraphHadoopCounter |
getShutdownMs()
Get counter for shutdown time in milliseconds.
|
GiraphHadoopCounter |
getSuperstepMs(long superstep,
String computationName)
Get counter for superstep time in milliseconds
|
GiraphHadoopCounter |
getTotalMs()
Get counter for total time in milliseconds (doesn't include initialize
time).
|
static void |
init(org.apache.hadoop.mapreduce.Mapper.Context context)
Instantiate with Hadoop Context.
|
Iterator<GiraphHadoopCounter> |
iterator() |
Iterable<GiraphHadoopCounter> |
jobCounters()
Get Iterable through job counters.
|
Map<Long,GiraphHadoopCounter> |
superstepCounters()
Get map of superstep to msec counter.
|
getContext, getCounter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public static final String GROUP_NAME
public static final String SETUP_MS_NAME
public static final String TOTAL_MS_NAME
public static final String SHUTDOWN_MS_NAME
public static final String INITIALIZE_MS_NAME
public static void init(org.apache.hadoop.mapreduce.Mapper.Context context)
context
- Hadoop Context to use.public static GiraphTimers getInstance()
public GiraphHadoopCounter getSetupMs()
public GiraphHadoopCounter getSuperstepMs(long superstep, String computationName)
superstep
- Integer superstep number.computationName
- Name of the computation for display (may be null)public GiraphHadoopCounter getTotalMs()
public GiraphHadoopCounter getShutdownMs()
public GiraphHadoopCounter getInitializeMs()
public Map<Long,GiraphHadoopCounter> superstepCounters()
public Iterable<GiraphHadoopCounter> jobCounters()
public Iterator<GiraphHadoopCounter> iterator()
public List<CustomCounter> getCounterList(long superstep)
superstep
- superstep for which to fetch the GiraphTimerCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.