Package net.sf.clairv.p2p

Examples of net.sf.clairv.p2p.OverlayNetworkException


    if (serverPortStr != null) {
      int port = Integer.parseInt(serverPortStr);
      if (Utils.isValidPort(port)) {
        this.remotePort = port;
      } else {
        throw new OverlayNetworkException("Invalid port number: "
            + port);
      }
    } else {
      log.error("Failed to obtain required property: " + serverPortKey
          + "; cannot send the message");
      throw new OverlayNetworkException("Missing required property: "
          + serverPortKey);
    }

    connectorConfig = new SocketConnectorConfig();
    connectorConfig.getFilterChain().addLast("logger", new LoggingFilter());
View Full Code Here


          try {
            messageAcceptor.bind(new InetSocketAddress("localhost",
                localPort), new ClientSideReceiverHandler(),
                cfg);
          } catch (IOException e) {
            throw new OverlayNetworkException(
                "Failed to bind to local port: " + localPort);
          }
        } else {
          throw new OverlayNetworkException("Invalid port number: "
              + port);
        }
      } catch (NumberFormatException e) {
        log.warn("Client port is configured incorrectly");
      }
View Full Code Here

TOP

Related Classes of net.sf.clairv.p2p.OverlayNetworkException

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.