| Package | Description |
|---|---|
| org.apache.hadoop.ipc |
Tools to help define network clients and servers.
|
| org.apache.hadoop.util |
Common utilities.
|
| Modifier and Type | Method | Description |
|---|---|---|
static RPC.RpcKind |
RPC.RpcKind.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static RPC.RpcKind[] |
RPC.RpcKind.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method | Description |
|---|---|---|
RPC.Server |
RPC.Server.addProtocol(RPC.RpcKind rpcKind,
java.lang.Class<?> protocolClass,
java.lang.Object protocolImpl) |
Add a protocol to the existing server.
|
Writable |
Client.call(RPC.RpcKind rpcKind,
Writable rpcRequest,
Client.ConnectionId remoteId,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth) |
Make a call, passing
rpcRequest, to the IPC server defined by
remoteId, returning the rpc respond. |
Writable |
Client.call(RPC.RpcKind rpcKind,
Writable rpcRequest,
Client.ConnectionId remoteId,
java.util.concurrent.atomic.AtomicBoolean fallbackToSimpleAuth,
AlignmentContext alignmentContext) |
|
Writable |
RPC.Server.call(RPC.RpcKind rpcKind,
java.lang.String protocol,
Writable rpcRequest,
long receiveTime) |
|
abstract Writable |
Server.call(RPC.RpcKind rpcKind,
java.lang.String protocol,
Writable param,
long receiveTime) |
Called for each call.
|
static org.apache.hadoop.ipc.RPC.RpcInvoker |
Server.getRpcInvoker(RPC.RpcKind rpcKind) |
|
protected org.apache.hadoop.ipc.RPC.RpcInvoker |
ProtobufRpcEngine2.Server.getServerRpcInvoker(RPC.RpcKind rpcKind) |
|
protected org.apache.hadoop.ipc.RPC.RpcInvoker |
Server.getServerRpcInvoker(RPC.RpcKind rpcKind) |
|
static boolean |
RpcClientUtil.isMethodSupported(java.lang.Object rpcProxy,
java.lang.Class<?> protocol,
RPC.RpcKind rpcKind,
long version,
java.lang.String methodName) |
Returns whether the given method is supported or not.
|
static void |
Server.registerProtocolEngine(RPC.RpcKind rpcKind,
java.lang.Class<? extends Writable> rpcRequestWrapperClass,
org.apache.hadoop.ipc.RPC.RpcInvoker rpcInvoker) |
Register a RPC kind and the class to deserialize the rpc request.
|
| Constructor | Description |
|---|---|
Call(int id,
int retryCount,
java.lang.Void ignore1,
java.lang.Void ignore2,
RPC.RpcKind kind,
byte[] clientId) |
| Modifier and Type | Method | Description |
|---|---|---|
static RPC.RpcKind |
ProtoUtil.convert(org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcKindProto kind) |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto |
ProtoUtil.makeRpcRequestHeader(RPC.RpcKind rpcKind,
org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto.OperationProto operation,
int callId,
int retryCount,
byte[] uuid) |
|
static org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto |
ProtoUtil.makeRpcRequestHeader(RPC.RpcKind rpcKind,
org.apache.hadoop.ipc.protobuf.RpcHeaderProtos.RpcRequestHeaderProto.OperationProto operation,
int callId,
int retryCount,
byte[] uuid,
AlignmentContext alignmentContext) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.