/** * Synchronously dispose the remote cache; if failed, replace the remote handle with a zombie. * <p> * @throws IOException */ @Override protected void processDispose() throws IOException { if ( log.isInfoEnabled() ) { log.info( "Disposing of remote cache." ); } try { if ( getRemoteCacheListener() != null ) { getRemoteCacheListener().dispose(); } } catch ( Exception ex ) { log.error( "Couldn't dispose", ex ); handleException( ex, "Failed to dispose [" + cacheName + "]", ICacheEventLogger.DISPOSE_EVENT ); } }
/** * Synchronously dispose the remote cache; if failed, replace the remote handle with a zombie. * <p> * @throws IOException */ @Override protected void processDispose() throws IOException { if ( log.isInfoEnabled() ) { log.info( "Disposing of remote cache." ); } try { if ( getRemoteCacheListener() != null ) { getRemoteCacheListener().dispose(); } } catch ( Exception ex ) { log.error( "Couldn't dispose", ex ); handleException( ex, "Failed to dispose [" + cacheName + "]", ICacheEventLogger.DISPOSE_EVENT ); } }
/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return boolean, whether or not the item was removed * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { if ( log.isDebugEnabled() ) { log.debug( "remove> key=" + key ); } try { getRemoteCacheService().remove( cacheName, key, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove " + key + " from " + cacheName, ICacheEventLogger.REMOVE_EVENT ); } return true; } return false; }
handleException( ex, "Failed to getMatching [" + pattern + "] from [" + cacheName + "]", ICacheEventLogger.GET_EVENT );
/** * Synchronously remove from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @param key * @return boolean, whether or not the item was removed * @throws IOException */ @Override protected boolean processRemove( K key ) throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { if ( log.isDebugEnabled() ) { log.debug( "remove> key=" + key ); } try { getRemoteCacheService().remove( cacheName, key, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove " + key + " from " + cacheName, ICacheEventLogger.REMOVE_EVENT ); } return true; } return false; }
handleException( ex, "Failed to getMatching [" + pattern + "] from [" + cacheName + "]", ICacheEventLogger.GET_EVENT );
handleException( ex, "Failed to put [" + ce.getKey() + "] to " + ce.getCacheName(), ICacheEventLogger.UPDATE_EVENT );
handleException( ex, "Failed to put [" + ce.getKey() + "] to " + ce.getCacheName(), ICacheEventLogger.UPDATE_EVENT );
/** * Synchronously removeAll from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @throws IOException */ @Override protected void processRemoveAll() throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { try { getRemoteCacheService().removeAll( cacheName, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove all from " + cacheName, ICacheEventLogger.REMOVEALL_EVENT ); } } }
handleException( e, "Problem propagating events from Zombie Queue to new Remote Service.", "fixCache" );
/** * Synchronously removeAll from the remote cache; if failed, replace the remote handle with a * zombie. * <p> * @throws IOException */ @Override protected void processRemoveAll() throws IOException { if ( !this.getRemoteCacheAttributes().getGetOnly() ) { try { getRemoteCacheService().removeAll( cacheName, getListenerId() ); } catch ( Exception ex ) { handleException( ex, "Failed to remove all from " + cacheName, ICacheEventLogger.REMOVEALL_EVENT ); } } }
handleException( e, "Problem propagating events from Zombie Queue to new Remote Service.", "fixCache" );
handleException( ex, "Failed to get [" + key + "] from [" + cacheName + "]", ICacheEventLogger.GET_EVENT );
handleException( ex, "Failed to get [" + key + "] from [" + cacheName + "]", ICacheEventLogger.GET_EVENT );