Examples of XBMeat


Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

  
   /**
    * For the new queues
    */
   public XBMeat getMeat() {
      XBMeat meat = new XBMeat();
      meat.setByteSize(getSizeInBytes());
      meat.setContent(msgUnit.getContent());
      meat.setDataType(getEmbeddedType());
      meat.setDurable(isPersistent());
      // meat.setFlag1(flag1);
      meat.setId(uniqueId);
      meat.setKey(msgUnit.getKey());
      meat.setQos(msgUnit.getQos());
      meat.setRefCount(1);
      return meat;
   }
View Full Code Here

Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

  
   /**
    * For the new queues
    */
   public XBMeat getMeat() {
      XBMeat meat = new XBMeat();
      meat.setByteSize(getSizeInBytes());
      meat.setContent(null);
      meat.setDataType(getEmbeddedType());
      meat.setDurable(isPersistent());
      meat.setId(uniqueId);
      meat.setQos(qos);
      meat.setRefCount(1);
      return meat;
   }
View Full Code Here

Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

   /**
    * For the new queues
    */
   public XBMeat getMeat() {
      XBMeat meat = new XBMeat();
      meat.setByteSize(getSizeInBytes());
      meat.setContent(null);
      meat.setDataType(getEmbeddedType());
      meat.setDurable(isPersistent());
      meat.setId(uniqueId);
      meat.setKey(key);
      meat.setQos(qos);
      meat.setRefCount(1);
      Map m = new TreeMap();
      m.put(XBMeat.SESSION_NAME, getSessionName());
      meat.setMetaInfo(StringPairTokenizer.mapToCSV(m));
      return meat;
   }
View Full Code Here

Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

         ref.setMeat(meat);
      return ref;
   }
  
   public void testEncoding() {
      XBMeat meat = new XBMeat();
   }
View Full Code Here

Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

      try {
         long t0 = System.currentTimeMillis();
         for (i=1; i < meats.length; i++) {
            Connection conn = pool.reserve();
            conn.setAutoCommit(true);
            XBMeat meat = meatFactory.get(stores[1], meats[i].getId(), conn, 60);
            meat.setRefCount(meat.getRefCount()+1);
            meatFactory.updateRefCounters(stores[1], meat, conn, 60);
            pool.release(conn);
         }

         long t1 = System.currentTimeMillis();
View Full Code Here

Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

    * @param id
    * @param size
    * @return
    */
   private XBMeat createSimpleMeat(long id, int size) {
      XBMeat ret = new XBMeat();
      ret.setId(id);
     
      if (size < 0)
         size = random.nextInt(-size);
      byte[] content = new byte[size];
      for (int i=0; i < content.length; i++)
         content[i] = (byte)i;
      ret.setContent(content);
      ret.setDataType("DUMMYTESTTYPE");
      ret.setDurable(true);
      ret.setFlag1(null);
      ret.setKey("<key></key>\n\n");
      ret.setQos("<qos></qos>");
      ret.setRefCount(0);
      ret.setByteSize(size + 128);
      ret.setStoreId(1);
      return ret;
   }
View Full Code Here

Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

  
   /**
    * For the new queues
    */
   public XBMeat getMeat() throws XmlBlasterException {
      XBMeat meat = new XBMeat();
      meat.setByteSize(getSizeInBytes());
      meat.setDataType(getEmbeddedType());
      meat.setDurable(isPersistent());
      // meat.setFlag1(flag1);
      meat.setId(getUniqueId());
      MsgUnit unit = getMsgUnit();
      if (unit != null) {
         meat.setContent(unit.getContent());
         meat.setKey(unit.getKey());
         meat.setQos(unit.getQos());
      }
      meat.setRefCount(1);
      return meat;
   }
View Full Code Here

Examples of org.xmlBlaster.util.queue.jdbc.XBMeat

  
   /**
    * For the new queues
    */
   public XBMeat getMeat() {
      XBMeat meat = new XBMeat();
      meat.setByteSize(getSizeInBytes());
      meat.setContent(msgUnit.getContent());
      meat.setDataType(getEmbeddedType());
      meat.setDurable(isPersistent());
      meat.setId(uniqueId);
      meat.setKey(msgUnit.getKey());
      meat.setQos(msgUnit.getQos());
      meat.setRefCount(referenceCounter);
      meat.setRefCount2(historyReferenceCounter);
      return meat;
   }
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.