org.infinispan.commands.remote
Class BaseRpcCommand

java.lang.Object
  extended by 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


Field Summary
protected  String cacheName
           
protected  ComponentRegistry componentRegistry
           
protected  Configuration configuration
           
 
Constructor Summary
protected BaseRpcCommand()
           
protected BaseRpcCommand(String cacheName)
           
 
Method Summary
 String getCacheName()
           
 ComponentRegistry getComponentRegistry()
          Retrieves the component registry associated with this command
 Configuration getConfiguration()
          Retrieves the configuration associated with this command
 Address getOrigin()
          Get the origin of the command
 void injectComponents(Configuration configuration, ComponentRegistry componentRegistry)
          Sets up some more context for the invocation of this command, so that these components wouldn't need to be looked up again later.
 void setOrigin(Address origin)
          Set the origin of the command
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, getParameters, perform, setParameters
 

Field Detail

cacheName

protected String cacheName

configuration

protected Configuration configuration

componentRegistry

protected ComponentRegistry componentRegistry
Constructor Detail

BaseRpcCommand

protected BaseRpcCommand(String cacheName)

BaseRpcCommand

protected BaseRpcCommand()
Method Detail

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 command
componentRegistry - 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.