Package de.zib.scalaris

Examples of de.zib.scalaris.PubSub.publish()


        try {
            System.out.println("  creating object...");
            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


        try {
            System.out.println("  creating object...");
            final PubSub sc = new PubSub();
            System.out.println("    `void publish(String, String)`...");
            sc.publish(topic, content);
            System.out.println("      publish(" + topic + ", " + content
                    + ") succeeded");
        } catch (final ConnectionException e) {
            System.out.println("      publish(" + topic + ", " + content
                    + ") failed: " + 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.