@InterfaceAudience.Private public class ReplicationLoad extends Object
Modifier and Type | Field and Description |
---|---|
static ReplicationLoad |
EMPTY_REPLICATIONLOAD |
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink |
replicationLoadSink |
private List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource> |
replicationLoadSourceList |
private MetricsSink |
sinkMetrics |
private List<MetricsSource> |
sourceMetricsList |
Constructor and Description |
---|
ReplicationLoad()
default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildReplicationLoad(List<MetricsSource> srMetricsList,
MetricsSink skMetrics)
buildReplicationLoad
|
(package private) static long |
calculateReplicationDelay(long ageOfLastShippedOp,
long timeStampOfLastShippedOp,
int sizeOfLogQueue) |
org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink |
getReplicationLoadSink() |
List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource> |
getReplicationLoadSourceList() |
String |
sinkToString()
sinkToString
|
String |
sourceToString()
sourceToString
|
String |
toString() |
public static final ReplicationLoad EMPTY_REPLICATIONLOAD
private List<MetricsSource> sourceMetricsList
private MetricsSink sinkMetrics
private List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource> replicationLoadSourceList
private org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink replicationLoadSink
public ReplicationLoad()
public void buildReplicationLoad(List<MetricsSource> srMetricsList, MetricsSink skMetrics)
srMetricsList
- skMetrics
- static long calculateReplicationDelay(long ageOfLastShippedOp, long timeStampOfLastShippedOp, int sizeOfLogQueue)
public String sourceToString()
public String sinkToString()
public org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSink getReplicationLoadSink()
public List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource> getReplicationLoadSourceList()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.