| Modifier and Type | Class | Description |
|---|---|---|
static class |
WritableRpcEngine.Server |
Deprecated.
|
| Modifier and Type | Field | Description |
|---|---|---|
static long |
writableRpcVersion |
Deprecated.
|
| Constructor | Description |
|---|---|
WritableRpcEngine() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
ensureInitialized() |
Deprecated.
Initialize this class if it isn't already.
|
ProtocolProxy<ProtocolMetaInfoPB> |
getProtocolMetaInfoProxy(Client.ConnectionId connId,
Configuration conf,
javax.net.SocketFactory factory) |
Deprecated.
Returns a proxy for ProtocolMetaInfoPB, which uses the given connection
id.
|
<T> ProtocolProxy<T> |
getProxy(java.lang.Class<T> protocol,
long clientVersion,
java.net.InetSocketAddress addr,
UserGroupInformation ticket,
Configuration conf,
javax.net.SocketFactory factory,
int rpcTimeout,
RetryPolicy connectionRetryPolicy) |
Deprecated.
Construct a client-side proxy object that implements the named protocol,
talking to a server at the named address.
|
<T> ProtocolProxy<T> |
getProxy(java.lang.Class<T> protocol,
long clientVersion,
java.net.InetSocketAddress addr,
UserGroupInformation ticket,
Configuration conf,
javax.net.SocketFactory factory,
int rpcTimeout,
RetryPolicy connectionRetryPolicy,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth,
AlignmentContext alignmentContext) |
Deprecated.
Construct a client-side proxy object that implements the named protocol,
talking to a server at the named address.
|
<T> ProtocolProxy<T> |
getProxy(java.lang.Class<T> protocol,
long clientVersion,
Client.ConnectionId connId,
Configuration conf,
javax.net.SocketFactory factory,
AlignmentContext alignmentContext) |
Deprecated.
Construct a client-side proxy object with a ConnectionId.
|
RPC.Server |
getServer(java.lang.Class<?> protocolClass,
java.lang.Object protocolImpl,
java.lang.String bindAddress,
int port,
int numHandlers,
int numReaders,
int queueSizePerHandler,
boolean verbose,
Configuration conf,
SecretManager<? extends TokenIdentifier> secretManager,
java.lang.String portRangeConfig,
AlignmentContext alignmentContext) |
Deprecated.
Construct a server for a protocol implementation instance.
|
public static final long writableRpcVersion
public static void ensureInitialized()
public <T> ProtocolProxy<T> getProxy(java.lang.Class<T> protocol, long clientVersion, java.net.InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, javax.net.SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy) throws java.io.IOException
getProxy in interface RpcEngineT - Generics Type Tprotocol - input protocol.clientVersion - input clientVersion.addr - input addr.ticket - input ticket.conf - input configuration.factory - input factory.rpcTimeout - input rpcTimeout.connectionRetryPolicy - input connectionRetryPolicy.java.io.IOException - raised on errors performing I/O.public <T> ProtocolProxy<T> getProxy(java.lang.Class<T> protocol, long clientVersion, Client.ConnectionId connId, Configuration conf, javax.net.SocketFactory factory, AlignmentContext alignmentContext) throws java.io.IOException
getProxy in interface RpcEngineT - Generics Type T.protocol - input protocol.clientVersion - input clientVersion.connId - input ConnectionId.conf - input Configuration.factory - input factory.alignmentContext - Alignment contextjava.io.IOException - raised on errors performing I/O.public <T> ProtocolProxy<T> getProxy(java.lang.Class<T> protocol, long clientVersion, java.net.InetSocketAddress addr, UserGroupInformation ticket, Configuration conf, javax.net.SocketFactory factory, int rpcTimeout, RetryPolicy connectionRetryPolicy, java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth, AlignmentContext alignmentContext) throws java.io.IOException
getProxy in interface RpcEngineT - Generics Type.protocol - input protocol.clientVersion - input clientVersion.addr - input addr.ticket - input ticket.conf - input configuration.factory - input factory.rpcTimeout - input rpcTimeout.connectionRetryPolicy - input connectionRetryPolicy.fallbackToSimpleAuth - input fallbackToSimpleAuth.alignmentContext - input alignmentContext.java.io.IOException - raised on errors performing I/O.public RPC.Server getServer(java.lang.Class<?> protocolClass, java.lang.Object protocolImpl, java.lang.String bindAddress, int port, int numHandlers, int numReaders, int queueSizePerHandler, boolean verbose, Configuration conf, SecretManager<? extends TokenIdentifier> secretManager, java.lang.String portRangeConfig, AlignmentContext alignmentContext) throws java.io.IOException
RpcEnginegetServer in interface RpcEngineprotocolClass - the class of protocol to useprotocolImpl - the instance of protocol whose methods will be calledbindAddress - the address to bind on to listen for connectionport - the port to listen for connections onnumHandlers - the number of method handler threads to runnumReaders - the number of reader threads to runqueueSizePerHandler - the size of the queue per hander threadverbose - whether each call should be loggedconf - the configuration to usesecretManager - The secret manager to use to validate incoming requests.portRangeConfig - A config parameter that can be used to restrict
the range of ports used when port is 0 (an ephemeral port)alignmentContext - provides server state info on client responsesjava.io.IOException - on any errorpublic ProtocolProxy<ProtocolMetaInfoPB> getProtocolMetaInfoProxy(Client.ConnectionId connId, Configuration conf, javax.net.SocketFactory factory) throws java.io.IOException
RpcEnginegetProtocolMetaInfoProxy in interface RpcEngineconnId - , ConnectionId to be used for the proxy.conf - , Configuration.factory - , Socket factory.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.