Examples of toXml()


Examples of org.xmlBlaster.client.qos.SubscribeQos.toXml()

      SubscribeKey subKeyW = new SubscribeKey(glob, publishOid1);
      String subKey = subKeyW.toXml(); // "<key oid='" + publishOid1 + "' queryType='EXACT'></key>";

      SubscribeQos subQosW = new SubscribeQos(glob); // "<qos></qos>";
      String subQos = subQosW.toXml();

      manyClients = new Client[numClients];

      log.info("Setting up " + numClients + " subscriber clients ...");
      stopWatch = new StopWatch();
View Full Code Here

Examples of org.xmlBlaster.client.qos.SubscribeReturnQos.toXml()

      numReceived = 0;
      subscribeOid = null;
      try {
         SubscribeReturnQos subscribeReturnQos = senderConnection.subscribe(xmlKey, null);
         subscribeOid = subscribeReturnQos.getSubscriptionId();
         log.info("Success: Subscribe subscription-id=" + subscribeOid + " done: " + subscribeReturnQos.toXml());
      } catch(XmlBlasterException e) {
         log.warning("XmlBlasterException: " + e.getMessage());
         assertTrue("subscribe - XmlBlasterException: " + e.getMessage(), false);
      }
      assertTrue("returned null subscribeOid", subscribeOid != null);
View Full Code Here

Examples of org.xmlBlaster.client.qos.UnSubscribeQos.toXml()

      log.info("unSubscribing a volatile message ...");
      try {
         // Subscribe for the volatile message
         UnSubscribeKey sk = new UnSubscribeKey(glob, subscribeReturnQos.getSubscriptionId());
         UnSubscribeQos sq = new UnSubscribeQos(glob);
         con.unSubscribe(sk.toXml(), sq.toXml());
         log.info("UnSubscribing of '" + publishOid + "' done");
      } catch(XmlBlasterException e) {
         log.severe("unSubscribe() XmlBlasterException: " + e.getMessage());
         assertTrue("unSubscribe - XmlBlasterException: " + e.getMessage(), false);
      }
View Full Code Here

Examples of org.xmlBlaster.client.qos.UpdateReturnQos.toXml()

                   "' state=" + updateQos.getState() +
                   " content=" + new String(content) +
                   " clientProperty myAge=" + myAge + " from xmlBlaster");

      UpdateReturnQos uq = new UpdateReturnQos(glob);
      return uq.toXml();
   }

   /**
    * Try
    * <pre>
 
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwriter.info.SqlDescription.toXml()

                     int ret = desc.update(conn, row, parser);
                     if (ret != 1)
                        throw new Exception("the number of updated entries is wrong '" + ret + "' but should be 1");
                  }
                  catch(Exception ex) {
                     log.info("exception when updating '" + row.toXml("") + " where description is '" + desc.toXml("") + "'");
                     throw ex;
                  }
                  try {
                     int ret = desc.delete(conn, row);
                     if (ret != 1)
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwriter.info.SqlInfo.toXml()

            SqlInfo dbUpdateInfo = parser.parse(msg);
            String createStatement = dbSpecific.getCreateTableStatement(dbUpdateInfo.getDescription(), null);
            log.fine("=============================================");
            log.fine(createStatement);
            log.fine("=============================================");
            String msg1 = dbUpdateInfo.toXml("");
            log.fine("original message: " + message);
            log.fine("parsed message: " + msg1);
            int numOfCols = dbUpdateInfo.getDescription().getColumns().length;
            assertTrue("Number of columns must be at least one (to detect that metadata is retrieved)", numOfCols > 0);
            assertXMLEqual("Parsing of message is working correctly: output xml is not the same as input xml", msg, msg1);
View Full Code Here

Examples of org.xmlBlaster.contrib.dbwriter.info.SqlRow.toXml()

            conn.setAutoCommit(false);
            try {
               for (int i=0; i < rows.size(); i++) {
                  SqlRow row = (SqlRow)rows.get(i);
                  ClientProperty oldRowProp = new ClientProperty(ReplicationConstants.OLD_CONTENT_ATTR, null, null, row.toXml("", false));
                  row.setAttribute(oldRowProp);
                  try {
                     I_Parser parser = new SqlInfoParser();
                     parser.init(this.info);
                     int ret = desc.update(conn, row, parser);
View Full Code Here

Examples of org.xmlBlaster.contrib.replication.TableToWatchInfo.toXml()

               boolean addTrigger = tableToWatch.isReplicate();
               if (addTrigger) { // create the function and trigger here
                  addTrigger(conn, tableToWatch, sqlInfo, false);
               }
               else
                  log.info("trigger will not be added since entry '" + tableToWatch.toXml() + "' will not be replicated");
            }
            else {
               log.info("table to watch '" + table + "' not found");
            }
         }
View Full Code Here

Examples of org.xmlBlaster.engine.MsgUnitWrapper.toXml()

         assertEquals("", PriorityEnum.HIGH_PRIORITY.toString(), qos.getPriority().toString());
         assertEquals("", timestamp.getTimestamp(), qos.getRcvTimestamp().getTimestamp());
         System.out.println("SUCCESS BEFORE: " + msgUnitWrapper.toXml());
         System.out.println("SUCCESS AFTER: " + newWrapper.toXml());

         // The remaing life changes so we can't compare the XML strings directly:
         //assertEquals("OLD="+msgUnitWrapper.getMsgQosData().toXml()+"\nNEW="+newWrapper.getMsgQosData().toXml(), msgUnitWrapper.getMsgQosData().toXml(), newWrapper.getMsgQosData().toXml());
         assertEquals("", msgUnitWrapper.getMsgQosData().toXml().length(), newWrapper.getMsgQosData().toXml().length());
         assertEquals("", msgUnitWrapper.getMsgKeyData().toXml(), newWrapper.getMsgKeyData().toXml());
View Full Code Here

Examples of org.xmlBlaster.engine.cluster.ClusterNode.toXml()

            "</clusternode>\n";

         NodeParser nodeParser = new NodeParser(serverScope, new ClusterNode(
               serverScope, new NodeId("avalon"), null), xml);
         ClusterNode clusterNode = nodeParser.getClusterNode();
         log.info(clusterNode.toXml());
        
         Address address = clusterNode.getNodeInfo()
               .getConnectQosData().getAddress();
         assertEquals("IOR:09456087000", address.getRawAddress().trim());
         assertEquals(false, address.getEnv("useRemoteLoginAsTunnel", false)
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.