public final class RpcExecutionServiceImpl extends Object implements RpcExecutionService
| Modifier and Type | Class and Description |
|---|---|
static class |
RpcExecutionServiceImpl.ControllerCoordinate |
| Constructor and Description |
|---|
RpcExecutionServiceImpl(String name) |
RpcExecutionServiceImpl(String name,
ExecutionServiceListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
addImplementation(Object implementation,
Class interfaceClasses)
Add an implementation of an interface.
|
void |
execute(RemoteExecutionContext dc,
org.jboss.netty.channel.ChannelHandlerContext ctx,
com.google.protobuf.Message parameter)
Execute a method coming in over the wire.
|
Method |
getMethod(Rpc.MethodSignature ms) |
Class |
getParameterType(Rpc.MethodSignature sig)
Look Find the parameter type associated with a method signature.
|
Class |
getReturnType(Rpc.MethodSignature sig)
Look Find the return type associated with a method signature.
|
void |
listen(ExecutorService threadPool,
Object object,
Object implementation,
Object object0,
Object parameter,
Object object1) |
void |
removeController(org.jboss.netty.channel.ChannelHandlerContext ctx,
long rpcIndex) |
void |
startCancel(org.jboss.netty.channel.ChannelHandlerContext ctx,
long rpcIndex)
Cancel an invocation.
|
void |
storeController(org.jboss.netty.channel.ChannelHandlerContext ctx,
long rpcIdx,
RpcServiceController controller) |
public RpcExecutionServiceImpl(String name)
public RpcExecutionServiceImpl(String name, ExecutionServiceListener listener)
public Class getReturnType(Rpc.MethodSignature sig)
RpcExecutionServicegetReturnType in interface RpcExecutionServicesig - The signaturepublic Class getParameterType(Rpc.MethodSignature sig)
RpcExecutionServicegetParameterType in interface RpcExecutionServicesig - The signaturepublic void addImplementation(Object implementation, Class interfaceClasses) throws RpcServerException
RpcExecutionServiceaddImplementation in interface RpcExecutionServiceimplementation - The instance implementing the RPC interface.interfaceClasses - The class defining the RPC interface.RpcServerExceptionpublic void removeController(org.jboss.netty.channel.ChannelHandlerContext ctx,
long rpcIndex)
public void execute(RemoteExecutionContext dc, org.jboss.netty.channel.ChannelHandlerContext ctx, com.google.protobuf.Message parameter)
RpcExecutionServiceexecute in interface RpcExecutionServicedc - XXXXparameter - The parameter object.public void startCancel(org.jboss.netty.channel.ChannelHandlerContext ctx,
long rpcIndex)
RpcExecutionServicestartCancel in interface RpcExecutionServicepublic void listen(ExecutorService threadPool, Object object, Object implementation, Object object0, Object parameter, Object object1)
public Method getMethod(Rpc.MethodSignature ms)
public void storeController(org.jboss.netty.channel.ChannelHandlerContext ctx,
long rpcIdx,
RpcServiceController controller)
Copyright © 2013. All Rights Reserved.