Codota Logo
ClusterStatusProtos$ReplicationLoadSource$Builder
Code IndexAdd Codota to your IDE (free)

How to use
ClusterStatusProtos$ReplicationLoadSource$Builder
in
org.apache.hadoop.hbase.shaded.protobuf.generated

Best Java code snippets using org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos$ReplicationLoadSource$Builder (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: apache/hbase

/**
 * <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;
}
/**
origin: apache/hbase

rLoadSourceBuild.setPeerID(peerId);
rLoadSourceBuild.setAgeOfLastShippedOp(ageOfLastShippedOp);
rLoadSourceBuild.setSizeOfLogQueue(sizeOfLogQueue);
rLoadSourceBuild.setTimeStampOfLastShippedOp(timeStampOfLastShippedOp);
rLoadSourceBuild.setReplicationLag(replicationLag);
replicationLoadSourceMap.put(peerId, rLoadSourceBuild.build());
origin: apache/hbase

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();
}
origin: apache/hbase

public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource other) {
 if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.getDefaultInstance()) return this;
 if (other.hasPeerID()) {
  bitField0_ |= 0x00000001;
  peerID_ = other.peerID_;
  onChanged();
 }
 if (other.hasAgeOfLastShippedOp()) {
  setAgeOfLastShippedOp(other.getAgeOfLastShippedOp());
 }
 if (other.hasSizeOfLogQueue()) {
  setSizeOfLogQueue(other.getSizeOfLogQueue());
 }
 if (other.hasTimeStampOfLastShippedOp()) {
  setTimeStampOfLastShippedOp(other.getTimeStampOfLastShippedOp());
 }
 if (other.hasReplicationLag()) {
  setReplicationLag(other.getReplicationLag());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: apache/hbase

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)
    .setSizeOfLogQueue(sizeOfLogQueue + 1).build();
ClusterStatusProtos.ServerLoad sl = ClusterStatusProtos.ServerLoad.newBuilder()
  .addReplLoadSource(rload1).addReplLoadSource(rload2).build();
origin: apache/hbase

/**
 * <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;
}
/**
origin: com.aliyun.hbase/alihbase-client

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();
}
origin: org.apache.hbase/hbase-protocol-shaded

/**
 * <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;
}
/**
origin: org.apache.hbase/hbase-protocol-shaded

/**
 * <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;
}
/**
origin: org.apache.hbase/hbase-protocol-shaded

/**
 * <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;
}
/**
origin: org.apache.hbase/hbase-protocol-shaded

public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource other) {
 if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.ReplicationLoadSource.getDefaultInstance()) return this;
 if (other.hasPeerID()) {
  bitField0_ |= 0x00000001;
  peerID_ = other.peerID_;
  onChanged();
 }
 if (other.hasAgeOfLastShippedOp()) {
  setAgeOfLastShippedOp(other.getAgeOfLastShippedOp());
 }
 if (other.hasSizeOfLogQueue()) {
  setSizeOfLogQueue(other.getSizeOfLogQueue());
 }
 if (other.hasTimeStampOfLastShippedOp()) {
  setTimeStampOfLastShippedOp(other.getTimeStampOfLastShippedOp());
 }
 if (other.hasReplicationLag()) {
  setReplicationLag(other.getReplicationLag());
 }
 this.mergeUnknownFields(other.unknownFields);
 onChanged();
 return this;
}
origin: apache/hbase

/**
 * <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;
}
/**
origin: org.apache.hbase/hbase-server

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)
    .setSizeOfLogQueue(sizeOfLogQueue + 1).build();
ClusterStatusProtos.ServerLoad sl = ClusterStatusProtos.ServerLoad.newBuilder()
  .addReplLoadSource(rload1).addReplLoadSource(rload2).build();
origin: org.apache.hbase/hbase-client

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();
}
org.apache.hadoop.hbase.shaded.protobuf.generatedClusterStatusProtos$ReplicationLoadSource$Builder

Javadoc

Protobuf type hbase.pb.ReplicationLoadSource

Most used methods

  • build
  • setAgeOfLastShippedOp
    required uint64 ageOfLastShippedOp = 2;
  • setReplicationLag
    required uint64 replicationLag = 5;
  • setSizeOfLogQueue
    required uint32 sizeOfLogQueue = 3;
  • setTimeStampOfLastShippedOp
    required uint64 timeStampOfLastShippedOp = 4;
  • setPeerID
    required string peerID = 1;
  • <init>
  • buildPartial
  • hasAgeOfLastShippedOp
    required uint64 ageOfLastShippedOp = 2;
  • hasPeerID
    required string peerID = 1;
  • hasReplicationLag
    required uint64 replicationLag = 5;
  • hasSizeOfLogQueue
    required uint32 sizeOfLogQueue = 3;
  • hasReplicationLag,
  • hasSizeOfLogQueue,
  • hasTimeStampOfLastShippedOp,
  • maybeForceBuilderInitialization,
  • mergeFrom,
  • mergeUnknownFields,
  • newUninitializedMessageException,
  • onBuilt,
  • onChanged

Popular in Java

  • Creating JSON documents from java classes using gson
  • findViewById (Activity)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getApplicationContext (Context)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now