Examples of publish()


Examples of net.engio.mbassy.bus.MBassador.publish()

  public void testSimpleStringCondition() throws Exception {
    MBassador bus = createBus(SyncAsync());
    bus.subscribe(new ConditionalMessageListener());

    TestEvent message = new TestEvent("TEST", 0);
    bus.publish(message);

    assertTrue(message.wasHandledBy("handleTypeMessage", "handleEnvelopedMessage"));
        assertFalse(message.wasHandledBy("handleInvalidEL"));
  }
View Full Code Here

Examples of net.sourceforge.cruisecontrol.Publisher.publish()

    public void publish(Element log) throws CruiseControlException {
        if (shouldPublish(log)) {
            for (Iterator iterator = publishers.iterator(); iterator.hasNext();) {
                Publisher publisher = (Publisher) iterator.next();
                publisher.publish(log);
            }
        }
    }

    public void validate() throws CruiseControlException {
View Full Code Here

Examples of net.sourceforge.rmilite.Server.publish()

    private void launch(final String[] args) throws Exception {
        int port = Integer.parseInt(args[0]);
        Server server;
        server = new Server(port);
        server.publish(IJavaRuntimeInstantiator.class, new JavaRuntimeInstantiatorImpl(dropFirstArg(args)), EXPORTED_INTERFACES);
    }

    private String[] dropFirstArg(String[] args) {
        String[] newArgs = new String[args.length - 1];
        System.arraycopy(args, 1, newArgs, 0, args.length - 1);
View Full Code Here

Examples of org.apache.airavata.workflow.tracking.impl.publish.NotificationPublisher.publish()

            xmlMessage.getNotificationSource().setExperimentID(context.getTopic());
            // System.out.println(xmldata);
            if (log.isDebugEnabled()) {
                log.debug(xmldata.toString());
            }
            publisher.publish(xmldata);
        } catch (RuntimeException e) {
            throw new WorkflowTrackingException(e);
        } catch (IOException e) {
            throw new WorkflowTrackingException(e);
        }
View Full Code Here

Examples of org.apache.airavata.wsmg.client.WseMsgBrokerClient.publish()

        WseMsgBrokerClient client = new WseMsgBrokerClient();
        client.init(BROKER_URL);

        OMElement msg = WorkFlowUtils.reader2OMElement(new StringReader(CommonUtils.WORKFLOW_INITIALIZED_NOTIFICATION));

        client.publish(TEST_TOPIC, msg);

        EndpointReference MSG_BOX_EPR = subscription.getMessageBoxEPR();
        System.out.println(MSG_BOX_EPR);
        String subscriptionID = subscription.getSubscriptionID();
        Callback testCallback2 = new Callback() {
View Full Code Here

Examples of org.apache.airavata.wsmg.client.WsntMsgBrokerClient.publish()

        UUID uuid = UUID.randomUUID();
        count++;
        OMElement omMsg = MsgUtil.createMsg(count, getName(), uuid
            .toString());
        //MsgUtil.print("seding msg", omMsg);
        client.publish(topicExpression, omMsg);

        TimeUnit.SECONDS
            .sleep(getRandomSleepTime(timeIntervalUpperLimit));
      }
View Full Code Here

Examples of org.apache.axis2.jaxws.server.endpoint.EndpointImpl.publish()

    return createAndPublishEndpoint(s, obj, (WebServiceFeature[]) null);
    }

    public Endpoint createAndPublishEndpoint(String s, Object obj, WebServiceFeature... features) {
        Endpoint ep = new EndpointImpl(obj);
        ep.publish(s);
        return ep;
    }

    @Override
    public Endpoint createEndpoint(String binding, Object obj) {
View Full Code Here

Examples of org.apache.cloudstack.framework.events.EventBus.publish()

        }

        event.setDescription(eventDescription);

        try {
            eventBus.publish(event);
        } catch (EventBusException evx) {
            String errMsg = "Failed to publish async job event on the the event bus.";
            s_logger.warn(errMsg, evx);
            throw new CloudRuntimeException(errMsg);
        }
View Full Code Here

Examples of org.apache.cocoon.portal.event.Publisher.publish()

                } else {
                    Iterator iter = this.labelManager.getPageLabelEvents(label).iterator();
                    // Publish all the events for this page label.
                    while (iter.hasNext()) {
                        Event event = (Event) iter.next();
                        publisher.publish(event);
                    }
            //        return;
                }
            }
        }
View Full Code Here

Examples of org.apache.cometd.bayeux.Channel.publish()

                        Message m = b.newMessage(c);
                        m.put("stock", stock.toString());
                        m.put("symbol", stock.getSymbol());
                        m.put("price", stock.getValueAsString());
                        m.put("change", stock.getLastChangeAsString());
                        ch.publish(m);
                        System.out.println("Stock: "+stock.getSymbol()+" Price: "+stock.getValueAsString()+" Change: "+stock.getLastChangeAsString());
                    }
                    Thread.sleep(850);
                }
            } catch (InterruptedException ix) {
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.