public class Rpc extends RpcNative
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_RPC_THREADS_PER_INSTANCE |
| Constructor and Description |
|---|
Rpc() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeBinding(RpcCallContext c) |
static void |
exportProgram(int programId,
RpcProgram program) |
static void |
exportProgram(int programId,
RpcProgram program,
int serverIdx) |
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 listenPort,
int numThreads,
java.lang.String clusterName,
RpcExport[] rpcPrograms,
ThreadPoolFinder poolFinder)
Spawns and starts the RPC Listener Thread.
|
static int |
initializeGuts(long shmAddr) |
static int |
initializeRpcServer(java.lang.String processName,
int listenPort,
int numThreads,
java.lang.String clusterName,
RpcExport[] rpcPrograms,
ThreadPoolFinder poolFinder,
int serverIdx)
Spawns and starts the RPC Listener Thread.
|
static void |
rejectCall(RpcCallContext c) |
static void |
sendReply(RpcCallContext c,
com.google.protobuf.MessageLite reply) |
static void |
sendReplyAsync(RpcCallContext c,
com.google.protobuf.MessageLite reply) |
static void |
sendReplyAsync(RpcCallContext c,
com.google.protobuf.MessageLite reply,
boolean replyWithEBusy) |
static byte[] |
sendRequest(long binding,
int programId,
int procedureId,
com.google.protobuf.MessageLite request) |
closeBinding, copyRpcSlabInfo, createBindingFor, createBindingFor2, createBindingForIps, createBindingForIps2, createBindingForIpsWithSrcPort, createBindingForIpsWithSrcPort2, createBindingOnServerFor, doNotTimeout, getIpPortFromBinding, getTicketFromContext, init, initAndExport, initAndExportServer, initializeRpcGuts, initServer, registerProgramId, rejectCall, sendReply, sendReplyAsync, sendRequest, setAllowImpersonation, shrinkSlabs, waitForRequestpublic static int initialize(int port,
int numThreads,
java.lang.String clusterName)
throws java.lang.Exception
java.lang.Exceptionpublic static int initialize(int listenPort,
int numThreads,
java.lang.String clusterName,
RpcExport[] rpcPrograms,
ThreadPoolFinder poolFinder)
throws java.lang.Exception
port - numThreads - clusterName - exports - threadPoolFinder - java.lang.Exceptionpublic static int initializeRpcServer(java.lang.String processName,
int listenPort,
int numThreads,
java.lang.String clusterName,
RpcExport[] rpcPrograms,
ThreadPoolFinder poolFinder,
int serverIdx)
throws java.lang.Exception
port - numThreads - clusterName - exports - threadPoolFinder - ServerIdx - 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 exportProgram(int programId,
RpcProgram program,
int serverIdx)
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 sendReplyAsync(RpcCallContext c, com.google.protobuf.MessageLite reply) throws java.lang.Exception
java.lang.Exceptionpublic static void sendReplyAsync(RpcCallContext c, com.google.protobuf.MessageLite reply, boolean replyWithEBusy) 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)
public static int initializeGuts(long shmAddr)