org.infinispan.commands.remote
Class BaseRpcCommand
java.lang.Object
org.infinispan.commands.remote.BaseRpcCommand
- All Implemented Interfaces:
- CacheRpcCommand, ReplicableCommand
- Direct Known Subclasses:
- BaseRpcInvokingCommand, ClusteredGetCommand, MapReduceCommand, RecoveryCommand, RehashControlCommand, RemoveCacheCommand
public abstract class BaseRpcCommand
- extends Object
- implements CacheRpcCommand
cacheName
protected String cacheName
configuration
protected Configuration configuration
componentRegistry
protected ComponentRegistry componentRegistry
BaseRpcCommand
protected BaseRpcCommand(String cacheName)
BaseRpcCommand
protected BaseRpcCommand()
injectComponents
public void injectComponents(Configuration configuration,
ComponentRegistry componentRegistry)
- Description copied from interface:
CacheRpcCommand
- Sets up some more context for the invocation of this command, so that these components wouldn't need to be looked
up again later.
- Specified by:
injectComponents
in interface CacheRpcCommand
- Parameters:
configuration
- configuration of the named cache associated with this commandcomponentRegistry
- component registry of the named cache associated with this command
getConfiguration
public Configuration getConfiguration()
- Description copied from interface:
CacheRpcCommand
- Retrieves the configuration associated with this command
- Specified by:
getConfiguration
in interface CacheRpcCommand
- Returns:
- a Configuration instance
getComponentRegistry
public ComponentRegistry getComponentRegistry()
- Description copied from interface:
CacheRpcCommand
- Retrieves the component registry associated with this command
- Specified by:
getComponentRegistry
in interface CacheRpcCommand
- Returns:
- a component registry
getCacheName
public String getCacheName()
- Specified by:
getCacheName
in interface CacheRpcCommand
- Returns:
- the name of the cache that produced this command. This will also be the name of the cache this command is
intended for.
toString
public String toString()
- Overrides:
toString
in class Object
getOrigin
public Address getOrigin()
- Description copied from interface:
CacheRpcCommand
- Get the origin of the command
- Specified by:
getOrigin
in interface CacheRpcCommand
- Returns:
setOrigin
public void setOrigin(Address origin)
- Description copied from interface:
CacheRpcCommand
- Set the origin of the command
- Specified by:
setOrigin
in interface CacheRpcCommand
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.