Examples of addMessage()


Examples of lupos.event.communication.BrokerUpdateMessageCollector.addMessage()

          }
        }
               
        if(sum>ownSum){
          BrokerUpdateMessage message = new BrokerUpdateMessage(chosenBroker.getMessageService().getConnectionInfo(),curCon);
          messageList.addMessage(message);
          System.out.println("Forwarded Consumer from "+subBroker.getMessageService().getConnectionInfo().getHost()
              +":"+subBroker.getMessageService().getConnectionInfo().getPort()+" to "
              +chosenBroker.getMessageService().getConnectionInfo().getHost()+":"
              +chosenBroker.getMessageService().getConnectionInfo().getPort());
        }
View Full Code Here

Examples of marauroa.client.net.TCPNetworkClientManager.addMessage()

    RPAction action = new RPAction();
    action.put("test", "hello world");
    MessageC2SAction msg = new MessageC2SAction(null, action);

    clientNet.addMessage(msg);

    MessageC2SAction recv = (MessageC2SAction)netMan.getMessage();

    assertEquals(msg.getRPAction(), recv.getRPAction());
  }
View Full Code Here

Examples of net.sf.gilead.sample.domain.User.addMessage()

       
      // create welcome messages
      Message message1 = new Message();
      message1.setMessage("First message");
      message1.setDate(new Date());
      user.addMessage(message1);
     
      // create welcome messages
      Message message2 = new Message();
      message2.setMessage("Another message");
      message2.setDate(new Date());
View Full Code Here

Examples of net.sf.logsaw.core.dialect.ILogEntryCollector.addMessage()

       
        if (log.getDialect().getFieldProvider().getTimestampField() == null) {
          // We have no barrier timestamp, so perform truncate to avoid duplicates
          truncate(log, writer);
         
          collector.addMessage(new Status(IStatus.INFO, IndexPlugin.PLUGIN_ID,
              Messages.LuceneIndexService_info_autoTruncate_noTimestampField));
        } else if (!hasDateComponent(log)) {
          // The date format only contains time components, so perform truncate to avoid duplicates
          truncate(log, writer);
         
View Full Code Here

Examples of net.sf.logsaw.core.dialect.support.ALogEntryCollector.addMessage()

       
        if (log.getDialect().getFieldProvider().getTimestampField() == null) {
          // We have no barrier timestamp, so perform truncate to avoid duplicates
          truncate(log, writer);
         
          collector.addMessage(new Status(IStatus.INFO, IndexPlugin.PLUGIN_ID,
              Messages.LuceneIndexService_info_autoTruncate_noTimestampField));
        } else if (!hasDateComponent(log)) {
          // The date format only contains time components, so perform truncate to avoid duplicates
          truncate(log, writer);
         
View Full Code Here

Examples of net.yacy.cora.document.RSSFeed.addMessage()

        this.sb = sb;
        sb.setConfig("yacyStatus", "");
       
        // create a peer news channel
        final RSSFeed peernews = yacyChannel.channels(yacyChannel.PEERNEWS);
        peernews.addMessage(new RSSMessage("YaCy started", "", ""));
       
        // ensure that correct IP is used
        final String staticIP = sb.getConfig("staticIP", "");
        if (staticIP.length() != 0 && yacySeed.isProperIP(staticIP) == null) {
            serverCore.useStaticIP = true;
View Full Code Here

Examples of nexj.core.meta.integration.MessageTable.addMessage()

      maker.addFile("b/c", "Contents of file c in directory b.");

      // Parse it
      MessageTable table = new MessageTable();

      table.addMessage(m_message);
      m_parser.initializeMessageTable(table);

      TransferObject root = m_parser.parse(
         new StreamInput(maker.getInputStream()), table);
      List filesList = (List)root.getValue("files");
View Full Code Here

Examples of nexj.core.runtime.UnitOfWork.addMessage()

               }

               TransferObject properties = new TransferObject(1);

               properties.setValue(JMSSender.USER, m_context.getPrincipal().getName());
               uow.addMessage(UnitOfWork.SYSTEM_QUEUE, request, properties, -1, -1, false);
               m_context.complete(true);
            }

            Response response = new Response();
View Full Code Here

Examples of org.activemq.service.MessageContainer.addMessage()

        if (dest != null && dest.isTopic() && message.getJMSDeliveryMode() == DeliveryMode.PERSISTENT) {
            // note that we still need to persist the message even if there are no matching
            // subscribers as they may come along later
            // plus we don't pre-load subscription information               
            final MessageContainer container = getContainer(dest.getPhysicalName());
            container.addMessage(message);
            TransactionManager.getContexTransaction().addPostCommitTask(new TransactionTask() {
                public void execute() throws Throwable {
                    doSendMessage(client, message, container);
                }
            });
View Full Code Here

Examples of org.activemq.service.QueueMessageContainer.addMessage()

        //ensure a matching container exists for the destination
        getContainer(((ActiveMQDestination) message.getJMSDestination()).getPhysicalName());
        Set set = destinationMap.get(message.getJMSActiveMQDestination());
        for (Iterator i = set.iterator();i.hasNext();) {
            QueueMessageContainer container = (QueueMessageContainer) i.next();
            container.addMessage(message);
            // Once transaction has completed.. dispatch the message.
            TransactionManager.getContexTransaction().addPostCommitTask(new TransactionTask(){
                public void execute() throws Throwable {
                    dispatcher.wakeup();
                    updateSendStats(client, message);
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.