Examples of toXml()


Examples of org.xmlBlaster.util.qos.MsgQosData.toXml()

         //msgQosData.dirtyRead(null);//NodeId
         msgQosData.setPriority(PriorityEnum.LOW4_PRIORITY);
         msgQosData.setFromPersistenceStore(true);
         msgQosData.setLifeTime(4000L);
         msgQosData.setRemainingLifeStatic(6000L);
         MsgUnit msgUnit  = new MsgUnit(key.toXml(), content, msgQosData.toXml());

         log.fine("Testing" + msgQosData.toXml());

         SessionName receiver = new SessionName(glob, "receiver1");
         String subscriptionId = "subid";
View Full Code Here

Examples of org.xmlBlaster.util.qos.QueryQosData.toXml()

            String qos = entry.getQos();
            QueryQosData qosData = global.getQueryQosFactory().readObject(qos);

            ClientProperty clientProperty = qosData.getClientProperty(Constants.PERSISTENCE_ID);
            if (clientProperty == null) {
               log.severe("SubscribeQos with missing " + Constants.PERSISTENCE_ID + ": " + qosData.toXml());
               long uniqueId = new Timestamp().getTimestamp();
               qosData.getClientProperties().put(Constants.PERSISTENCE_ID, new ClientProperty(Constants.PERSISTENCE_ID, "long", null, "" + uniqueId));
            }

            boolean initialUpdates = qosData.getInitialUpdateProp().getValue();
View Full Code Here

Examples of org.xmlBlaster.util.qos.StatusQosData.toXml()

            "   <key oid='yourMessageOid'/>\n" +
            "   <subscribe id='_subId:1'/>\n" +
            "</qos>\n";

         StatusQosData qos = factory.readObject(xml);
         String newXml = qos.toXml();
         log.info("New XML=" + newXml);
         qos = factory.readObject(newXml);

         assertEquals("", Constants.STATE_ERASED, qos.getState());
         assertEquals("", false, qos.isOk());
View Full Code Here

Examples of org.xmlBlaster.util.qos.TopicProperty.toXml()

               topicProperty.setDestroyDelay(60000L);
               topicProperty.setCreateDomEntry(true);
               topicProperty.setReadonly(false);
               topicProperty.getHistoryQueueProperty().setMaxEntries(numPub+5);
               pq.setTopicProperty(topicProperty);
               log.info("Added TopicProperty on first publish: " + topicProperty.toXml());
            }

            byte[] content = "Hello".getBytes();
            MsgUnit msgUnit = new MsgUnit(pk, content, pq);
            sentArr[i] = msgUnit;
View Full Code Here

Examples of org.xmlBlaster.util.qos.address.Address.toXml()

            a.setPingInterval(54321L);
            a.setRetries(17);
            a.setDelay(7890L);
            a.setOneway(true);
            a.setSecretSessionId("0x4546hwi89");
            System.out.println(a.toXml());
            assertEquals("", "SOCKET", a.getType());
            assertEquals("", "oioihost", a.getBootstrapHostname());
            assertEquals("", 9999, a.getBootstrapPort());
            assertEquals("", "127.0.0.1:7600", a.getRawAddress());
            assertEquals("", 12345L, a.getCollectTime());
View Full Code Here

Examples of org.xmlBlaster.util.qos.address.AddressBase.toXml()

      if (addressArr.length > 0 && addressArr[0] != null) {
         sb.append(">");
         for (int ii=0; ii<addressArr.length; ii++) {
            AddressBase ad = addressArr[ii];
            sb.append(ad.toXml(extraOffset+Constants.INDENT));
         }
         sb.append(offset).append("</").append(getRootTagName()).append(">")// closing </queue>
      }
      else
         sb.append("/>");
View Full Code Here

Examples of org.xmlBlaster.util.qos.address.Destination.toXml()

         //sb.append(offset + " <Pub_Sub_style />");
      }
      else {
         for (int ii=0; ii<list.size(); ii++) {
            Destination destination = (Destination)list.get(ii);
            sb.append(destination.toXml(extraOffset+Constants.INDENT));
         }
      }
      if (msgQosData.getSender() != null) {
         sb.append(offset).append(" <sender>").append(msgQosData.getSender().getAbsoluteName()).append("</sender>");
      }
View Full Code Here

Examples of org.xmlBlaster.util.qos.storage.ClientQueueProperty.toXml()

               ClientQueueProperty prop = this.connectQos.getClientQueueProperty();
               StorageId storageId = createStorageId(Constants.RELATING_CLIENT);
               this.clientQueue = glob.getQueuePluginManager().getPlugin(prop.getType(), prop.getVersion(), storageId,
                                                      this.connectQos.getClientQueueProperty());
               if (this.clientQueue == null) {
                  String text = "The client queue plugin is not found with this configuration, please check your connect QoS: " + prop.toXml();
                  throw new XmlBlasterException(glob, ErrorCode.USER_CONFIGURATION, ME, text);
               }

               if (this.msgErrorHandler == null) {
                  this.msgErrorHandler = new ClientErrorHandler(glob, this);
View Full Code Here

Examples of org.xmlBlaster.util.qos.storage.MsgUnitStoreProperty.toXml()

                 MsgUnitStoreProperty p = (MsgUnitStoreProperty)m.getProperties();
                 long bc = (c != null) ? c.getNumOfCachedBytes() : 0;
                 long ec = (c != null) ? c.getNumOfCachedEntries() : 0;
                 out.write(("\n   <persistence relating='msgUnitStore' entries='"+m.getNumOfEntries()
                       +"' entriesCache='"+ec+"' bytes='"+m.getNumOfBytes()+"' bytesCache='"+bc+"'/>").getBytes("UTF-8"));
                 out.write(p.toXml("  ").getBytes("UTF-8"));
                 out.write(("\n </topic></TopicHandler>").getBytes("UTF-8"));
                 currentBytes += m.getNumOfBytes();
                 currentBytesCache += bc;
                 currentEntries += m.getNumOfEntries();
                 currentEntriesCache += ec;
View Full Code Here

Examples of org.xmlBlaster.util.qos.storage.QueuePropertyBase.toXml()

      System.out.println("***" + ME);
     
      QueuePropertyBase prop = (QueuePropertyBase)i_map.getProperties();
      assertEquals(ME+": Wrong capacity", 10, prop.getMaxEntries());
      assertEquals(ME+": Wrong cache capacity", 2, prop.getMaxEntriesCache());
      log.info("Current settings: " + prop.toXml());

      try {
         //========== Test 1: getAllSwapped()
         {
            MsgUnitWrapper[] queueEntries = {
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.