public class Rpc extends RpcNative
| Constructor and Description |
|---|
Rpc() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeBinding(RpcCallContext c) |
static void |
exportProgram(int programId,
RpcProgram program) |
static int |
initialize(int port,
int numThreads,
java.lang.String clusterName) |
static int |
initialize(int port,
int numThreads,
java.lang.String clusterName,
RpcExport[] rpcPrograms,
ThreadPoolFinder poolFinder)
Spawns and starts the RPC Listener Thread.
|
static void |
rejectCall(RpcCallContext c) |
static void |
sendReply(RpcCallContext c,
com.google.protobuf.MessageLite reply) |
static byte[] |
sendRequest(long binding,
int programId,
int procedureId,
com.google.protobuf.MessageLite request) |
static void |
setThreadPoolFinder(ThreadPoolFinder finder) |
closeBinding, createBindingFor, createBindingForIps, createBindingForIpsWithSrcPort, doNotTimeout, getIpPortFromBinding, init, initAndExport, registerProgramId, rejectCall, sendReply, sendRequest, setAllowImpersonation, waitForRequestpublic static int initialize(int port,
int numThreads,
java.lang.String clusterName)
throws java.lang.Exception
java.lang.Exceptionpublic static int initialize(int port,
int numThreads,
java.lang.String clusterName,
RpcExport[] rpcPrograms,
ThreadPoolFinder poolFinder)
throws java.lang.Exception
port - numThreads - clusterName - exports - threadPoolFinder - java.lang.Exceptionpublic static void setThreadPoolFinder(ThreadPoolFinder finder)
public static byte[] sendRequest(long binding,
int programId,
int procedureId,
com.google.protobuf.MessageLite request)
throws java.lang.Exception
java.lang.Exceptionpublic static void exportProgram(int programId,
RpcProgram program)
throws java.lang.Exception
java.lang.Exceptionpublic static void sendReply(RpcCallContext c, com.google.protobuf.MessageLite reply) throws java.lang.Exception
java.lang.Exceptionpublic static void rejectCall(RpcCallContext c) throws java.lang.Exception
java.lang.Exceptionpublic static void closeBinding(RpcCallContext c) throws java.lang.Exception
java.lang.Exception