org.infinispan.commands.remote
Class BaseRpcCommand

java.lang.Object
  extended by org.infinispan.commands.remote.BaseRpcCommand
All Implemented Interfaces:
CacheRpcCommand, ReplicableCommand
Direct Known Subclasses:
MultipleRpcCommand, SingleRpcCommand

public abstract class BaseRpcCommand
extends Object
implements CacheRpcCommand

Base class for RPC commands.

Author:
Mircea.Markus@jboss.com

Field Summary
protected  String cacheName
           
protected  InvocationContextContainer icc
           
protected  InterceptorChain interceptorChain
           
 
Constructor Summary
protected BaseRpcCommand(String cacheName)
           
 
Method Summary
 String getCacheName()
           
 void init(InterceptorChain interceptorChain, InvocationContextContainer icc)
           
protected  Object processVisitableCommand(ReplicableCommand cacheCommand)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.commands.ReplicableCommand
getCommandId, getParameters, perform, setParameters
 

Field Detail

interceptorChain

protected InterceptorChain interceptorChain

icc

protected InvocationContextContainer icc

cacheName

protected 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.

init

public void init(InterceptorChain interceptorChain,
                 InvocationContextContainer icc)

processVisitableCommand

protected final Object processVisitableCommand(ReplicableCommand cacheCommand)
                                        throws Throwable
Throws:
Throwable


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