Package org.apache.hadoop.ipc.Server

Examples of org.apache.hadoop.ipc.Server.Connection.timedOut()


   
    synchronized private void cleanupIdleConnections(String serverName) {
      long currentTime = System.currentTimeMillis();
      for (int i = 0; i < connectionArray.size();) {
        Connection c = connectionArray.get(i);
        if (c.timedOut(currentTime)) {
          if (Server.LOG.isDebugEnabled()) {
            Server.LOG.debug(serverName + ": disconnecting client "
                + c.getHostAddress());
          }
          closeConnectionWithoutException(c);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.