rLoadSourceBuild.setPeerID(peerId); rLoadSourceBuild.setAgeOfLastShippedOp(ageOfLastShippedOp); rLoadSourceBuild.setSizeOfLogQueue(sizeOfLogQueue);
request.setServer(ProtobufUtil.toServerName(serverName)); ClusterStatusProtos.ReplicationLoadSource rload1 = ClusterStatusProtos.ReplicationLoadSource .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)
request.setServer(ProtobufUtil.toServerName(serverName)); ClusterStatusProtos.ReplicationLoadSource rload1 = ClusterStatusProtos.ReplicationLoadSource .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)
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(); }
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(); }