Examples of publish()


Examples of com.taobao.metamorphosis.client.producer.MessageProducer.publish()

        final AsyncMessageSessionFactory sessionFactory = new AsyncMetaMessageSessionFactory(initMetaConfig());
        // create producer,ǿ�ҽ���ʹ�õ���
        final MessageProducer producer = sessionFactory.createAsyncProducer();
        // publish topic
        final String topic = "meta-test";
        producer.publish(topic);

        final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String line = null;
        while ((line = readLine(reader)) != null) {
            // send message
View Full Code Here

Examples of com.taobao.metamorphosis.client.producer.XAMessageProducer.publish()

            throws Exception {
        this.messages = new ArrayList<Message>();
        for (int j = 0; j < num; j++) {
            // ��Ҫ����topic
            final XAMessageProducer messageProducer = (XAMessageProducer) this.producerList.get(j);
            messageProducer.publish(topic);

            for (int i = 0; i < count; i++) {
                final byte[] data = ("hello" + j + i).getBytes();
                final Message msg = new Message(topic, data);
                final XAResource xares = messageProducer.getXAResource();
View Full Code Here

Examples of com.tuenti.supernanny.repo.Repository.publish()

    if (p != null && p.suffix != null) {
      suffix = p.suffix;
    }
    for (Export export : exports) {
      Repository repository = export.getRepository();
      repository.publish(export, version, prefix, suffix);
    }
  }
}
View Full Code Here

Examples of com.zanox.rabbiteasy.publisher.MessagePublisher.publish()

        PublisherConfiguration publisherConfiguration = publisherConfigurations.get(eventType);
        MessagePublisher publisher = providePublisher(publisherConfiguration.reliability, eventType);
        Message message = buildMessage(publisherConfiguration, event);
        try {
            LOGGER.info("Publishing event of type {}", eventType.getSimpleName());
            publisher.publish(message, publisherConfiguration.deliveryOptions);
            LOGGER.info("Successfully published event of type {}", eventType.getSimpleName());
        } catch (IOException e) {
            LOGGER.error("Failed to publish event {}", eventType.getSimpleName(), e);
            throw e;
        }
View Full Code Here

Examples of de.innovationgate.webgate.api.workflow.WGWorkflow.publish()

            release(comment, workflow);
            this.addWorkflowHistoryEntry("Released in project mode");
        }
        else {
           
            boolean result = workflow.publish(comment);
           
            if (result == false) {
                this.setStatus(WGContent.STATUS_REVIEW);
                this.addWorkflowHistoryEntry("Submitted for approval");
               
View Full Code Here

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

Examples of dojox.cometd.Channel.publish()

            }

            String output = conduit.toString();
            log.debug("<< "+output);
            Channel channel = bayeux.getChannel("/dwr" + fromClient.getId(), true);
            channel.publish(client, output, calls.getBatchId());
        }
        catch (Exception ex)
        {
            log.warn("Protocol Error", ex);
        }
View Full Code Here

Examples of edu.isi.karma.model.serialization.DataSourcePublisher.publish()

        logger.info("Service model has successfully been published to repository: " + service.getId());
        return new UpdateContainer(new InfoUpdate(
        "Service model has successfully been published to repository: " + service.getId()));
      } else { //if (source != null) {
        DataSourcePublisher sourcePublisher = new DataSourcePublisher(source, workspace.getFactory(), wk.getMetadataContainer().getSourceInformation());
        sourcePublisher.publish(Repository.Instance().LANG, true);
        logger.info("Source model has successfully been published to repository: " + source.getId());
        return new UpdateContainer(new InfoUpdate(
        "Source model has successfully been published to repository: " + source.getId()));
      }
View Full Code Here

Examples of edu.isi.karma.model.serialization.WebServicePublisher.publish()

    }
   
    try {
      if (service != null) {
        WebServicePublisher servicePublisher = new WebServicePublisher(service);
        servicePublisher.publish(Repository.Instance().LANG, true);
        logger.info("Service model has successfully been published to repository: " + service.getId());
        return new UpdateContainer(new InfoUpdate(
        "Service model has successfully been published to repository: " + service.getId()));
      } else { //if (source != null) {
        DataSourcePublisher sourcePublisher = new DataSourcePublisher(source, workspace.getFactory(), wk.getMetadataContainer().getSourceInformation());
View Full Code Here

Examples of info.ganglia.gmetric4j.Publisher.publish()

      }
      if (null != value) {
        Publisher gm = sampler.getPublisher();
        // log.finer("Announcing metric " + this.toString() + " value="
        // + value );
        gm.publish(process, publishName, value, getType(), getSlope(),
            sampler.getDelay(), getDMax(), getUnits());
      }

    } catch (javax.management.InstanceNotFoundException ex) {
      log.warning("Exception when getting " + objectName + " "
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.