Class SuperstepStat
- java.lang.Object
-
- org.apache.hugegraph.computer.core.graph.SuperstepStat
-
- All Implemented Interfaces:
org.apache.hugegraph.computer.core.io.Readable,org.apache.hugegraph.computer.core.io.Writable
public class SuperstepStat extends java.lang.Object implements org.apache.hugegraph.computer.core.io.Readable, org.apache.hugegraph.computer.core.io.WritableIt is sent from master to workers.
-
-
Constructor Summary
Constructors Constructor Description SuperstepStat()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanactive()longedgeCount()booleanequals(java.lang.Object obj)longfinishedVertexCount()static SuperstepStatfrom(java.util.List<WorkerStat> workerStats)inthashCode()voidinactivate()voidincrease(PartitionStat partitionStat)voidincrease(WorkerStat workerStat)longmessageRecvBytes()longmessageRecvCount()longmessageSendBytes()longmessageSendCount()voidread(org.apache.hugegraph.computer.core.io.RandomAccessInput in)java.lang.StringtoString()longvertexCount()voidwrite(org.apache.hugegraph.computer.core.io.RandomAccessOutput out)
-
-
-
Method Detail
-
increase
public void increase(PartitionStat partitionStat)
-
increase
public void increase(WorkerStat workerStat)
-
vertexCount
public long vertexCount()
-
edgeCount
public long edgeCount()
-
finishedVertexCount
public long finishedVertexCount()
-
messageSendCount
public long messageSendCount()
-
messageSendBytes
public long messageSendBytes()
-
messageRecvCount
public long messageRecvCount()
-
messageRecvBytes
public long messageRecvBytes()
-
inactivate
public void inactivate()
-
active
public boolean active()
-
read
public void read(org.apache.hugegraph.computer.core.io.RandomAccessInput in) throws java.io.IOException- Specified by:
readin interfaceorg.apache.hugegraph.computer.core.io.Readable- Throws:
java.io.IOException
-
write
public void write(org.apache.hugegraph.computer.core.io.RandomAccessOutput out) throws java.io.IOException- Specified by:
writein interfaceorg.apache.hugegraph.computer.core.io.Writable- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
from
public static SuperstepStat from(java.util.List<WorkerStat> workerStats)
-
-