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
FieldsModifier and TypeFieldDescriptionstatic final ReplicationLoadprivate org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSinkprivate List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource>private MetricsSink -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildReplicationLoad(List<ReplicationSourceInterface> sources, MetricsSink skMetrics) buildReplicationLoadorg.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSinkList<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
-