ProtobufRpcEngine, ProtobufRpcEngine2, WritableRpcEngine@Evolving
public interface RpcEngine
| Modifier and Type | Method | Description |
|---|---|---|
ProtocolProxy<ProtocolMetaInfoPB> |
getProtocolMetaInfoProxy(Client.ConnectionId connId,
Configuration conf,
javax.net.SocketFactory factory) |
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) |
Construct a client-side proxy object.
|
<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) |
Construct a client-side proxy object.
|
<T> ProtocolProxy<T> |
getProxy(java.lang.Class<T> protocol,
long clientVersion,
Client.ConnectionId connId,
Configuration conf,
javax.net.SocketFactory factory,
AlignmentContext alignmentContext) |
Construct a client-side proxy object with a ConnectionId.
|
RPC.Server |
getServer(java.lang.Class<?> protocol,
java.lang.Object instance,
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) |
Construct a server for a protocol implementation instance.
|
<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
T - Generics Type T.protocol - 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.<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
T - 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.<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
T - Generics Type T.protocol - input protocol.clientVersion - input clientVersion.addr - input addr.ticket - input tocket.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.RPC.Server getServer(java.lang.Class<?> protocol, java.lang.Object instance, 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
protocol - the class of protocol to useinstance - the instance of protocol whose methods will be calledconf - the configuration to usebindAddress - 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 loggedsecretManager - 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 errorProtocolProxy<ProtocolMetaInfoPB> getProtocolMetaInfoProxy(Client.ConnectionId connId, Configuration conf, javax.net.SocketFactory factory) throws java.io.IOException
connId - , 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.