/** * Only need one since it does work for all regions, just reference by multiple region names. * <p> * @param ilca */ protected LateralTCPListener( ITCPLateralCacheAttributes ilca ) { this.setTcpLateralCacheAttributes( ilca ); }
/** * Used to key the instance TODO create another method for this and use toString for debugging * only. * <p> * @return String */ @Override public String toString() { return this.getTcpServer() + ":" + this.getTcpListenerPort(); } }
/** * @param item * @throws IOException */ @Override public void update( ICacheElement<K, V> item ) throws IOException { update( item, getListenerId() ); }
/** * @param cacheName * @param key * @return ICacheElement<K, V> if found. * @throws IOException */ @Override public ICacheElement<K, V> get( String cacheName, K key ) throws IOException { return get( cacheName, key, getListenerId() ); }
/** * Uses the default listener id and calls the next remove method. * <p> * @see org.apache.commons.jcs.engine.behavior.ICacheService#remove(String, Object) */ @Override public void remove( String cacheName, K key ) throws IOException { remove( cacheName, key, getListenerId() ); }
/** * @param cacheName * @throws IOException */ @Override public void removeAll( String cacheName ) throws IOException { removeAll( cacheName, getListenerId() ); }
@Override public void runTest() throws Exception { this.runTestForRegion( "region1", 1, 200, 1 ); } } );
/** * @throws Exception */ public void testPutLocalPutRemoteGetBusyVerifyRemoved() throws Exception { this.runTestForRegion( "region1", 1, 200, 1 ); }
/** * Will close the connection. * <p> * @param cacheName * @throws IOException */ @Override public void dispose( String cacheName ) throws IOException { sender.dispose(); }
@Override public void runTest() throws Exception { this.runTestForRegion( "region3", 10000, 12000, 3 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "region4", 10000, 11000, 5 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "region2", 10000, 12000, 2 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "region3", 10000, 13000, 4 ); } } );
/** * @param item * @throws IOException */ @Override public void update( ICacheElement<K, V> item ) throws IOException { update( item, getListenerId() ); }
/** * @param cacheName * @param key * @return ICacheElement<K, V> if found. * @throws IOException */ @Override public ICacheElement<K, V> get( String cacheName, K key ) throws IOException { return get( cacheName, key, getListenerId() ); }
@Override public void runTest() throws Exception { this.runTestForRegion( "region1", 1, 200, 1 ); } } );
/** * @throws Exception */ public void testPutLocalPutRemoteGetBusyVerifyRemoved() throws Exception { this.runTestForRegion( "region1", 1, 200, 1 ); }
/** * Will close the connection. * <p> * @param cacheName * @throws IOException */ @Override public void dispose( String cacheName ) throws IOException { sender.dispose(); }
@Override public void runTest() throws Exception { this.runTestForRegion( "region3", 10000, 12000, 3 ); } } );
@Override public void runTest() throws Exception { this.runTestForRegion( "region4", 10000, 11000, 5 ); } } );