private void notifyInterestRegistrationListeners( InterestRegistrationEvent event) { this.ccp.getCacheClientNotifier().notifyInterestRegistrationListeners( event); }
private void notifyInterestRegistrationListeners( InterestRegistrationEvent event) { this.ccp.getCacheClientNotifier().notifyInterestRegistrationListeners( event); }
private boolean containsInterestRegistrationListeners() { return this.ccp.getCacheClientNotifier() .containsInterestRegistrationListeners(); } }
private boolean containsInterestRegistrationListeners() { return this.ccp.getCacheClientNotifier() .containsInterestRegistrationListeners(); } }
private void notifyRegionOfInterest(InterestRegistrationEvent event) { this.ccp.getCacheClientNotifier().handleInterestEvent(event); }
private void notifyRegionOfInterest(InterestRegistrationEvent event) { this.ccp.getCacheClientNotifier().handleInterestEvent(event); }
private void closeSocket() { if (this._socketClosed.compareAndSet(false, true)) { // Close the socket this._cacheClientNotifier.getSocketCloser().asyncClose(this._socket, this._remoteHostAddress, null); getCacheClientNotifier().getAcceptorStats().decCurrentQueueConnections(); } }
private void closeTransientFields() { // Close the socket if (this._socket != null && !this._socket.isClosed()) { try { this._socket.close(); getCacheClientNotifier().getAcceptorStats().decCurrentQueueConnections(); } catch (IOException e) {/*ignore*/} } // Null out comm buffer, host address, ports and proxy id. All will be // replaced when the client reconnects. this._commBuffer = null; this._remoteHostAddress = null; try { this.cils[RegisterInterestTracker.interestListIndex].clearClientInterestList(); } catch (CacheClosedException e) { // ignore if cache is shutting down } // Commented to fix bug 40259 //this.clientVersion = null; closeNonDurableCqs(); }
logger.warn(LocalizedMessage.create(LocalizedStrings.CacheClientProxy_0__THE_EXPIRATION_TASK_HAS_FIRED_SO_THIS_PROXY_IS_BEING_TERMINATED, CacheClientProxy.this)); getCacheClientNotifier().removeClientProxy(CacheClientProxy.this); getCacheClientNotifier().durableClientTimedOut(CacheClientProxy.this.proxyID);
/** * Reinitialize a durable <code>CacheClientProxy</code> with a new client. * @param socket * The socket between the server and the client * @param ip * whether this proxy represents the primary */ protected void reinitialize(Socket socket, ClientProxyMembershipID proxyId, Cache cache, boolean ip, byte cc, Version ver) { // Re-initialize transient fields initializeTransientFields(socket, proxyId, ip, cc, ver); getCacheClientNotifier().getAcceptorStats().incCurrentQueueConnections(); // Cancel expiration task cancelDurableExpirationTask(true); // Set the message dispatcher's primary flag. This could go from primary // to secondary this._messageDispatcher._messageQueue.setPrimary(ip); this._messageDispatcher._messageQueue.setClientConflation(cc); reinitializeClientAuths(); this.creationDate = new Date(); if (logger.isDebugEnabled()) { logger.debug("{}: Has been reinitialized", this); } }
@Override public void run2() { _durableExpirationTask.compareAndSet(this, null); if (CacheClientProxy.this.getLoggerI18n().warningEnabled()) { CacheClientProxy.this.getLoggerI18n().warning(LocalizedStrings.CacheClientProxy_0__THE_EXPIRATION_TASK_HAS_FIRED_SO_THIS_PROXY_IS_BEING_TERMINATED, CacheClientProxy.this); } // Remove the proxy from the CacheClientNofier's registry getCacheClientNotifier().removeClientProxy(CacheClientProxy.this); // Close the proxy terminateDispatching(false); _cacheClientNotifier._statistics.incQueueDroppedCount(); }
chm.removeAllConnectionsAndUnregisterClient(proxyID); if (!getProxy().isDurable()) { getProxy().getCacheClientNotifier().unregisterClient(proxyID, false);
/** * Reinitialize a durable <code>CacheClientProxy</code> with a new client. * @param socket * The socket between the server and the client * @param ip * whether this proxy represents the primary */ protected void reinitialize(Socket socket, ClientProxyMembershipID proxyId, Cache cache, boolean ip, byte cc, Version ver) { // Re-initialize transient fields initializeTransientFields(socket, proxyId, ip, cc, ver); getCacheClientNotifier().getAcceptorStats().incCurrentQueueConnections(); // Cancel expiration task cancelDurableExpirationTask(true); // Set the message dispatcher's primary flag. This could go from primary // to secondary this._messageDispatcher._messageQueue.setPrimary(ip); this._messageDispatcher._messageQueue.setClientConflation(cc); reinitializeClientAuths(); this.creationDate = new Date(); if (this._logger.fineEnabled()) { this._logger.fine(this + ": Has been reinitialized"); } }
if (this._socket != null && !this._socket.isClosed()) { SocketCreator.asyncClose(this._socket, this.getLoggerI18n(), this._remoteHostAddress, null); getCacheClientNotifier().getAcceptorStats().decCurrentQueueConnections();
chm.removeAllConnectionsAndUnregisterClient(proxyID); if (!getProxy().isDurable()) { getProxy().getCacheClientNotifier().unregisterClient(proxyID, false);