Class GlobalInboundInvocationHandler
java.lang.Object
org.infinispan.remoting.inboundhandler.GlobalInboundInvocationHandler
- All Implemented Interfaces:
InboundInvocationHandler
InboundInvocationHandler implementation that handles all the ReplicableCommand.
This component handles the ReplicableCommand from local and remote site. The remote
site ReplicableCommand are sent to the BackupReceiver to
be handled.
Also, the non-CacheRpcCommand are processed directly and the CacheRpcCommand are processed in the cache's PerCacheInboundInvocationHandler implementation.- Since:
- 7.1
- Author:
- Pedro Ruivo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheStopped(CacheStoppedEvent event) getLocalCacheForRemoteSite(String remoteSite, ByteString remoteCache) test only! See BackupCacheStoppedTestvoidhandleFromCluster(Address origin, ReplicableCommand command, Reply reply, DeliverOrder order) Handles theReplicableCommandfrom other node belonging to local site.voidhandleFromRemoteSite(String origin, XSiteReplicateCommand<?> command, Reply reply, DeliverOrder order) Handles theReplicableCommandfrom remote site.voidstart()voidstop()
-
Constructor Details
-
GlobalInboundInvocationHandler
public GlobalInboundInvocationHandler()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
cacheStopped
-
handleFromCluster
public void handleFromCluster(Address origin, ReplicableCommand command, Reply reply, DeliverOrder order) Description copied from interface:InboundInvocationHandlerHandles theReplicableCommandfrom other node belonging to local site.- Specified by:
handleFromClusterin interfaceInboundInvocationHandler- Parameters:
origin- the senderAddresscommand- theReplicableCommandto handlerreply- the return value is passed to this object in order to be sent back to the originorder- theDeliverOrderin which the command was sent
-
handleFromRemoteSite
public void handleFromRemoteSite(String origin, XSiteReplicateCommand<?> command, Reply reply, DeliverOrder order) Description copied from interface:InboundInvocationHandlerHandles theReplicableCommandfrom remote site.- Specified by:
handleFromRemoteSitein interfaceInboundInvocationHandler- Parameters:
origin- the sender sitecommand- theReplicableCommandto handlereply- the return value is passed to this object in order to be sent back to the originorder- theDeliverOrderin which the command was sent
-
getLocalCacheForRemoteSite
test only! See BackupCacheStoppedTest
-