Class ReplicationLoad
java.lang.Object
org.apache.hadoop.hbase.replication.regionserver.ReplicationLoad
This class is used for exporting some of the info from replication metrics
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ReplicationLoad
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink
private List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource>
private MetricsSink
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildReplicationLoad
(List<ReplicationSourceInterface> sources, MetricsSink skMetrics) buildReplicationLoadorg.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink
List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource>
sinkToStringsourceToStringtoString()
-
Field Details
-
EMPTY_REPLICATIONLOAD
-
sinkMetrics
-
replicationLoadSourceEntries
private List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource> replicationLoadSourceEntries -
replicationLoadSink
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink replicationLoadSink
-
-
Constructor Details
-
ReplicationLoad
public ReplicationLoad()default constructor
-
-
Method Details
-
buildReplicationLoad
buildReplicationLoad- Parameters:
sources
- List of ReplicationSource instances for which metrics should be reported
-
sourceToString
sourceToString- Returns:
- a string contains sourceReplicationLoad information
-
sinkToString
sinkToString- Returns:
- a string contains sinkReplicationLoad information
-
getReplicationLoadSink
public org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink getReplicationLoadSink() -
getReplicationLoadSourceEntries
public List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource> getReplicationLoadSourceEntries() -
toString
-