protected void resumeDispatching() { if (getLoggerI18n().infoEnabled()) { getLoggerI18n().info(LocalizedStrings.CacheClientProxy_0__RESUMING_PROCESSING, this); } // Notify thread to resume this._pausedLock.notifyAll(); }
if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Stopping dispatching"); if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Exception occurred while trying to stop dispatching", e);
if (getLoggerI18n().fineEnabled() || BridgeServerImpl.VERBOSE) { getLoggerI18n().info(LocalizedStrings.DEBUG, "Dispatching " + clientMessage); if (getLoggerI18n().finerEnabled()) { StringBuilder msg = new StringBuilder(100); msg.append(this).append(": Using latest value: ").append(Arrays.toString(latestValue)); getLoggerI18n().finer(msg.toString()); if (getLoggerI18n().finerEnabled()) { getLoggerI18n().finer(this + ": Dispatched " + clientMessage); if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine("Message Dispatcher of a Paused CCProxy " + "is trying to dispatch message");
if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Beginning to process events"); if (getLoggerI18n().fineEnabled()) getLoggerI18n().fine("Slow start for testing interrupted" if (getLoggerI18n().warningEnabled()) { getLoggerI18n().warning(LocalizedStrings.CacheClientProxy_0_SLEEP_INTERRUPTED, this); if (getLoggerI18n().warningEnabled()) { getLoggerI18n().warning( LocalizedStrings.CacheClientProxy_0_PROXY_CLOSING_DUE_TO_UNEXPECTED_BROKEN_PIPE_ON_SOCKET_CONNECTION, this); if (getLoggerI18n().warningEnabled()) { getLoggerI18n().warning( LocalizedStrings.CacheClientProxy_0_PROXY_CLOSING_DUE_TO_UNEXPECTED_RESET_ON_SOCKET_CONNECTION, this); if (getLoggerI18n().warningEnabled()) { getLoggerI18n().warning( LocalizedStrings.CacheClientProxy_0_PROXY_CLOSING_DUE_TO_UNEXPECTED_RESET_BY_PEER_ON_SOCKET_CONNECTION, this); if (getLoggerI18n().infoEnabled()) { getLoggerI18n().info( LocalizedStrings.CacheClientProxy_0_PROXY_CLOSING_DUE_TO_SOCKET_BEING_CLOSED_LOCALLY, this);
.getDeltaPropagation() && !(this._proxy.clientConflation == HandShake.CONFLATION_ON); if (getLoggerI18n().fineEnabled() && (createDurableQueue || canHandleDelta)) { getLoggerI18n().fine("Creating a durable HA queue");
if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": " + ex);
private void sendMessageDirectly(ClientMessage clientMessage) { Message message; try { if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Dispatching directly: " + clientMessage); if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Dispatched directly: " + clientMessage); if (getLoggerI18n().severeEnabled()) { getLoggerI18n().severe(LocalizedStrings.CacheClientProxy_0__AN_UNEXPECTED_EXCEPTION_OCCURRED, this, e); if (getLoggerI18n().severeEnabled()) { getLoggerI18n().severe(LocalizedStrings.CacheClientProxy_0__AN_UNEXPECTED_EXCEPTION_OCCURRED, this, e);
if(this._proxy.isPaused() && this._proxy.isDurable()){ this._proxy._cacheClientNotifier._statistics.incEventEnqueuedWhileClientAwayCount(); if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Queued message while Durable Client is away " + clientMessage); getLoggerI18n() .severe( LocalizedStrings.CacheClientProxy_0_EXCEPTION_OCCURRED_WHILE_ATTEMPTING_TO_ADD_MESSAGE_TO_QUEUE,
protected void enqueueMarker(ClientMessage message) { try { if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Queueing marker message. <" + message + ">. The queue contains " + getQueueSize() + " entries."); } this._messageQueue.put(message); if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": Queued marker message. The queue contains " + getQueueSize() + " entries."); } } catch (CancelException e) { throw e; } catch (Exception e) { if (!isStopped()) { if (getLoggerI18n().severeEnabled()) { getLoggerI18n().severe(LocalizedStrings.CacheClientProxy_0__EXCEPTION_OCCURRED_WHILE_ATTEMPTING_TO_ADD_MESSAGE_TO_QUEUE, this, e); } } } }
protected void waitForResumption() throws InterruptedException { synchronized (this._pausedLock) { if (getLoggerI18n().infoEnabled()) { getLoggerI18n().info(LocalizedStrings.CacheClientProxy_0__PAUSING_PROCESSING, this); } if (!getProxy().isPaused()) { return; } while (getProxy().isPaused()) { this._pausedLock.wait(); } } }
private void basicStopDispatching() { if (getLoggerI18n().fineEnabled()) { getLoggerI18n().fine(this + ": notified dispatcher to stop "); } this._isStopped = true; // this.interrupt(); // don't interrupt here. Let close(boolean) do this. }