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 com.mapr.fs.proto.Security.Ticket |
getAuthenticatedTicket(RpcCallContext c) |
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) |
closeBinding, createBindingFor, createBindingFor2, createBindingForIps, createBindingForIps2, createBindingForIpsWithSrcPort, createBindingForIpsWithSrcPort2, doNotTimeout, getIpPortFromBinding, getTicketFromContext, 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 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.Exceptionpublic static com.mapr.fs.proto.Security.Ticket getAuthenticatedTicket(RpcCallContext c)