/** * Gets the cache that was injected by the lateral factory. Calls getKeySet on the cache. * <p> * @param cacheName the name of the cache * @return a set of keys * @throws IOException */ public Set<K> handleGetKeySet( String cacheName ) throws IOException { return getCache( cacheName ).getKeySet(true); }
/** * Gets the cache that was injected by the lateral factory. Calls getKeySet on the cache. * <p> * @param cacheName the name of the cache * @return a set of keys * @throws IOException */ public Set<K> handleGetKeySet( String cacheName ) throws IOException { return getCache( cacheName ).getKeySet(true); }
/** * Gets the cache that was injected by the lateral factory. Calls removeAll on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handleRemoveAll(java.lang.String) */ @Override public void handleRemoveAll( String cacheName ) throws IOException { if ( log.isDebugEnabled() ) { log.debug( "handleRemoveAll> cacheName=" + cacheName ); } getCache( cacheName ).localRemoveAll(); }
/** * Gets the cache that was injected by the lateral factory. Calls removeAll on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handleRemoveAll(java.lang.String) */ @Override public void handleRemoveAll( String cacheName ) throws IOException { if ( log.isDebugEnabled() ) { log.debug( "handleRemoveAll> cacheName=" + cacheName ); } getCache( cacheName ).localRemoveAll(); }
/** * Increments the remove count. Gets the cache that was injected by the lateral factory. Calls * remove on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handleRemove(java.lang.String, * Object) */ @Override public void handleRemove( String cacheName, K key ) throws IOException { removeCnt++; if ( log.isInfoEnabled() ) { if ( getRemoveCnt() % 100 == 0 ) { log.info( "Remove Count = " + getRemoveCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleRemove> cacheName=" + cacheName + ", key=" + key ); } getCache( cacheName ).localRemove( key ); }
/** * Increments the remove count. Gets the cache that was injected by the lateral factory. Calls * remove on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handleRemove(java.lang.String, * Object) */ @Override public void handleRemove( String cacheName, K key ) throws IOException { removeCnt++; if ( log.isInfoEnabled() ) { if ( getRemoveCnt() % 100 == 0 ) { log.info( "Remove Count = " + getRemoveCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleRemove> cacheName=" + cacheName + ", key=" + key ); } getCache( cacheName ).localRemove( key ); }
/** * Gets the cache that was injected by the lateral factory. Calls get on the cache. * <p> * @param cacheName * @param key * @return a ICacheElement * @throws IOException */ public ICacheElement<K, V> handleGet( String cacheName, K key ) throws IOException { getCnt++; if ( log.isInfoEnabled() ) { if ( getGetCnt() % 100 == 0 ) { log.info( "Get Count (port " + getTcpLateralCacheAttributes().getTcpListenerPort() + ") = " + getGetCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleGet> cacheName=" + cacheName + ", key = " + key ); } return getCache( cacheName ).localGet( key ); }
/** * Gets the cache that was injected by the lateral factory. Calls get on the cache. * <p> * @param cacheName the name of the cache * @param pattern the matching pattern * @return Map * @throws IOException */ public Map<K, ICacheElement<K, V>> handleGetMatching( String cacheName, String pattern ) throws IOException { getCnt++; if ( log.isInfoEnabled() ) { if ( getGetCnt() % 100 == 0 ) { log.info( "GetMatching Count (port " + getTcpLateralCacheAttributes().getTcpListenerPort() + ") = " + getGetCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleGetMatching> cacheName=" + cacheName + ", pattern = " + pattern ); } return getCache( cacheName ).localGetMatching( pattern ); }
/** * Gets the cache that was injected by the lateral factory. Calls get on the cache. * <p> * @param cacheName * @param key * @return a ICacheElement * @throws IOException */ public ICacheElement<K, V> handleGet( String cacheName, K key ) throws IOException { getCnt++; if ( log.isInfoEnabled() ) { if ( getGetCnt() % 100 == 0 ) { log.info( "Get Count (port " + getTcpLateralCacheAttributes().getTcpListenerPort() + ") = " + getGetCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleGet> cacheName=" + cacheName + ", key = " + key ); } return getCache( cacheName ).localGet( key ); }
/** * Gets the cache that was injected by the lateral factory. Calls get on the cache. * <p> * @param cacheName the name of the cache * @param pattern the matching pattern * @return Map * @throws IOException */ public Map<K, ICacheElement<K, V>> handleGetMatching( String cacheName, String pattern ) throws IOException { getCnt++; if ( log.isInfoEnabled() ) { if ( getGetCnt() % 100 == 0 ) { log.info( "GetMatching Count (port " + getTcpLateralCacheAttributes().getTcpListenerPort() + ") = " + getGetCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handleGetMatching> cacheName=" + cacheName + ", pattern = " + pattern ); } return getCache( cacheName ).localGetMatching( pattern ); }
/** * Increments the put count. Gets the cache that was injected by the lateral factory. Calls put * on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handlePut(org.apache.commons.jcs.engine.behavior.ICacheElement) */ @Override public void handlePut( ICacheElement<K, V> element ) throws IOException { putCnt++; if ( log.isInfoEnabled() ) { if ( getPutCnt() % 100 == 0 ) { log.info( "Put Count (port " + getTcpLateralCacheAttributes().getTcpListenerPort() + ") = " + getPutCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handlePut> cacheName=" + element.getCacheName() + ", key=" + element.getKey() ); } getCache( element.getCacheName() ).localUpdate( element ); }
/** * Increments the put count. Gets the cache that was injected by the lateral factory. Calls put * on the cache. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheListener#handlePut(org.apache.commons.jcs.engine.behavior.ICacheElement) */ @Override public void handlePut( ICacheElement<K, V> element ) throws IOException { putCnt++; if ( log.isInfoEnabled() ) { if ( getPutCnt() % 100 == 0 ) { log.info( "Put Count (port " + getTcpLateralCacheAttributes().getTcpListenerPort() + ") = " + getPutCnt() ); } } if ( log.isDebugEnabled() ) { log.debug( "handlePut> cacheName=" + element.getCacheName() + ", key=" + element.getKey() ); } getCache( element.getCacheName() ).localUpdate( element ); }