@NotThreadSafe public class CombinedWorkerProgress extends WorkerProgressStats
Modifier and Type | Field and Description |
---|---|
static DecimalFormat |
DECIMAL_FORMAT
Decimal format which rounds numbers to two decimal places
|
static FloatConfOption |
NORMAL_FREE_MEMORY_FRACTION
If free memory fraction on some worker goes below this value,
warning will be printed
|
computationDone, currentSuperstep, edgeInputSplitsLoaded, edgesLoaded, freeMemoryFraction, freeMemoryMB, loadingEdgesDone, loadingVerticesDone, lowestGraphPercentageInMemory, partitionsComputed, partitionsStored, partitionsToCompute, partitionsToStore, storingDone, taskId, vertexInputSplitsLoaded, verticesComputed, verticesLoaded, verticesStored, verticesToCompute, verticesToStore
Constructor and Description |
---|
CombinedWorkerProgress(Iterable<WorkerProgress> workerProgresses,
MasterProgress masterProgress,
org.apache.hadoop.conf.Configuration conf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getCurrentSuperstep()
Get Current superstep
|
protected String |
getProgressString()
Get string describing total job progress
|
long |
getVerticesComputed()
Get vertices computed
|
long |
getVerticesToCompute()
Get vertices to compute
|
long |
getWorkersInSuperstep()
Get workers in superstep
|
boolean |
isDone(int expectedWorkersDone)
Is the application done
|
boolean |
madeProgressFrom(CombinedWorkerProgress lastProgress)
Check if this instance made progress from another instance
|
String |
toString() |
isComputeSuperstep, isInputSuperstep, isOutputSuperstep
public static final DecimalFormat DECIMAL_FORMAT
public static final FloatConfOption NORMAL_FREE_MEMORY_FRACTION
public CombinedWorkerProgress(Iterable<WorkerProgress> workerProgresses, MasterProgress masterProgress, org.apache.hadoop.conf.Configuration conf)
workerProgresses
- Worker progresses to combinemasterProgress
- Master progressconf
- Configurationpublic long getCurrentSuperstep()
public long getWorkersInSuperstep()
public long getVerticesComputed()
public long getVerticesToCompute()
public boolean isDone(int expectedWorkersDone)
expectedWorkersDone
- Number of workers which should be done in
order for application to be doneprotected String getProgressString()
public boolean madeProgressFrom(CombinedWorkerProgress lastProgress)
lastProgress
- Instance to compare withCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.