org.jboss.cache.marshall
Class InactiveRegionAwareRpcDispatcher

java.lang.Object
  extended by org.jgroups.blocks.MessageDispatcher
      extended by org.jgroups.blocks.RpcDispatcher
          extended by org.jboss.cache.marshall.CommandAwareRpcDispatcher
              extended by org.jboss.cache.marshall.InactiveRegionAwareRpcDispatcher
All Implemented Interfaces:
org.jgroups.blocks.RequestHandler, org.jgroups.ChannelListener

public class InactiveRegionAwareRpcDispatcher
extends CommandAwareRpcDispatcher

Extends RpcDispatcher and adds the possibility that the marshaller may throw InactiveRegionExceptions.

Since:
2.0.0
Author:
Manik Surtani

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgroups.blocks.RpcDispatcher
org.jgroups.blocks.RpcDispatcher.Marshaller, org.jgroups.blocks.RpcDispatcher.Marshaller2, org.jgroups.blocks.RpcDispatcher.MarshallerAdapter
 
Field Summary
 
Fields inherited from class org.jboss.cache.marshall.CommandAwareRpcDispatcher
componentRegistry, interceptorChain, invocationContextContainer, trace
 
Fields inherited from class org.jgroups.blocks.RpcDispatcher
additionalChannelListeners, method_lookup, req_marshaller, rsp_marshaller, server_obj
 
Fields inherited from class org.jgroups.blocks.MessageDispatcher
adapter, channel, concurrent_processing, corr, deadlock_detection, handler, id, local_addr, log, members, membership_listener, msg_listener, prot_adapter, req_handler, transport_adapter
 
Constructor Summary
InactiveRegionAwareRpcDispatcher(org.jgroups.Channel channel, org.jgroups.MessageListener l, org.jgroups.MembershipListener l2, Object serverObj, InvocationContextContainer container, InterceptorChain interceptorChain, ComponentRegistry componentRegistry, RPCManager manager)
          Only provide the flavour of the RpcDispatcher constructor that we care about.
 
Method Summary
 Object handle(org.jgroups.Message req)
          Message contains MethodCall.
 void setRequestMarshaller(org.jgroups.blocks.RpcDispatcher.Marshaller m)
           
 
Methods inherited from class org.jboss.cache.marshall.CommandAwareRpcDispatcher
executeCommand, invokeRemoteCommands, isValid, setReplicationObserver, stop, toString
 
Methods inherited from class org.jgroups.blocks.RpcDispatcher
addChannelListener, callRemoteMethod, callRemoteMethod, callRemoteMethod, callRemoteMethod, callRemoteMethods, callRemoteMethods, callRemoteMethods, callRemoteMethods, callRemoteMethods, callRemoteMethods, callRemoteMethods, callRemoteMethods, callRemoteMethods, castMessage, channelClosed, channelConnected, channelDisconnected, channelReconnected, channelShunned, correlatorStarted, getMarshaller, getMethodLookup, getName, getRequestMarshaller, getResponseMarshaller, getServerObject, removeChannelListener, sendMessage, setMarshaller, setMethodLookup, setResponseMarshaller, setServerObject
 
Methods inherited from class org.jgroups.blocks.MessageDispatcher
castMessage, castMessage, castMessage, done, getChannel, getConcurrentProcessing, getDeadlockDetection, getMembers, getMessageListener, send, setChannel, setConcurrentProcessing, setDeadlockDetection, setMembershipListener, setMessageListener, setRequestHandler, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InactiveRegionAwareRpcDispatcher

public InactiveRegionAwareRpcDispatcher(org.jgroups.Channel channel,
                                        org.jgroups.MessageListener l,
                                        org.jgroups.MembershipListener l2,
                                        Object serverObj,
                                        InvocationContextContainer container,
                                        InterceptorChain interceptorChain,
                                        ComponentRegistry componentRegistry,
                                        RPCManager manager)
Only provide the flavour of the RpcDispatcher constructor that we care about.

Method Detail

setRequestMarshaller

public void setRequestMarshaller(org.jgroups.blocks.RpcDispatcher.Marshaller m)
Overrides:
setRequestMarshaller in class org.jgroups.blocks.RpcDispatcher

handle

public Object handle(org.jgroups.Message req)
Message contains MethodCall. Execute it against *this* object and return result. Use MethodCall.invoke() to do this. Return result.

Specified by:
handle in interface org.jgroups.blocks.RequestHandler
Overrides:
handle in class CommandAwareRpcDispatcher


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.