rLoadSourceBuild.setReplicationLag(replicationLag); replicationLoadSourceMap.put(peerId, rLoadSourceBuild.build());
/** * <pre> ** * The replicationLoadSource for the replication Source status of this region server. * </pre> * * <code>repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10;</code> */ public Builder addReplLoadSource( int index, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.Builder builderForValue) { if (replLoadSourceBuilder_ == null) { ensureReplLoadSourceIsMutable(); replLoadSource_.add(index, builderForValue.build()); onChanged(); } else { replLoadSourceBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> ** * The replicationLoadSource for the replication Source status of this region server. * </pre> * * <code>repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10;</code> */ public Builder addReplLoadSource( org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.Builder builderForValue) { if (replLoadSourceBuilder_ == null) { ensureReplLoadSourceIsMutable(); replLoadSource_.add(builderForValue.build()); onChanged(); } else { replLoadSourceBuilder_.addMessage(builderForValue.build()); } return this; } /**
.newBuilder().setPeerID(peer1).setAgeOfLastShippedOp(ageOfLastShippedOp) .setReplicationLag(replicationLag).setTimeStampOfLastShippedOp(timeStampOfLastShippedOp) .setSizeOfLogQueue(sizeOfLogQueue).build(); ClusterStatusProtos.ReplicationLoadSource rload2 = ClusterStatusProtos.ReplicationLoadSource.newBuilder().setPeerID(peer2) .setAgeOfLastShippedOp(ageOfLastShippedOp + 1).setReplicationLag(replicationLag + 1) .setTimeStampOfLastShippedOp(timeStampOfLastShippedOp + 1) .setSizeOfLogQueue(sizeOfLogQueue + 1).build(); ClusterStatusProtos.ServerLoad sl = ClusterStatusProtos.ServerLoad.newBuilder() .addReplLoadSource(rload1).addReplLoadSource(rload2).build();
/** * <pre> ** * The replicationLoadSource for the replication Source status of this region server. * </pre> * * <code>repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10;</code> */ public Builder addReplLoadSource( org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.Builder builderForValue) { if (replLoadSourceBuilder_ == null) { ensureReplLoadSourceIsMutable(); replLoadSource_.add(builderForValue.build()); onChanged(); } else { replLoadSourceBuilder_.addMessage(builderForValue.build()); } return this; } /**
/** * <pre> ** * The replicationLoadSource for the replication Source status of this region server. * </pre> * * <code>repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10;</code> */ public Builder setReplLoadSource( int index, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.Builder builderForValue) { if (replLoadSourceBuilder_ == null) { ensureReplLoadSourceIsMutable(); replLoadSource_.set(index, builderForValue.build()); onChanged(); } else { replLoadSourceBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
/** * <pre> ** * The replicationLoadSource for the replication Source status of this region server. * </pre> * * <code>repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10;</code> */ public Builder addReplLoadSource( int index, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.Builder builderForValue) { if (replLoadSourceBuilder_ == null) { ensureReplLoadSourceIsMutable(); replLoadSource_.add(index, builderForValue.build()); onChanged(); } else { replLoadSourceBuilder_.addMessage(index, builderForValue.build()); } return this; } /**
public static ClusterStatusProtos.ReplicationLoadSource toReplicationLoadSource( ReplicationLoadSource rls) { return ClusterStatusProtos.ReplicationLoadSource.newBuilder() .setPeerID(rls.getPeerID()) .setAgeOfLastShippedOp(rls.getAgeOfLastShippedOp()) .setSizeOfLogQueue((int) rls.getSizeOfLogQueue()) .setTimeStampOfLastShippedOp(rls.getTimestampOfLastShippedOp()) .setReplicationLag(rls.getReplicationLag()) .build(); }
public static ClusterStatusProtos.ReplicationLoadSource toReplicationLoadSource( ReplicationLoadSource rls) { return ClusterStatusProtos.ReplicationLoadSource.newBuilder() .setPeerID(rls.getPeerID()) .setAgeOfLastShippedOp(rls.getAgeOfLastShippedOp()) .setSizeOfLogQueue((int) rls.getSizeOfLogQueue()) .setTimeStampOfLastShippedOp(rls.getTimestampOfLastShippedOp()) .setReplicationLag(rls.getReplicationLag()) .build(); }
.newBuilder().setPeerID(peer1).setAgeOfLastShippedOp(ageOfLastShippedOp) .setReplicationLag(replicationLag).setTimeStampOfLastShippedOp(timeStampOfLastShippedOp) .setSizeOfLogQueue(sizeOfLogQueue).build(); ClusterStatusProtos.ReplicationLoadSource rload2 = ClusterStatusProtos.ReplicationLoadSource.newBuilder().setPeerID(peer2) .setAgeOfLastShippedOp(ageOfLastShippedOp + 1).setReplicationLag(replicationLag + 1) .setTimeStampOfLastShippedOp(timeStampOfLastShippedOp + 1) .setSizeOfLogQueue(sizeOfLogQueue + 1).build(); ClusterStatusProtos.ServerLoad sl = ClusterStatusProtos.ServerLoad.newBuilder() .addReplLoadSource(rload1).addReplLoadSource(rload2).build();
/** * <pre> ** * The replicationLoadSource for the replication Source status of this region server. * </pre> * * <code>repeated .hbase.pb.ReplicationLoadSource replLoadSource = 10;</code> */ public Builder setReplLoadSource( int index, org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.Builder builderForValue) { if (replLoadSourceBuilder_ == null) { ensureReplLoadSourceIsMutable(); replLoadSource_.set(index, builderForValue.build()); onChanged(); } else { replLoadSourceBuilder_.setMessage(index, builderForValue.build()); } return this; } /**
public static ClusterStatusProtos.ReplicationLoadSource toReplicationLoadSource( ReplicationLoadSource rls) { return ClusterStatusProtos.ReplicationLoadSource.newBuilder() .setPeerID(rls.getPeerID()) .setAgeOfLastShippedOp(rls.getAgeOfLastShippedOp()) .setSizeOfLogQueue((int) rls.getSizeOfLogQueue()) .setTimeStampOfLastShippedOp(rls.getTimestampOfLastShippedOp()) .setReplicationLag(rls.getReplicationLag()) .build(); }