public void shipBatch(long batchSize, int sizeInBytes) {
    singleSourceSource.incrBatchesShipped(1);
    globalSourceSource.incrBatchesShipped(1);

    singleSourceSource.incrOpsShipped(batchSize);
    globalSourceSource.incrOpsShipped(batchSize);

    singleSourceSource.incrShippedBytes(sizeInBytes);
    globalSourceSource.incrShippedBytes(sizeInBytes);
  }
Convience method to apply changes to metrics do to shipping a batch of logs.
@param batchSize the size of the batch that was shipped to sinks.
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/MetricsSource.java