Examples of storeMessage()


Examples of com.dianping.cat.storage.dump.LocalMessageBucketManager.storeMessage()

    localManager.setBaseDir(new File("target/bucket/hdfs/dump")); // make local and hdfs base dir same

    for (int i = 0; i < num; i++) {
      MessageTree tree = newMessageTree(factory.getNextId(), i, now + i * 10L);
      MessageId id = MessageId.parse(tree.getMessageId());
      localManager.storeMessage(tree,id);
    }

    for (int i = 0; i < num; i++) {
      String messageId = "source-7f000001-373203-" + i;
      MessageTree tree = hdfsManager.loadMessage(messageId);
View Full Code Here

Examples of com.stimulus.archiva.webservice.MailArchiva.storeMessage()

          ByteArrayOutputStream baos = new ByteArrayOutputStream();
          GZIPOutputStream gs = new GZIPOutputStream(baos);
          m.writeTo(gs);
          gs.finish();
          mailArchiva.storeMessage(baos.toByteArray());
          // m.setFlag(Flag.DELETED, true);
        }
        catch (Exception e)
        {
          log.error("failed to store message", e);
View Full Code Here

Examples of com.stimulus.archiva.webservice.MailArchiva.storeMessage()

     
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      GZIPOutputStream gs = new GZIPOutputStream(baos);
      m.writeTo(gs);
      gs.finish();
      mailArchiva.storeMessage(baos.toByteArray());
    }
    catch (MessagingException e)
    {
      log.error("Message not a valid email-file",e);
    }
View Full Code Here

Examples of com.stimulus.archiva.webservice.MailArchiva.storeMessage()

      MailArchiva mailArchiva = null;
      MailArchivaService service = new MailArchivaServiceLocator();
      try
      {
        mailArchiva = service.getMailArchiva(mailArchivaServerURL);
        mailArchiva.storeMessage(baos.toByteArray());
      }
      catch (Exception e)
      {
        log.error("failed to connect to mailarchiva server {url='" + mailArchivaServerURL.getHost() + "'}", e);
        System.exit(1);
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.persist.file.FileStore.storeMessage()

                            SysMessageID mid = message.getSysMessageID();

                            // Get interest states for the message; Consumer State table
                            HashMap stateMap = jdbcStore.getInterestStates(did, mid);
                            if (stateMap == null || stateMap.isEmpty()) {
                                bkrFS.storeMessage(did, message, false);
                            } else {
                                int size = stateMap.size();
                                ConsumerUID[] iids = new ConsumerUID[size];
                                int[] states  = new int[size];
                                Iterator stateItr = stateMap.entrySet().iterator();
View Full Code Here

Examples of com.sun.messaging.jmq.jmsserver.persist.file.FileStore.storeMessage()

                                    Map.Entry entry = (Map.Entry)stateItr.next();
                                    iids[j] = (ConsumerUID)entry.getKey();
                                    states[j] = ((Integer)entry.getValue()).intValue();
                                    j++;
                                }
                                bkrFS.storeMessage(did, message, iids, states, false);
                            }

                        }

                        } finally {
View Full Code Here

Examples of edu.indiana.extreme.www.xgws.msgbox.client.MsgBoxClient.storeMessage()

    for (int i = 0; i < 10; i++) {
      String msg = String.format(
          "<msg><seq>%d</seq><fill>%s</fill></msg>", i, fill);

      user.storeMessage(msgBoxEpr, 500L, MsgBoxUtils
          .reader2OMElement(new StringReader(msg)));

      Thread.sleep(200L);
    }
View Full Code Here

Examples of edu.indiana.extreme.www.xgws.msgbox.client.MsgBoxClient.storeMessage()

    //test publish with Epr
    EndpointReference msgBoxEpr = user.createMessageBox("http://localhost:"+port+"/axis2/services/MsgBoxService", 500L);
   
    System.out.println(msgBoxEpr.toString());
    user.storeMessage(msgBoxEpr, 500L, MsgBoxUtils
        .reader2OMElement(new StringReader(
            "<test>A simple test message</test>")));
   
   
   
View Full Code Here

Examples of edu.indiana.extreme.www.xgws.msgbox.client.MsgBoxClient.storeMessage()

    EndpointReference msgBoxEpr = client.createMessageBox(configurations
        .getProperty(ConfigKeys.MSGBOX_SERVICE_URL), 500L);

    try {
      client.storeMessage(msgBoxEpr, 500L, MsgBoxUtils
          .reader2OMElement(new StringReader(
              "<test>A simple test message</test>")));
    } catch (XMLStreamException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

Examples of games.stendhal.server.core.engine.db.PostmanDAO.storeMessage()

  public void execute(DBTransaction transaction) throws SQLException {
    CharacterDAO characterdao = DAORegister.get().get(CharacterDAO.class);
    accountName = characterdao.getAccountName(transaction, target);
    if (accountName != null) {
      PostmanDAO postmandao = DAORegister.get().get(PostmanDAO.class);
      postmandao.storeMessage(transaction, source, target, message, messagetype);
    }
  }

  /**
   * checks if account name could be found - which tells if the character whom the message was for, existed
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.