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, ClusteredQueryCommand, MapReduceCommand, RecoveryCommand, RemoveCacheCommand, StateTransferControlCommand

public abstract class BaseRpcCommand
extends Object
implements CacheRpcCommand


Field Summary
protected  String cacheName
           
 
Constructor Summary
protected BaseRpcCommand(String cacheName)
           
 
Method Summary
 String getCacheName()
           
 Address getOrigin()
          Get the origin of the command
 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, isReturnValueExpected, perform, setParameters
 

Field Detail

cacheName

protected final String cacheName
Constructor Detail

BaseRpcCommand

protected BaseRpcCommand(String cacheName)
Method Detail

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 © 2012 JBoss, a division of Red Hat. All Rights Reserved.