Constructor and Description |
---|
PartitionStats()
Default constructor for reflection.
|
PartitionStats(int partitionId,
long vertexCount,
long finishedVertexCount,
long edgeCount,
long messagesSentCount,
long messageBytesSentCount,
String workerHostnameId)
Constructor with the initial stats.
|
Modifier and Type | Method and Description |
---|---|
void |
addEdgeCount(long edgeCount)
Add edges to the edge count.
|
void |
addMessageBytesSentCount(long messageBytesSentCount)
Add message bytes to messageBytesSentCount.
|
void |
addMessagesSentCount(long messagesSentCount)
Add messages to the messages sent count.
|
long |
getComputeMs() |
long |
getEdgeCount()
Get the edge count.
|
long |
getFinishedVertexCount()
Get the finished vertex count.
|
long |
getMessageBytesSentCount()
Get the message bytes sent count.
|
long |
getMessagesSentCount()
Get the messages sent count.
|
int |
getPartitionId()
Get partition id.
|
long |
getVertexCount()
Get the vertex count.
|
String |
getWorkerHostnameId() |
void |
incrFinishedVertexCount()
Increment the finished vertex count by one.
|
void |
incrVertexCount()
Increment the vertex count by one.
|
void |
readFields(DataInput input) |
void |
setComputeMs(long computeMs) |
void |
setPartitionId(int partitionId)
Set the partition id.
|
String |
toString() |
void |
write(DataOutput output) |
public PartitionStats()
public PartitionStats(int partitionId, long vertexCount, long finishedVertexCount, long edgeCount, long messagesSentCount, long messageBytesSentCount, String workerHostnameId)
partitionId
- Partition count.vertexCount
- Vertex count.finishedVertexCount
- Finished vertex count.edgeCount
- Edge count.messagesSentCount
- Number of messages sentmessageBytesSentCount
- Number of message bytes sentworkerHostnameId
- Hostname and id of worker owning this partitionpublic void setPartitionId(int partitionId)
partitionId
- New partition id.public int getPartitionId()
public void incrVertexCount()
public long getVertexCount()
public void incrFinishedVertexCount()
public long getFinishedVertexCount()
public void addEdgeCount(long edgeCount)
edgeCount
- Number of edges to add.public long getEdgeCount()
public void addMessagesSentCount(long messagesSentCount)
messagesSentCount
- Number of messages to add.public long getMessagesSentCount()
public void addMessageBytesSentCount(long messageBytesSentCount)
messageBytesSentCount
- Number of message bytes to add.public long getMessageBytesSentCount()
public long getComputeMs()
public void setComputeMs(long computeMs)
public String getWorkerHostnameId()
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.