Package org.bitcoinrt.server

Examples of org.bitcoinrt.server.ConnectionBroker


    context.load("classpath:META-INF/spring/integration/*-context.xml");
    context.registerShutdownHook();
    context.refresh();

    final ConnectionBroker connectionBroker = context.getBean(ConnectionBroker.class);

    if (LOGGER.isInfoEnabled()) {
      LOGGER.info("\n========================================================="
            + "\n                                                         "
            + "\n    Please press 'q + Enter' to quit the application.    "
            + "\n    For statistical information press 'i + Enter'.       "
            + "\n                                                         "
            + "\n    In your browser open:                                "
            + "\n    file:///.../src/main/webapp/index.html               "
            + "\n=========================================================" );
    }

    while (true) {

      final String input = scanner.nextLine();

      if("q".equals(input.trim())) {
        break;
      }
      else if("i".equals(input.trim()))  {
        LOGGER.info("\n========================================================="
              + "\n                                                         "
              + "\n Number of connected clients: " + connectionBroker.connectedClients()
              + "\n                                                         "
              + "\n=========================================================" );
      }

    }
View Full Code Here

TOP

Related Classes of org.bitcoinrt.server.ConnectionBroker

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.