Package com.ericsson.otp.erlang

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


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


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

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

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

            System.out.println("      subscribe(" + otpTopic.stringValue()
                    + ", " + otpURL.stringValue() + ") failed with abort: "
                    + e.getMessage());
        } catch (final UnknownException e) {
            System.out.println("      subscribe(" + otpTopic.stringValue()
                    + ", " + otpURL.stringValue() + ") failed with unknown: "
                    + e.getMessage());
        }

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

                final OtpErlangString otpValue = (OtpErlangString) otpValues
                        .elementAt(i);
                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());
                } 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());
                } catch (final TimeoutException e) {
                    System.out.println("      write(" + otpKey.stringValue()
                            + ", " + otpValue.stringValue()
                            + ") failed with timeout: " + e.getMessage());
View Full Code Here

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

            System.out.println("    `write(String, String)`...");
View Full Code Here

            final TransactionSingleOp sc = new TransactionSingleOp();
            System.out
                    .println("    `OtpErlangObject readObject(OtpErlangString)`...");
            otpValue = (OtpErlangString) sc.read(otpKey).value();
            System.out.println("      read(" + otpKey.stringValue() + ") == "
                    + otpValue.stringValue());
        } catch (final ConnectionException e) {
            System.out.println("      read(" + otpKey.stringValue()
                    + ") failed: " + e.getMessage());
        } catch (final TimeoutException e) {
            System.out.println("      read(" + otpKey.stringValue()
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.