HBase-5688 Convert zk root-region-server znode content to pb
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1308681 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
450583b9bd
commit
3d7e7f1626
|
@ -11,7 +11,7 @@ public final class ZooKeeperProtos {
|
||||||
public interface RootRegionServerOrBuilder
|
public interface RootRegionServerOrBuilder
|
||||||
extends com.google.protobuf.MessageOrBuilder {
|
extends com.google.protobuf.MessageOrBuilder {
|
||||||
|
|
||||||
// required .ServerName server = 2;
|
// required .ServerName server = 1;
|
||||||
boolean hasServer();
|
boolean hasServer();
|
||||||
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServer();
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName getServer();
|
||||||
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServerOrBuilder();
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder getServerOrBuilder();
|
||||||
|
@ -45,8 +45,8 @@ public final class ZooKeeperProtos {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int bitField0_;
|
private int bitField0_;
|
||||||
// required .ServerName server = 2;
|
// required .ServerName server = 1;
|
||||||
public static final int SERVER_FIELD_NUMBER = 2;
|
public static final int SERVER_FIELD_NUMBER = 1;
|
||||||
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName server_;
|
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName server_;
|
||||||
public boolean hasServer() {
|
public boolean hasServer() {
|
||||||
return ((bitField0_ & 0x00000001) == 0x00000001);
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
||||||
|
@ -82,7 +82,7 @@ public final class ZooKeeperProtos {
|
||||||
throws java.io.IOException {
|
throws java.io.IOException {
|
||||||
getSerializedSize();
|
getSerializedSize();
|
||||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||||
output.writeMessage(2, server_);
|
output.writeMessage(1, server_);
|
||||||
}
|
}
|
||||||
getUnknownFields().writeTo(output);
|
getUnknownFields().writeTo(output);
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ public final class ZooKeeperProtos {
|
||||||
size = 0;
|
size = 0;
|
||||||
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
||||||
size += com.google.protobuf.CodedOutputStream
|
size += com.google.protobuf.CodedOutputStream
|
||||||
.computeMessageSize(2, server_);
|
.computeMessageSize(1, server_);
|
||||||
}
|
}
|
||||||
size += getUnknownFields().getSerializedSize();
|
size += getUnknownFields().getSerializedSize();
|
||||||
memoizedSerializedSize = size;
|
memoizedSerializedSize = size;
|
||||||
|
@ -365,7 +365,7 @@ public final class ZooKeeperProtos {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 18: {
|
case 10: {
|
||||||
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.newBuilder();
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder subBuilder = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.newBuilder();
|
||||||
if (hasServer()) {
|
if (hasServer()) {
|
||||||
subBuilder.mergeFrom(getServer());
|
subBuilder.mergeFrom(getServer());
|
||||||
|
@ -380,7 +380,7 @@ public final class ZooKeeperProtos {
|
||||||
|
|
||||||
private int bitField0_;
|
private int bitField0_;
|
||||||
|
|
||||||
// required .ServerName server = 2;
|
// required .ServerName server = 1;
|
||||||
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName server_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance();
|
private org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName server_ = org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.getDefaultInstance();
|
||||||
private com.google.protobuf.SingleFieldBuilder<
|
private com.google.protobuf.SingleFieldBuilder<
|
||||||
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder> serverBuilder_;
|
org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerName.Builder, org.apache.hadoop.hbase.protobuf.generated.HBaseProtos.ServerNameOrBuilder> serverBuilder_;
|
||||||
|
@ -496,7 +496,7 @@ public final class ZooKeeperProtos {
|
||||||
static {
|
static {
|
||||||
java.lang.String[] descriptorData = {
|
java.lang.String[] descriptorData = {
|
||||||
"\n\017ZooKeeper.proto\032\013hbase.proto\"/\n\020RootRe" +
|
"\n\017ZooKeeper.proto\032\013hbase.proto\"/\n\020RootRe" +
|
||||||
"gionServer\022\033\n\006server\030\002 \002(\0132\013.ServerNameB" +
|
"gionServer\022\033\n\006server\030\001 \002(\0132\013.ServerNameB" +
|
||||||
"E\n*org.apache.hadoop.hbase.protobuf.gene" +
|
"E\n*org.apache.hadoop.hbase.protobuf.gene" +
|
||||||
"ratedB\017ZooKeeperProtosH\001\210\001\001\240\001\001"
|
"ratedB\017ZooKeeperProtosH\001\210\001\001\240\001\001"
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue