Package org.apache.airavata.workflow.tracking.impl.publish

Examples of org.apache.airavata.workflow.tracking.impl.publish.WSMPublisher


    @org.junit.Test
    public final void testWSMPublisherConstructor1() {

        EndpointReference brokerEpr = new EndpointReference("http://invalid/broker/address");
        WSMPublisher publisher = new WSMPublisher(10, false, brokerEpr);

    }
View Full Code Here


    @org.junit.Test
    public final void testWSMPublisherConstructor2() {

        try {
            WSMPublisher publisher = new WSMPublisher(10, false, "http://invalid/broker/address", "TestTopic1");

        } catch (IOException e) {
            // fail("Test failed");
        }
View Full Code Here

    public final void testWSMPublisherConstructor3() {
        try {

            EndpointReference epr = new EndpointReference("http://invalid/broker/address");

            WSMPublisher publisher = new WSMPublisher(10, false, epr.getAddress());

        } catch (Exception e) {
            e.printStackTrace();
            // fail();
        }
View Full Code Here

            // According to addressing format.
            String eprFormat = "<BrokerEPR><wsa:Address xmlns:wsa=\"http://www.w3.org/2005/08/addressing\">%s</wsa:Address></BrokerEPR>";

            String str = String.format(eprFormat, "http://invalid/broker/address");

            WSMPublisher publisher = new WSMPublisher(10, false, str, true);

        } catch (Exception e) {
            e.printStackTrace();
            // fail();
        }
View Full Code Here

                // if a publisher class name has been defined to override the default WSM publisher, use it
                if (context.getPublisherImpl() != null) {
                    publisher = PublisherFactory.createSomePublisher(context.getPublisherImpl(), context);
                } else {
                    if (context.getTopic() == null) {
                        publisher = new WSMPublisher(100, context.isEnableAsyncPublishing(), context.getBrokerEpr()
                                .getAddress(), false);
                    } else {
                        publisher = new WSMPublisher(100, context.isEnableAsyncPublishing(), context.getBrokerEpr()
                                .getAddress(), context.getTopic());
                    }
                }
                publishermap.put(context.getBrokerEpr(), publisher);
            }
View Full Code Here

                // if a publisher class name has been defined to override the default WSM publisher, use it
                if (context.getPublisherImpl() != null) {
                    publisher = PublisherFactory.createSomePublisher(context.getPublisherImpl(), context);
                } else {
                    if (context.getTopic() == null) {
                        publisher = new WSMPublisher(100, context.isEnableAsyncPublishing(), context.getBrokerEpr()
                                .getAddress(), false);
                    } else {
                        publisher = new WSMPublisher(100, context.isEnableAsyncPublishing(), context.getBrokerEpr()
                                .getAddress(), context.getTopic());
                    }
                }
                publishermap.put(context.getBrokerEpr(), publisher);
            }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.tracking.impl.publish.WSMPublisher

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.