Package rabbit.io

Examples of rabbit.io.ConnectionHandler


          mc + "', using old value: " + maxConnections);
  }
    }

    private void setupConnectionHandler () {
  conhandler = new ConnectionHandler (logger, counter, this, selector);
  String p = conhandler.getClass ().getName ();
  conhandler.setup (logger, config.getProperties (p));
    }
View Full Code Here


  return PageCompletion.PAGE_DONE;
    }   
   
    private void addStatus (StringBuilder sb) {
  HttpProxy proxy = con.getProxy ();
  ConnectionHandler ch = proxy.getConnectionHandler ();
  sb.append ("<br>\n");
  sb.append ("Keepalive is set to: ");
  sb.append (ch.getKeepaliveTime () / 1000);
  sb.append (" s.<br>\n");
   sb.append (HtmlPage.getTableHeader (100, 1));
  sb.append (HtmlPage.getTableTopicRow ());
  sb.append ("<P><H1>keepalive connections</H1></P>\n");
  sb.append ("<th width=\"30%\">InetAddress</th>");
  sb.append ("<th width=\"20%\">Port</th>");
  sb.append ("<th width=\"50%\">#Connection</th>\n");

  Map<Address, List<WebConnection>> m = ch.getActiveConnections ();
  for (Map.Entry<Address, List<WebConnection>> me : m.entrySet ()) {
      Address a = me.getKey ();
      List<WebConnection> ls = me.getValue ();
      sb.append ("<tr><td>").append (a.getInetAddress ());
      sb.append ("</td><td>").append (a.getPort ());
View Full Code Here

TOP

Related Classes of rabbit.io.ConnectionHandler

Copyright © 2018 www.massapicom. 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.