Package | Description |
---|---|
org.apache.accumulo.core.client.impl | |
org.apache.accumulo.core.rpc | |
org.apache.accumulo.core.util |
Modifier and Type | Method and Description |
---|---|
static <T> T |
ReplicationClient.executeServicerWithReturn(ClientContext context,
HostAndPort tserver,
ClientExecReturn<T,ReplicationServicer.Client> exec,
long timeout) |
static ReplicationServicer.Client |
ReplicationClient.getServicerConnection(ClientContext context,
HostAndPort server,
long timeout)
Attempt a single time to create a ReplicationServicer client to the given host
|
org.apache.thrift.transport.TTransport |
ThriftTransportPool.getTransport(HostAndPort location,
long milliseconds,
ClientContext context) |
Constructor and Description |
---|
ThriftTransportKey(HostAndPort server,
long timeout,
ClientContext context) |
Modifier and Type | Method and Description |
---|---|
static org.apache.thrift.transport.TTransport |
TTimeoutTransport.create(HostAndPort addr,
long timeoutMillis) |
static org.apache.thrift.transport.TTransport |
ThriftUtil.createClientTransport(HostAndPort address,
int timeout,
SslConnectionParams sslParams,
SaslConnectionParams saslParams)
Create a TTransport for clients to the given address with the provided socket timeout and
session-layer configuration
|
static org.apache.thrift.transport.TTransport |
ThriftUtil.createTransport(HostAndPort address,
ClientContext context)
Create a transport that is not pooled
|
static <T extends org.apache.thrift.TServiceClient> |
ThriftUtil.getClient(org.apache.thrift.TServiceClientFactory<T> factory,
HostAndPort address,
ClientContext context)
Create a Thrift client using the given factory with a pooled transport (if available), the
address and client context.
|
static <T extends org.apache.thrift.TServiceClient> |
ThriftUtil.getClient(org.apache.thrift.TServiceClientFactory<T> factory,
HostAndPort address,
ClientContext context,
long timeout)
Create a Thrift client using the given factory with a pooled transport (if available) using the
address, client context and timeou
|
static <T extends org.apache.thrift.TServiceClient> |
ThriftUtil.getClientNoTimeout(org.apache.thrift.TServiceClientFactory<T> factory,
HostAndPort address,
ClientContext context)
Create a Thrift client using the given factory with a pooled transport (if available), the
address, and client context with no timeout.
|
static TabletClientService.Client |
ThriftUtil.getTServerClient(HostAndPort address,
ClientContext context)
Create a TabletServer Thrift client
|
static TabletClientService.Client |
ThriftUtil.getTServerClient(HostAndPort address,
ClientContext context,
long timeout)
Create a TabletServer Thrift client
|
Modifier and Type | Method and Description |
---|---|
static HostAndPort |
HostAndPort.fromParts(String host,
int port)
Build a HostAndPort instance from separate host and port values.
|
static HostAndPort |
HostAndPort.fromString(String hostPortString)
Split a freeform string into a host and port, without strict validation.
|
HostAndPort |
ServerServices.getAddress(ServerServices.Service service) |
static HostAndPort |
AddressUtil.parseAddress(String address,
boolean ignoreMissingPort) |
static HostAndPort |
AddressUtil.parseAddress(String address,
int defaultPort) |
HostAndPort |
HostAndPort.withDefaultPort(int defaultPort)
Provide a default port if the parsed string contained only a host.
|
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.