* Set values of counters to match the ones from {@link GlobalStats}
*
* @param globalStats Global statistics which holds new counter values
*/
private void updateCounters(GlobalStats globalStats) {
GiraphStats gs = GiraphStats.getInstance();
gs.getVertices().setValue(globalStats.getVertexCount());
gs.getFinishedVertexes().setValue(globalStats.getFinishedVertexCount());
gs.getEdges().setValue(globalStats.getEdgeCount());
gs.getSentMessages().setValue(globalStats.getMessageCount());
gs.getSentMessageBytes().setValue(globalStats.getMessageBytesCount());
gs.getAggregateSentMessages().increment(globalStats.getMessageCount());
gs.getAggregateSentMessageBytes()
.increment(globalStats.getMessageBytesCount());
}