infraio commented on a change in pull request #2364: URL: https://github.com/apache/hbase/pull/2364#discussion_r485303149
########## File path: hbase-server/src/main/java/org/apache/hadoop/hbase/replication/ReplicationSourceOverallController.java ########## @@ -0,0 +1,31 @@ +package org.apache.hadoop.hbase.replication; + +import org.apache.hadoop.hbase.replication.regionserver.MetricsReplicationGlobalSourceSource; +import org.apache.hadoop.hbase.replication.regionserver.RecoveredReplicationSource; +import org.apache.yetus.audience.InterfaceAudience; + +import java.util.concurrent.atomic.AtomicLong; + +/** + * Used to control all replication sources inside one RegionServer or ReplicationServer. + * Used by {@link ReplicationSource} or {@link RecoveredReplicationSource}. + */ +@InterfaceAudience.Private +public interface ReplicationSourceOverallController { + + /** + * Returns the maximum size in bytes of edits held in memory which are pending replication + * across all sources inside this RegionServer or ReplicationServer. + */ + long getTotalBufferLimit(); + + AtomicLong getTotalBufferUsed(); + + MetricsReplicationGlobalSourceSource getGlobalMetrics(); Review comment: Yes. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org