Examples of toXml()


Examples of org.xmlBlaster.engine.msgstore.I_Map.toXml()

      if (topicProperty != null)
         sb.append(topicProperty.toXml(extraOffset+Constants.INDENT));

      I_Map msgUnitCache = this.msgUnitCache;
      if (msgUnitCache != null) {
         sb.append(msgUnitCache.toXml(extraOffset+Constants.INDENT));
      }

      I_Queue historyQueue = this.historyQueue;
      if (historyQueue != null) {
         sb.append(historyQueue.toXml(extraOffset+Constants.INDENT));
View Full Code Here

Examples of org.xmlBlaster.engine.qos.ConnectQosServer.toXml()

         // Extend qos to contain security credentials ...
         ConnectQosServer loginQos = new ConnectQosServer(glob, qos_literal);
         loginQos.loadClientPlugin(null, null, loginName, passwd);

         // No login using the connect() method ...
         ConnectReturnQosServer returnQos = connectIntern(loginQos.toXml());

         // Build return handle ...
         ServerRef ref = returnQos.getServerRef();
         if (ref == null) {
            throw OrbInstanceFactory.convert(new org.xmlBlaster.util.XmlBlasterException(glob,
View Full Code Here

Examples of org.xmlBlaster.engine.qos.ConnectReturnQosServer.toXml()

               }

               ConnectReturnQosServer retQos = authenticate.connect(conQos);
               this.secretSessionId = retQos.getSecretSessionId();
               receiver.setSecretSessionId(retQos.getSecretSessionId()); // executeResponse needs it
               executeResponse(receiver, retQos.toXml(), SocketUrl.SOCKET_TCP);
               driver.addClient(this.secretSessionId, this);
             }
            else if (MethodName.DISCONNECT == receiver.getMethodName()) {
               this.disconnectIsCalled = true;
               executeResponse(receiver, Constants.RET_OK, SocketUrl.SOCKET_TCP);   // ACK the disconnect to the client and then proceed to the server core
View Full Code Here

Examples of org.xmlBlaster.engine.qos.DisconnectQosServer.toXml()

      }
      log.warning(ME+": Session timeout for " + getLoginName() + " occurred, session '" + getSecretSessionId() + "' is expired, autologout");
      DisconnectQosServer qos = new DisconnectQosServer(glob);
      qos.deleteSubjectQueue(true);
      try {
         glob.getAuthenticate().disconnect(getAddressServer(), getSecretSessionId(), qos.toXml());
      } catch (XmlBlasterException e) {
         e.printStackTrace();
         log.severe(ME+": Internal problem with disconnect: " + e.toString());
      }
      //}
View Full Code Here

Examples of org.xmlBlaster.engine.qos.PublishQosServer.toXml()

            for (int i=0; i<contentLen; i++) {
               content.append("X");
            }
            contentStr = content.toString();
         }
         return new MsgUnit(glob, "<key oid='Hi'/>", contentStr.getBytes(), publishQosServer.toXml());
      }
      catch (XmlBlasterException ex) {
         fail("msgUnit not constructed: " + ex.getMessage());
      }
      return null;
View Full Code Here

Examples of org.xmlBlaster.engine.queuemsg.MsgQueueHistoryEntry.toXml()

               if (entry.isExpired()) {
                  if (log.isLoggable(Level.FINE)) log.fine(ME+": getMsgUnitWrapperArr(): MsgUnitWrapper weak reference from history queue is null, it is expired: " + entry.toXml());
               }
               else {
                  log.severe(ME+": getMsgUnitWrapperArr(): MsgUnitWrapper weak reference from history queue is null, this could be a serious bug, please report it to xmlBlaster@xmlBlaster.org mailing list: " +
                     entry.toXml() + "\n" + // toXml() not possible as it call recursive getMsgUnitWrapperArr());
                     ((this.msgUnitCache != null) ? this.msgUnitCache.toXml("") + "\n" : "") +
                     ((this.historyQueue != null) ? this.historyQueue.toXml("") : "")
                     );
                  Thread.dumpStack();
               }
View Full Code Here

Examples of org.xmlBlaster.engine.runlevel.PluginConfig.toXml()

         RunLevelAction action = new RunLevelAction(this.glob, "LOAD", 3, -1, ErrorCode.toErrorCode("internal.unknown"), 5);
         config.addAction(action);
         action = new RunLevelAction(this.glob, "STOP", -1, 2, null, 4);
         config.addAction(action);
    
         String xml = config.toXml();
         log.info(xml);
    
         PluginConfigSaxFactory factory = new PluginConfigSaxFactory(this.glob);
         config = factory.readObject(xml);
         RunLevelAction[] actions = config.getActions();
View Full Code Here

Examples of org.xmlBlaster.engine.runlevel.PluginHolder.toXml()

            pluginConfig = pluginHolder.getPluginConfig("avalon","storage:JDBC");

            //should be the individual of heron (not from xmlBlaster)
            pluginConfig = pluginHolder.getPluginConfig("heron","queueJDBC");

            xml = pluginHolder.toXml();
            log.info(xml);
         }
      }
      catch (XmlBlasterException e) {
         fail(me + " failed: " + e.toString());
View Full Code Here

Examples of org.xmlBlaster.engine.runlevel.RunLevelAction.toXml()

            assertEquals(me + " checking onStartupLevel attribute", 3, action.getOnStartupRunlevel());
            assertEquals(me + " checking sequence attribute", 5, action.getSequence());
            assertEquals(me + " checking hasOnFail", true, action.hasOnFail());
            assertEquals(me + " checking isOnShutdownLevel", false, action.isOnShutdownRunlevel());
            assertEquals(me + " checking isOnStartupLevel", true, action.isOnStartupRunlevel());
            xml = action.toXml();
            action = factory.readObject(xml);
            log.info("going to test the second time ...");
         }

         // now test a null string
View Full Code Here

Examples of org.xmlBlaster.util.EncodableData.toXml()

      if (this.pluginAttributes != null) {
         Iterator it = this.pluginAttributes.getClientPropertyMap().values().iterator();
         while (it.hasNext()) {
            Object obj = it.next();
            EncodableData cp = (EncodableData)obj;
            sb.append(cp.toXml(offset+" ", ClientProperty.ATTRIBUTE_TAG));
         }
      }
      sb.append(offset).append("</").append(rootTag).append(">");

      return sb.toString();
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.