public class GlobalStats extends Object implements org.apache.hadoop.io.Writable
Constructor and Description |
---|
GlobalStats() |
Modifier and Type | Method and Description |
---|---|
void |
addMessageBytesCount(long msgBytesCount)
Add messages to the global stats.
|
void |
addMessageCount(long messageCount)
Add messages to the global stats.
|
void |
addOocLoadBytesCount(long oocLoadBytesCount)
Add bytes loaded to the global stats.
|
void |
addOocStoreBytesCount(long oocStoreBytesCount)
Add bytes stored to the global stats.
|
void |
addPartitionStats(PartitionStats partitionStats)
Add the stats of a partition to the global stats.
|
CheckpointStatus |
getCheckpointStatus() |
long |
getEdgeCount() |
long |
getFinishedVertexCount() |
boolean |
getHaltComputation() |
int |
getLowestGraphPercentageInMemory() |
long |
getMessageBytesCount() |
long |
getMessageCount() |
long |
getOocLoadBytesCount() |
long |
getOocStoreBytesCount() |
long |
getVertexCount() |
void |
readFields(DataInput input) |
void |
setCheckpointStatus(CheckpointStatus checkpointStatus) |
void |
setHaltComputation(boolean value) |
void |
setLowestGraphPercentageInMemory(int lowestGraphPercentageInMemory) |
String |
toString() |
void |
write(DataOutput output) |
public void addPartitionStats(PartitionStats partitionStats)
partitionStats
- Partition stats to be added.public long getVertexCount()
public long getFinishedVertexCount()
public long getEdgeCount()
public long getMessageCount()
public long getMessageBytesCount()
public boolean getHaltComputation()
public void setHaltComputation(boolean value)
public long getOocStoreBytesCount()
public long getOocLoadBytesCount()
public CheckpointStatus getCheckpointStatus()
public void setCheckpointStatus(CheckpointStatus checkpointStatus)
public int getLowestGraphPercentageInMemory()
public void setLowestGraphPercentageInMemory(int lowestGraphPercentageInMemory)
public void addOocLoadBytesCount(long oocLoadBytesCount)
oocLoadBytesCount
- number of bytes to be addedpublic void addOocStoreBytesCount(long oocStoreBytesCount)
oocStoreBytesCount
- number of bytes to be addedpublic void addMessageCount(long messageCount)
messageCount
- Number of messages to be added.public void addMessageBytesCount(long msgBytesCount)
msgBytesCount
- Number of message bytes to be added.public void readFields(DataInput input) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput output) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.