Examples of deleteSubjectQueue()


Examples of org.xmlBlaster.client.qos.DisconnectQos.deleteSubjectQueue()

         fail("testParse failed: " + e.toString());
      }

      {
         DisconnectQos qos = new DisconnectQos(this.glob);
         assertEquals("deleteSubjectQueue failed", true, qos.deleteSubjectQueue());
         assertEquals("clearSessions failed", false, qos.clearSessions());
      }

      System.out.println("***DisconnectQosTest: testParse [SUCCESS]");
   }
View Full Code Here

Examples of org.xmlBlaster.client.qos.DisconnectQos.deleteSubjectQueue()

                     log.warning("Callback server is lost, killing login session of client " +
                                   ((msgQueue == null) ? "unknown" : msgQueue.getStorageId().toString()) +
                                   ": " + message);
                     try {
                        DisconnectQos disconnectQos = new DisconnectQos(glob);
                        disconnectQos.deleteSubjectQueue(false);
                        glob.getAuthenticate().disconnect(this.sessionInfo.getAddressServer(),
                                            this.sessionInfo.getSecretSessionId(), disconnectQos.toXml());
                     }
                     catch (XmlBlasterException e) {
                        if (e.isErrorCode(ErrorCode.USER_SECURITY_AUTHENTICATION_ACCESSDENIED) ||
View Full Code Here

Examples of org.xmlBlaster.client.qos.DisconnectQos.deleteSubjectQueue()

      synchronized(this) {
         this.isValid = false;
         DisconnectQos disconnectQos = new DisconnectQos(glob);
         disconnectQos.clearClientQueue(false);
         disconnectQos.clearSessions(false);
         disconnectQos.deleteSubjectQueue(false);
         disconnectQos.setLeaveServer(true);
         disconnectQos.shutdownCbServer(true);
         disconnectQos.shutdownDispatcher(true);
         shutdown(disconnectQos);
      }
View Full Code Here

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

         DisconnectQosServer disconnectQos = new DisconnectQosServer(glob, qos_literal);

         boolean forceShutdownEvenIfEntriesExist = false;

         resetSessionInfo(sessionInfo, disconnectQos.deleteSubjectQueue(), forceShutdownEvenIfEntriesExist, true);

         if (disconnectQos.clearSessions() == true && subjectInfo.getNumSessions() > 0) {
            //Specific deleting for pubSessionId< or >0 not yet implemented
            //SessionInfo[] sessions = subjectInfo.getSessionsToClear(connectQos);
            SessionInfo[] sessions = subjectInfo.getSessions();
View Full Code Here

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

   public void testParse() {
      System.out.println("***DisconnectQosTest: testParse ...");
     
      try {
         DisconnectQosServer qos = new DisconnectQosServer(this.glob, "<qos><deleteSubjectQueue>false</deleteSubjectQueue><clearSessions>true</clearSessions></qos>");
         assertEquals("deleteSubjectQueue failed", false, qos.deleteSubjectQueue());
         assertEquals("clearSessions failed", true, qos.clearSessions());

         qos = new DisconnectQosServer(this.glob, "<qos/>");
         assertEquals("deleteSubjectQueue failed", true, qos.deleteSubjectQueue());
         assertEquals("clearSessions failed", false, qos.clearSessions());
View Full Code Here

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

         DisconnectQosServer qos = new DisconnectQosServer(this.glob, "<qos><deleteSubjectQueue>false</deleteSubjectQueue><clearSessions>true</clearSessions></qos>");
         assertEquals("deleteSubjectQueue failed", false, qos.deleteSubjectQueue());
         assertEquals("clearSessions failed", true, qos.clearSessions());

         qos = new DisconnectQosServer(this.glob, "<qos/>");
         assertEquals("deleteSubjectQueue failed", true, qos.deleteSubjectQueue());
         assertEquals("clearSessions failed", false, qos.clearSessions());
      }
      catch (XmlBlasterException e) {
         fail("testParse failed: " + e.toString());
      }
View Full Code Here

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

         fail("testParse failed: " + e.toString());
      }

      {
         DisconnectQos qos = new DisconnectQos(this.glob);
         assertEquals("deleteSubjectQueue failed", true, qos.deleteSubjectQueue());
         assertEquals("clearSessions failed", false, qos.clearSessions());
      }

      System.out.println("***DisconnectQosTest: testParse [SUCCESS]");
   }
View Full Code Here

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

      synchronized (this.EXPIRY_TIMER_MONITOR) {
         this.timerKey = null;
      }
      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
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.