currentRegionServer.updateFavoredNodes(null, request); LOG.info("Region server " + ProtobufUtil.getServerInfo(null, currentRegionServer).getServerName() + " has updated " + updateFavoredNodesResponse.getResponse() + " / " + singleServerPlan.getAssignmentMap().size() +
ServerName serverName = ProtobufUtil.toServerName(serverInfo.getServerName()); List<RegionInfo> onlineRegions = ProtobufUtil.getOnlineRegions(regionServer.getRSRpcServices()); MasterAddressTracker masterAddressTracker = regionServer.getMasterAddressTracker();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasServerName()) { hash = (37 * hash) + SERVER_NAME_FIELD_NUMBER; hash = (53 * hash) + getServerName().hashCode(); } if (hasWebuiPort()) { hash = (37 * hash) + WEBUI_PORT_FIELD_NUMBER; hash = (53 * hash) + getWebuiPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
try { targetServer = ProtobufUtil.toServerName(targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo().getServerName()); targetRS = ((ClusterConnection) admin.getConnection()).getAdmin(targetServer); targetServer = ProtobufUtil.toServerName(targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo().getServerName()); assertTrue(master.getServerManager().getOnlineServers().containsKey(targetServer)); serversToDecommission.add(targetServer);
targetServer = ProtobufUtil.toServerName( targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo() .getServerName()); assertTrue(master.getServerManager().getOnlineServers().containsKey(targetServer)); serversToDecommission.add(targetServer);
try { targetServer = ProtobufUtil.toServerName(targetRS.getServerInfo(null, GetServerInfoRequest.newBuilder().build()).getServerInfo().getServerName());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo other = (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo) obj; boolean result = true; result = result && (hasServerName() == other.hasServerName()); if (hasServerName()) { result = result && getServerName() .equals(other.getServerName()); } result = result && (hasWebuiPort() == other.hasWebuiPort()); if (hasWebuiPort()) { result = result && (getWebuiPort() == other.getWebuiPort()); } result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasServerName()) { hash = (37 * hash) + SERVER_NAME_FIELD_NUMBER; hash = (53 * hash) + getServerName().hashCode(); } if (hasWebuiPort()) { hash = (37 * hash) + WEBUI_PORT_FIELD_NUMBER; hash = (53 * hash) + getWebuiPort(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeMessageSize(1, getServerName()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeUInt32Size(2, webuiPort_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasServerName()) { memoizedIsInitialized = 0; return false; } if (!getServerName().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
@Override public ServerName getServerHoldingRegion(TableName tn, byte[] regionName) throws IOException { HRegionLocation regionLoc = null; try (RegionLocator locator = connection.getRegionLocator(tn)) { regionLoc = locator.getRegionLocation(regionName, true); } if (regionLoc == null) { LOG.warn("Cannot find region server holding region " + Bytes.toString(regionName) + ", start key [" + Bytes.toString(HRegionInfo.getStartKey(regionName)) + "]"); return null; } AdminProtos.AdminService.BlockingInterface client = ((ClusterConnection)this.connection).getAdmin(regionLoc.getServerName()); ServerInfo info = ProtobufUtil.getServerInfo(null, client); return ProtobufUtil.toServerName(info.getServerName()); }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo.getDefaultInstance()) return this; if (other.hasServerName()) { mergeServerName(other.getServerName()); } if (other.hasWebuiPort()) { setWebuiPort(other.getWebuiPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getServerName()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, webuiPort_); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo)) { return super.equals(obj); } org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo other = (org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo) obj; boolean result = true; result = result && (hasServerName() == other.hasServerName()); if (hasServerName()) { result = result && getServerName() .equals(other.getServerName()); } result = result && (hasWebuiPort() == other.hasWebuiPort()); if (hasWebuiPort()) { result = result && (getWebuiPort() == other.getWebuiPort()); } result = result && unknownFields.equals(other.unknownFields); return result; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeMessageSize(1, getServerName()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream .computeUInt32Size(2, webuiPort_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; }
public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (!hasServerName()) { memoizedIsInitialized = 0; return false; } if (!getServerName().isInitialized()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; }
public Builder mergeFrom(org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo other) { if (other == org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ServerInfo.getDefaultInstance()) return this; if (other.hasServerName()) { mergeServerName(other.getServerName()); } if (other.hasWebuiPort()) { setWebuiPort(other.getWebuiPort()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public void writeTo(org.apache.hbase.thirdparty.com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getServerName()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, webuiPort_); } unknownFields.writeTo(output); }