@ThreadSafe @ThriftStruct public final class WorkerProgress extends WorkerProgressStats
WorkerProgressWriter.computationDone, currentSuperstep, edgeInputSplitsLoaded, edgesLoaded, freeMemoryFraction, freeMemoryMB, loadingEdgesDone, loadingVerticesDone, lowestGraphPercentageInMemory, partitionsComputed, partitionsStored, partitionsToCompute, partitionsToStore, storingDone, taskId, vertexInputSplitsLoaded, verticesComputed, verticesLoaded, verticesStored, verticesToCompute, verticesToStore| Constructor and Description | 
|---|
WorkerProgress()
Public constructor for thrift to create us. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addEdgesLoaded(long edgesLoaded)
Add number of edges loaded 
 | 
void | 
addVerticesComputed(long verticesComputed)
Add number of vertices computed 
 | 
void | 
addVerticesLoaded(long verticesLoaded)
Add number of vertices loaded 
 | 
void | 
addVerticesStored(long verticesStored)
Add number of vertices stored 
 | 
void | 
finishLoadingEdges()
Notify this class that worker finished loading edges 
 | 
void | 
finishLoadingVertices()
Notify this class that worker finished loading vertices 
 | 
void | 
finishStoring()
Notify this class that storing data is done 
 | 
static WorkerProgress | 
get()
Get singleton instance of WorkerProgress. 
 | 
long | 
getCurrentSuperstep()  | 
int | 
getEdgeInputSplitsLoaded()  | 
long | 
getEdgesLoaded()  | 
double | 
getFreeMemoryFraction()  | 
double | 
getFreeMemoryMB()  | 
int | 
getLowestGraphPercentageInMemory()  | 
int | 
getPartitionsComputed()  | 
int | 
getPartitionsStored()  | 
int | 
getPartitionsToCompute()  | 
int | 
getPartitionsToStore()  | 
int | 
getTaskId()  | 
int | 
getVertexInputSplitsLoaded()  | 
long | 
getVerticesComputed()  | 
long | 
getVerticesLoaded()  | 
long | 
getVerticesStored()  | 
long | 
getVerticesToCompute()  | 
long | 
getVerticesToStore()  | 
void | 
incrementEdgeInputSplitsLoaded()
Increment number of edge input splits which were loaded 
 | 
void | 
incrementPartitionsComputed()
Increment number of partitions which were computed 
 | 
void | 
incrementPartitionsStored()
Increment number of partitions which were stored 
 | 
void | 
incrementVertexInputSplitsLoaded()
Increment number of vertex input splits which were loaded 
 | 
boolean | 
isComputationDone()  | 
boolean | 
isComputeSuperstep()  | 
boolean | 
isInputSuperstep()  | 
boolean | 
isLoadingEdgesDone()  | 
boolean | 
isLoadingVerticesDone()  | 
boolean | 
isOutputSuperstep()  | 
boolean | 
isStoringDone()  | 
void | 
setComputationDone(boolean computationDone)  | 
void | 
setCurrentSuperstep(long currentSuperstep)  | 
void | 
setEdgeInputSplitsLoaded(int edgeInputSplitsLoaded)  | 
void | 
setEdgesLoaded(long edgesLoaded)  | 
void | 
setFreeMemoryFraction(double freeMemoryFraction)  | 
void | 
setFreeMemoryMB(double freeMemoryMB)  | 
void | 
setLoadingEdgesDone(boolean loadingEdgesDone)  | 
void | 
setLoadingVerticesDone(boolean loadingVerticesDone)  | 
void | 
setLowestGraphPercentageInMemory(int lowestGraphPercentageInMemory)  | 
void | 
setPartitionsComputed(int partitionsComputed)  | 
void | 
setPartitionsStored(int partitionsStored)  | 
void | 
setPartitionsToCompute(int partitionsToCompute)  | 
void | 
setPartitionsToStore(int partitionsToStore)  | 
void | 
setStoringDone(boolean storingDone)  | 
void | 
setTaskId(int taskId)  | 
void | 
setVertexInputSplitsLoaded(int vertexInputSplitsLoaded)  | 
void | 
setVerticesComputed(long verticesComputed)  | 
void | 
setVerticesLoaded(long verticesLoaded)  | 
void | 
setVerticesStored(long verticesStored)  | 
void | 
setVerticesToCompute(long verticesToCompute)  | 
void | 
setVerticesToStore(long verticesToStore)  | 
void | 
startStoring(long verticesToStore,
            int partitionsToStore)
Notify this class that worker is starting to store data 
 | 
void | 
startSuperstep(long superstep,
              long verticesToCompute,
              int partitionsToCompute)
Notify this class that next computation superstep is starting 
 | 
void | 
updateLowestGraphPercentageInMemory(int fraction)
Update lowest percentage of graph which stayed in memory so far in the
 execution 
 | 
void | 
updateMemory()
Update memory info 
 | 
public WorkerProgress()
public static WorkerProgress get()
public void addVerticesLoaded(long verticesLoaded)
verticesLoaded - How many vertices were loaded since the last
                       time this function was calledpublic void incrementVertexInputSplitsLoaded()
public void finishLoadingVertices()
public void addEdgesLoaded(long edgesLoaded)
edgesLoaded - How many edges were loaded since the last
                    time this function was calledpublic void incrementEdgeInputSplitsLoaded()
public void finishLoadingEdges()
public void startSuperstep(long superstep,
                           long verticesToCompute,
                           int partitionsToCompute)
superstep - Superstep which is startingverticesToCompute - How many vertices are there to computepartitionsToCompute - How many partitions are there to computepublic void addVerticesComputed(long verticesComputed)
verticesComputed - How many vertices were computed since the last
                         time this function was calledpublic void incrementPartitionsComputed()
public void startStoring(long verticesToStore,
                         int partitionsToStore)
verticesToStore - How many vertices should be storedpartitionsToStore - How many partitions should be storedpublic void addVerticesStored(long verticesStored)
verticesStored - How many vertices were stored since the last time
                       this function was calledpublic void incrementPartitionsStored()
public void finishStoring()
public void updateMemory()
public void updateLowestGraphPercentageInMemory(int fraction)
fraction - the fraction of graph in memory so far in this superstep@ThriftField(value=1) public long getCurrentSuperstep()
@ThriftField(value=2) public long getVerticesLoaded()
@ThriftField(value=3) public int getVertexInputSplitsLoaded()
@ThriftField(value=4) public boolean isLoadingVerticesDone()
@ThriftField(value=5) public long getEdgesLoaded()
@ThriftField(value=6) public int getEdgeInputSplitsLoaded()
@ThriftField(value=7) public boolean isLoadingEdgesDone()
@ThriftField(value=8) public long getVerticesToCompute()
@ThriftField(value=9) public long getVerticesComputed()
@ThriftField(value=10) public int getPartitionsToCompute()
@ThriftField(value=11) public int getPartitionsComputed()
@ThriftField(value=12) public boolean isComputationDone()
@ThriftField(value=13) public long getVerticesToStore()
@ThriftField(value=14) public long getVerticesStored()
@ThriftField(value=15) public int getPartitionsToStore()
@ThriftField(value=16) public int getPartitionsStored()
@ThriftField(value=17) public boolean isStoringDone()
@ThriftField(value=18) public int getTaskId()
@ThriftField(value=19) public double getFreeMemoryMB()
@ThriftField(value=20) public double getFreeMemoryFraction()
@ThriftField(value=21) public int getLowestGraphPercentageInMemory()
public boolean isInputSuperstep()
isInputSuperstep in class WorkerProgressStatspublic boolean isComputeSuperstep()
isComputeSuperstep in class WorkerProgressStatspublic boolean isOutputSuperstep()
isOutputSuperstep in class WorkerProgressStats@ThriftField public void setCurrentSuperstep(long currentSuperstep)
@ThriftField public void setVerticesLoaded(long verticesLoaded)
@ThriftField public void setVertexInputSplitsLoaded(int vertexInputSplitsLoaded)
@ThriftField public void setLoadingVerticesDone(boolean loadingVerticesDone)
@ThriftField public void setEdgesLoaded(long edgesLoaded)
@ThriftField public void setEdgeInputSplitsLoaded(int edgeInputSplitsLoaded)
@ThriftField public void setLoadingEdgesDone(boolean loadingEdgesDone)
@ThriftField public void setVerticesToCompute(long verticesToCompute)
@ThriftField public void setVerticesComputed(long verticesComputed)
@ThriftField public void setPartitionsToCompute(int partitionsToCompute)
@ThriftField public void setPartitionsComputed(int partitionsComputed)
@ThriftField public void setComputationDone(boolean computationDone)
@ThriftField public void setVerticesToStore(long verticesToStore)
@ThriftField public void setVerticesStored(long verticesStored)
@ThriftField public void setPartitionsToStore(int partitionsToStore)
@ThriftField public void setPartitionsStored(int partitionsStored)
@ThriftField public void setStoringDone(boolean storingDone)
@ThriftField public void setFreeMemoryMB(double freeMemoryMB)
@ThriftField public void setFreeMemoryFraction(double freeMemoryFraction)
@ThriftField public void setTaskId(int taskId)
@ThriftField public void setLowestGraphPercentageInMemory(int lowestGraphPercentageInMemory)
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.