java.io.Closeable, java.lang.AutoCloseable, java.lang.reflect.InvocationHandler, RpcInvocationHandlerprotected static class ProtobufRpcEngine2.Invoker extends java.lang.Object implements RpcInvocationHandler
| Modifier | Constructor | Description |
|---|---|---|
protected |
Invoker(java.lang.Class<?> protocol,
java.net.InetSocketAddress addr,
UserGroupInformation ticket,
Configuration conf,
javax.net.SocketFactory factory,
int rpcTimeout,
RetryPolicy connectionRetryPolicy,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth,
AlignmentContext alignmentContext) |
|
protected |
Invoker(java.lang.Class<?> protocol,
Client.ConnectionId connId,
Configuration conf,
javax.net.SocketFactory factory,
AlignmentContext alignmentContext) |
This constructor takes a connectionId, instead of creating a new one.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected Writable |
constructRpcRequest(java.lang.reflect.Method method,
org.apache.hadoop.thirdparty.protobuf.Message theRequest) |
|
protected long |
getClientProtocolVersion() |
|
Client.ConnectionId |
getConnectionId() |
Returns the connection id associated with the InvocationHandler instance.
|
protected java.lang.String |
getProtocolName() |
|
org.apache.hadoop.thirdparty.protobuf.Message |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
This is the client side invoker of RPC method.
|
protected Invoker(java.lang.Class<?> protocol,
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
java.io.IOExceptionprotected Invoker(java.lang.Class<?> protocol,
Client.ConnectionId connId,
Configuration conf,
javax.net.SocketFactory factory,
AlignmentContext alignmentContext)
protocol - input protocol.connId - input connId.conf - input Configuration.factory - input factory.alignmentContext - Alignment contextpublic org.apache.hadoop.thirdparty.protobuf.Message invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws org.apache.hadoop.thirdparty.protobuf.ServiceException
invoke in interface java.lang.reflect.InvocationHandlerorg.apache.hadoop.thirdparty.protobuf.ServiceExceptionprotected Writable constructRpcRequest(java.lang.reflect.Method method, org.apache.hadoop.thirdparty.protobuf.Message theRequest)
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionpublic Client.ConnectionId getConnectionId()
RpcInvocationHandlergetConnectionId in interface RpcInvocationHandlerprotected long getClientProtocolVersion()
protected java.lang.String getProtocolName()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.