Package org.springframework.erlang

Examples of org.springframework.erlang.OtpIOException


  }

  public static OtpException convertOtpAccessException(Exception ex) {
    Assert.notNull(ex, "Exception must not be null");
    if (ex instanceof IOException) {
      return new OtpIOException((IOException) ex);
    }
    if (ex instanceof OtpAuthException) {
      return new org.springframework.erlang.OtpAuthException((OtpAuthException) ex);
    }
    //fallback
View Full Code Here


  public Connection createConnection() throws UnknownHostException, OtpAuthException, IOException {
    try {
      return new DefaultConnection(otpSelf.connect(otpPeer));
    } catch (IOException ex) {
      throw new OtpIOException("failed to connect from '" + this.selfNodeName + "' to peer node '"
          + this.peerNodeName + "'", ex);
    }
  }
View Full Code Here

        this.otpSelf = new OtpSelf(selfNodeNameToUse.trim(), this.cookie);
      } else {
        this.otpSelf = new OtpSelf(selfNodeNameToUse.trim());
      }
    } catch (IOException e) {
      throw new OtpIOException(e);
    }
    this.otpPeer = new OtpPeer(this.peerNodeName.trim());

  }
View Full Code Here

    synchronized (this.connectionMonitor) {
      if (this.connection == null) {
        try {
          initConnection();
        } catch (IOException e) {
          throw new OtpIOException("failed to connect from '"
              + this.selfNodeName + "' to peer node '"
              + this.peerNodeName + "'", e);
        }

      }
View Full Code Here

        this.otpSelf = new OtpSelf(selfNodeNameToUse.trim());
      } else {
        this.otpSelf = new OtpSelf(selfNodeNameToUse.trim(), this.cookie);
      }
    } catch (IOException e) {
      throw new OtpIOException(e);
    }
    this.otpPeer = new OtpPeer(this.peerNodeName.trim());
  }
View Full Code Here

TOP

Related Classes of org.springframework.erlang.OtpIOException

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.