@InterfaceAudience.Private public final class ServerConnectionUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServerConnectionUtils.ShortCircuitingClusterConnection
A ClusterConnection that will short-circuit RPC making direct invocations against the localhost
if the invocation target is 'this' server; save on network and protobuf invocations.
|
| Modifier | Constructor and Description |
|---|---|
private |
ServerConnectionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ClusterConnection |
createShortCircuitConnection(org.apache.hadoop.conf.Configuration conf,
User user,
ServerName serverName,
org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface client,
ConnectionRegistry registry)
Creates a short-circuit connection that can bypass the RPC layer (serialization,
deserialization, networking, etc..) when talking to a local server.
|
private ServerConnectionUtils()
public static ClusterConnection createShortCircuitConnection(org.apache.hadoop.conf.Configuration conf, User user, ServerName serverName, org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.AdminService.BlockingInterface admin, org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface client, ConnectionRegistry registry) throws IOException
conf - the current configurationuser - the user the connection is forserverName - the local server nameadmin - the admin interface of the local serverclient - the client interface of the local serverregistry - the connection registry to be used, can be nullIOException - if IO failure occurredCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.