org.infinispan.commands.remote
Interface CacheRpcCommand

All Superinterfaces:
ReplicableCommand
All Known Subinterfaces:
TransactionBoundaryCommand
All Known Implementing Classes:
AbstractTransactionBoundaryCommand, BaseRpcCommand, BaseRpcInvokingCommand, ClusteredGetCommand, CommitCommand, LockControlCommand, MultipleRpcCommand, PrepareCommand, RehashControlCommand, RollbackCommand, SingleRpcCommand

public interface CacheRpcCommand
extends ReplicableCommand

The RpcManager only replicates commands wrapped in a CacheRpcCommand.

Since:
4.0
Author:
Manik Surtani, Mircea.Markus@jboss.com

Method Summary
 String getCacheName()
           
 ComponentRegistry getComponentRegistry()
          Retrieves the component registry associated with this command
 Configuration getConfiguration()
          Retrieves the configuration associated with this command
 void injectComponents(Configuration cfg, ComponentRegistry cr)
          Sets up some more context for the invocation of this command, so that these components wouldn't need to be looked up again later.
 
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, getParameters, perform, setParameters
 

Method Detail

getCacheName

String getCacheName()
Returns:
the name of the cache that produced this command. This will also be the name of the cache this command is intended for.

injectComponents

void injectComponents(Configuration cfg,
                      ComponentRegistry cr)
Sets up some more context for the invocation of this command, so that these components wouldn't need to be looked up again later.

Parameters:
cfg - configuration of the named cache associated with this command
cr - component registry of the named cache associated with this command

getConfiguration

Configuration getConfiguration()
Retrieves the configuration associated with this command

Returns:
a Configuration instance

getComponentRegistry

ComponentRegistry getComponentRegistry()
Retrieves the component registry associated with this command

Returns:
a component registry


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