Package org.shoal.ha.cache.impl.command
Class CommandManager<K,V>
- java.lang.Object
-
- org.shoal.ha.cache.impl.util.MessageReceiver
-
- org.shoal.ha.cache.impl.command.CommandManager<K,V>
-
- All Implemented Interfaces:
com.sun.enterprise.ee.cms.core.CallBack
public class CommandManager<K,V> extends MessageReceiver
- Author:
- Mahesh Kannan
-
-
Constructor Summary
Constructors Constructor Description CommandManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidexecute(Command<K,V> cmd)voidexecuteCommand(Command<K,V> cmd, boolean forward, java.lang.String initiator)protected voidhandleMessage(java.lang.String sourceMemberName, java.lang.String token, byte[] messageData)voidinitialize(DataStoreContext<K,V> dsc)voidregisterCommand(Command command)voidregisterExecutionInterceptor(AbstractCommandInterceptor<K,V> interceptor)-
Methods inherited from class org.shoal.ha.cache.impl.util.MessageReceiver
processNotification
-
-
-
-
Method Detail
-
initialize
public void initialize(DataStoreContext<K,V> dsc)
-
registerCommand
public void registerCommand(Command command)
-
registerExecutionInterceptor
public void registerExecutionInterceptor(AbstractCommandInterceptor<K,V> interceptor)
-
execute
public void execute(Command<K,V> cmd) throws DataStoreException
- Throws:
DataStoreException
-
executeCommand
public final void executeCommand(Command<K,V> cmd, boolean forward, java.lang.String initiator) throws DataStoreException
- Throws:
DataStoreException
-
handleMessage
protected void handleMessage(java.lang.String sourceMemberName, java.lang.String token, byte[] messageData)- Specified by:
handleMessagein classMessageReceiver
-
close
public void close()
-
-