Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangString.stringValue()


            final TransactionSingleOp sc = new TransactionSingleOp();
            System.out
                    .println("    `void writeObject(OtpErlangString, OtpErlangObject)`...");
            sc.write(otpKey, otpValue);
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") succeeded");
        } catch (final ConnectionException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed: " + e.getMessage());
        } catch (final TimeoutException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
View Full Code Here


            sc.write(otpKey, otpValue);
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") succeeded");
        } catch (final ConnectionException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed: " + e.getMessage());
        } catch (final TimeoutException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with timeout: "
                    + e.getMessage());
        } catch (final AbortException e) {
View Full Code Here

        } catch (final ConnectionException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed: " + e.getMessage());
        } catch (final TimeoutException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with timeout: "
                    + e.getMessage());
        } catch (final AbortException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with abort: "
                    + e.getMessage());
View Full Code Here

            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with timeout: "
                    + e.getMessage());
        } catch (final AbortException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with abort: "
                    + e.getMessage());
        } catch (final UnknownException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with unknown: "
                    + e.getMessage());
View Full Code Here

            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with abort: "
                    + e.getMessage());
        } catch (final UnknownException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with unknown: "
                    + e.getMessage());
        }

        try {
            System.out.println("  creating object...");
View Full Code Here

        } catch (final TimeoutException e) {
            System.out.println("      write(" + key + ", " + value
                    + ") failed with timeout: " + e.getMessage());
        } catch (final AbortException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with abort: "
                    + e.getMessage());
        } catch (final UnknownException e) {
            System.out.println("      write(" + key + ", " + value
                    + ") failed with unknown: " + e.getMessage());
        }
View Full Code Here

            final PubSub sc = new PubSub();
            System.out
                    .println("    `void publish(OtpErlangString, OtpErlangString)`...");
            sc.publish(otpTopic, otpContent);
            System.out.println("      publish(" + otpTopic.stringValue() + ", "
                    + otpContent.stringValue() + ") succeeded");
        } catch (final ConnectionException e) {
            System.out.println("      publish(" + otpTopic.stringValue() + ", "
                    + otpContent.stringValue() + ") failed: " + e.getMessage());
        }
View Full Code Here

            sc.publish(otpTopic, otpContent);
            System.out.println("      publish(" + otpTopic.stringValue() + ", "
                    + otpContent.stringValue() + ") succeeded");
        } catch (final ConnectionException e) {
            System.out.println("      publish(" + otpTopic.stringValue() + ", "
                    + otpContent.stringValue() + ") failed: " + e.getMessage());
        }

        try {
            System.out.println("  creating object...");
            final PubSub sc = new PubSub();
View Full Code Here

        final OtpErlangString otpKey = new OtpErlangString(key);
        final OtpErlangString otpValue = new OtpErlangString(value);
        try {
            transaction.write(otpKey, otpValue);
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") succeeded");
        } catch (final ConnectionException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed: " + e.getMessage());
            throw new ConnectionException(e);
        } catch (final TimeoutException e) {
View Full Code Here

            transaction.write(otpKey, otpValue);
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") succeeded");
        } catch (final ConnectionException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed: " + e.getMessage());
            throw new ConnectionException(e);
        } catch (final TimeoutException e) {
            System.out.println("      write(" + otpKey.stringValue() + ", "
                    + otpValue.stringValue() + ") failed with timeout: "
                    + e.getMessage());
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.