RpcEngine@Deprecated @Evolving public class ProtobufRpcEngine extends java.lang.Object implements RpcEngine
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
ProtobufRpcEngine.Invoker |
Deprecated.
|
static class |
ProtobufRpcEngine.Server |
Deprecated.
Server implementation is always ProtobufRpcEngine2 based implementation,
supports backward compatibility for protobuf 2.5 based implementations,
which uses non-shaded protobuf classes.
|
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
Deprecated.
|
| Constructor | Description |
|---|---|
ProtobufRpcEngine() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
static AsyncGet<com.google.protobuf.Message,java.lang.Exception> |
getAsyncReturnMessage() |
Deprecated.
|
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) |
Deprecated.
|
<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.
|
<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.
|
<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<?> protocol,
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.
|
@Unstable public static AsyncGet<com.google.protobuf.Message,java.lang.Exception> getAsyncReturnMessage()
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
RpcEnginegetProxy 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) throws java.io.IOException
java.io.IOExceptionpublic <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
RpcEnginegetProxy in interface RpcEngineT - 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.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
RpcEnginegetProxy in interface RpcEngineT - 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.public 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.public RPC.Server getServer(java.lang.Class<?> protocol, 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 RpcEngineprotocol - 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 errorCopyright © 2008–2025 Apache Software Foundation. All rights reserved.