Examples of EraseQosServer


Examples of org.xmlBlaster.engine.qos.EraseQosServer

         // import (decrypt) and authorize message
         MsgUnit msgUnit = importAndAuthorize(sessionInfo, addressServer,
                                       new MsgUnitRaw(xmlKey_literal, EMPTY_BYTEARR, qos_literal),
                                       MethodName.ERASE);

         EraseQosServer eraseQosServer = new EraseQosServer(glob, (QueryQosData)msgUnit.getQosData());

         // Invoke xmlBlaster
         String [] retArr = requestBroker.erase(sessionInfo, (QueryKeyData)msgUnit.getKeyData(), eraseQosServer);

         sessionInfo.getDispatchStatistic().incrNumErase(1);
View Full Code Here

Examples of org.xmlBlaster.engine.qos.EraseQosServer

      this.state = UNREFERENCED;

      TopicProperty topicProperty = this.topicProperty;
      if (!onAdministrativeCreate) {
         if (topicProperty == null) {
            EraseQosServer eraseQos = new EraseQosServer(serverScope, "<qos/>");
            eraseQos.setForceDestroy(true);
            notifyList = toDead(this.creatorSessionName, null, eraseQos);
            return notifyList; // ALIVE -> UNREFERENCED
         }
      }
View Full Code Here

Examples of org.xmlBlaster.engine.qos.EraseQosServer

    * @param eraseKey The original EraseKey
    * @param eraseQos
    */
   final void eraseRequest(SessionInfo sessionInfo, QueryKeyData eraseKey, EraseQosServer eraseQos) throws XmlBlasterException {
      if (log.isLoggable(Level.FINER)) log.finer(ME+": Entering fireEraseEvent forceDestroy=" + eraseQos.getForceDestroy());
      eraseQos = (eraseQos==null) ? new EraseQosServer(serverScope, new QueryQosData(serverScope, MethodName.ERASE)) : eraseQos;
      ArrayList notifyList = null;
      try {
         if (isAlive() || isUnconfigured()) {
            if (eraseQos.getForceDestroy()) {
               notifyList = toDead(sessionInfo.getSessionName(), eraseKey, eraseQos);
View Full Code Here

Examples of org.xmlBlaster.engine.qos.EraseQosServer

      EraseKey ek = new EraseKey(serverScope, uniqueKey);
      EraseQos eq = new EraseQos(serverScope);
      String[] eraseArr = this.requestBroker.erase(
                    this.requestBroker.getInternalSessionInfo(),
                    ek.getData(),
                    new EraseQosServer(this.serverScope, eq.getData()));
      if (eraseArr.length == 1) {
         log.info(ME+": Erased topic '" + getId() + "' due to administrative request");
         return "Erased topic '" + getId() + "'";
      }
      else {
View Full Code Here

Examples of org.xmlBlaster.engine.qos.EraseQosServer

   {
      if (msgQosData.isErased()) {
         String eraseKey = msgQosData.getClientProperty("__eraseKey", updateKey.toXml());
         QueryKeyData key = glob.getQueryKeyFactory().readObject(eraseKey);
         String eraseQos = msgQosData.getClientProperty("__eraseQos", "<qos/>");
         EraseQosServer qos = new EraseQosServer(glob, eraseQos);
         String[] ret = erase(sessionInfo, key, qos, true);
         if (ret != null && ret.length > 0)
            return ret[0];
         else
            return "<qos/>";
      }
      else {
         PublishQosServer qos = new PublishQosServer(glob, msgQosData);
         // Since xmlBlaster 1.6: We need to serialize and replace the original Global with ServerScope
         MsgUnit msgUnit = new MsgUnit(glob, updateKey.getData().toXml(), content, qos.getData().toXml());
         //MsgUnit msgUnit = new MsgUnit(updateKey.getData(), content, qos.getData());
         return publish(sessionInfo, msgUnit, true);
      }
   }
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.