private boolean handshakeAccepted() { if (logger.isDebugEnabled()) { logger.debug("{}: Accepted handshake", this.name); } if (this.communicationMode == CommunicationMode.ClientToServerForQueue) { this.stats.incCurrentQueueConnections(); } else { this.stats.incCurrentClientConnections(); } return true; }
/** * 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); } }
new ClientInterestList(this, this.getDurableId()); this.postAuthzCallback = null; this._cacheClientNotifier.getAcceptorStats().incCurrentQueueConnections(); this.creationDate = new Date(); initializeClientAuths();