gfe57Commands.put(MessageType.UPDATE_CLIENT_NOTIFICATION,UpdateClientNotification.getCommand()); gfe57Commands.put(MessageType.CLOSE_CONNECTION,CloseConnection.getCommand()); gfe57Commands.put(MessageType.CLIENT_READY,ClientReady.getCommand()); gfe57Commands.put(MessageType.INVALID,Invalid.getCommand()); gfe57Commands.put(MessageType.EXECUTECQ_MSG_TYPE,ExecuteCQ.getCommand());
@Override public void cmdExecute(Message msg, ServerConnection servConn, long start) throws IOException { CacheServerStats stats = servConn.getCacheServerStats(); { long oldStart = start; start = DistributionStats.getStatTime(); stats.incReadClientReadyRequestTime(start - oldStart); } try { String clientHost = servConn.getSocketHost(); int clientPort = servConn.getSocketPort(); if (logger.isDebugEnabled()) { logger.debug("{}: Received client ready request ({} bytes) from {} on {}:{}", servConn.getName(), msg.getPayloadLength(), servConn.getProxyID(), clientHost, clientPort); } servConn.getAcceptor().getCacheClientNotifier().readyForEvents(servConn.getProxyID()); long oldStart = start; start = DistributionStats.getStatTime(); stats.incProcessClientReadyTime(start - oldStart); writeReply(msg, servConn); servConn.setAsTrue(RESPONDED); if (logger.isDebugEnabled()) { logger.debug(servConn.getName() + ": Processed client ready request from " + servConn.getProxyID() + " on " + clientHost + ":" + clientPort); } } finally { stats.incWriteClientReadyResponseTime(DistributionStats.getStatTime() - start); } }
stats.incProcessClientReadyTime(start - oldStart); writeReply(msg, servConn); servConn.setAsTrue(RESPONDED);
gfe57Commands.put(MessageType.UPDATE_CLIENT_NOTIFICATION,UpdateClientNotification.getCommand()); gfe57Commands.put(MessageType.CLOSE_CONNECTION,CloseConnection.getCommand()); gfe57Commands.put(MessageType.CLIENT_READY,ClientReady.getCommand()); gfe57Commands.put(MessageType.INVALID,Invalid.getCommand());