org.shoal.ha.cache.impl.interceptor
Class CommandMonitorInterceptor<K,V>

java.lang.Object
  extended by org.shoal.ha.cache.api.AbstractCommandInterceptor<K,V>
      extended by org.shoal.ha.cache.impl.interceptor.CommandMonitorInterceptor<K,V>

public class CommandMonitorInterceptor<K,V>
extends AbstractCommandInterceptor<K,V>

Author:
Mahesh Kannan

Field Summary
 
Fields inherited from class org.shoal.ha.cache.api.AbstractCommandInterceptor
dsc, storeName
 
Constructor Summary
CommandMonitorInterceptor()
           
 
Method Summary
 int getReceiveCount()
           
 int getTransmitCount()
           
 void onReceive(Command cmd, java.lang.String initiator)
           
 void onTransmit(Command cmd, java.lang.String initiator)
           
 
Methods inherited from class org.shoal.ha.cache.api.AbstractCommandInterceptor
getCommandManager, getDataStoreContext, getNext, getPrev, initialize, setNext, setPrev
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandMonitorInterceptor

public CommandMonitorInterceptor()
Method Detail

onTransmit

public void onTransmit(Command cmd,
                       java.lang.String initiator)
                throws DataStoreException
Overrides:
onTransmit in class AbstractCommandInterceptor<K,V>
Throws:
DataStoreException

onReceive

public void onReceive(Command cmd,
                      java.lang.String initiator)
               throws DataStoreException
Overrides:
onReceive in class AbstractCommandInterceptor<K,V>
Throws:
DataStoreException

getTransmitCount

public int getTransmitCount()

getReceiveCount

public int getReceiveCount()


Copyright © 2010. All Rights Reserved.