/** * 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 ); }