Examples of removeSession()


Examples of org.jivesoftware.openfire.SessionManager.removeSession()

        Set<String> anonymousUsers = lookupJIDList(key, anonymousC2SCache.getName());
        if (!anonymousUsers.isEmpty()) {
            for (String fullJID : new ArrayList<String>(anonymousUsers)) {
                JID offlineJID = new JID(fullJID);
                manager.removeSession(null, offlineJID, true, true);
            }
        }

        // Remove outgoing server sessions hosted in node that left the cluster
        Set<String> remoteServers = lookupJIDList(key, S2SCache.getName());
View Full Code Here

Examples of org.modeshape.jcr.JcrRepository.RunningState.removeSession()

            RunningState running = repository.runningState();
            long lifetime = Math.abs(System.nanoTime() - this.nanosCreated);
            Map<String, String> payload = Collections.singletonMap("userId", getUserID());
            running.statistics().recordDuration(DurationMetric.SESSION_LIFETIME, lifetime, TimeUnit.NANOSECONDS, payload);
            running.statistics().decrement(ValueMetric.SESSION_COUNT);
            running.removeSession(this);
        } catch (IllegalStateException e) {
            // The repository has been shutdown
        } finally {
            if (bufferMgr != null) {
                try {
View Full Code Here

Examples of org.serviceconnector.server.CascadedSC.removeSession()

    case CASCADED_PUBLISH_SERVICE:
      CascadedPublishService cascadedPublishService = (CascadedPublishService) abstractService;
      // publish service is cascaded
      CascadedSC cascadedSC = cascadedPublishService.getCascadedSC();
      // free server from subscription
      cascadedSC.removeSession(subscription);
      ClnUnsubscribeCommandCallback callback = new ClnUnsubscribeCommandCallback(request, response, responderCallback,
          subscription);
      cascadedSC.cascadedSCUnsubscribe(cascadedPublishService.getCascClient(), reqMessage, callback, oti);
      return;
    default:
View Full Code Here

Examples of org.serviceconnector.server.CascadedSC.removeSession()

    case CASCADED_CACHE_GUARDIAN:
      CascadedPublishService cascadedPublishService = (CascadedPublishService) abstractService;
      // publish service is cascaded
      CascadedSC cascadedSC = cascadedPublishService.getCascadedSC();
      // free server from subscription
      cascadedSC.removeSession(subscription);
      ClnUnsubscribeCommandCallback callback = new ClnUnsubscribeCommandCallback(request, response, responderCallback,
          subscription);
      cascadedSC.cascadedSCUnsubscribe(cascadedPublishService.getCascClient(), reqMessage, callback, oti);
      return;
    default:
View Full Code Here

Examples of org.serviceconnector.server.IStatefulServer.removeSession()

  /** {@inheritDoc} */
  @Override
  public void receive(SCMPMessage reply) {
    // free server from subscription
    IStatefulServer server = this.subscription.getServer();
    server.removeSession(subscription);
    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    // forward server reply to client
    reply.setIsReply(true);
    reply.setServiceName(serviceName);
View Full Code Here

Examples of org.serviceconnector.server.IStatefulServer.removeSession()

    String sid = reqMessage.getSessionId();
    String serviceName = reqMessage.getServiceName();
    LOGGER.warn("receive exception sid=" + sid + " service=" + " " + ex.toString());
    // free server from subscription
    IStatefulServer server = this.subscription.getServer();
    server.removeSession(subscription);
    SCMPMessage fault = null;
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling
      fault = new SCMPMessageFault(SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC cln unsubscribe sid=" + sid);
    } else if (ex instanceof IOException) {
View Full Code Here

Examples of org.serviceconnector.server.IStatefulServer.removeSession()

    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    IStatefulServer server = this.cascSubscription.getServer();
    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    // forward server reply to client
    reply.setIsReply(true);
    reply.setServiceName(serviceName);
    reply.setMessageType(SCMPMsgType.CSC_UNSUBSCRIBE);
View Full Code Here

Examples of org.serviceconnector.server.IStatefulServer.removeSession()

    String serviceName = reqMessage.getServiceName();
    IStatefulServer server = this.cascSubscription.getServer();

    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    SCMPMessage fault = null;
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling
      fault = new SCMPMessageFault(SCMPError.OPERATION_TIMEOUT, "Operation timeout expired on SC csc unsubscribe sid=" + sid);
View Full Code Here

Examples of org.serviceconnector.server.IStatefulServer.removeSession()

    SCMPMessage reqMessage = request.getMessage();
    String serviceName = reqMessage.getServiceName();
    IStatefulServer server = this.cascSubscription.getServer();
    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    // forward server reply to client
    reply.setIsReply(true);
    reply.setServiceName(serviceName);
    reply.setMessageType(SCMPMsgType.CSC_UNSUBSCRIBE);
View Full Code Here

Examples of org.serviceconnector.server.IStatefulServer.removeSession()

    IStatefulServer server = this.cascSubscription.getServer();
    SCMPVersion scmpVersion = reqMessage.getSCMPVersion();

    if (reqMessage.getHeader(SCMPHeaderAttributeKey.CASCADED_MASK) == null) {
      // free server from subscription if cascaded SC unsubscribes himself
      server.removeSession(this.cascSubscription);
    }
    SCMPMessage fault = null;
    if (ex instanceof IdleTimeoutException) {
      // operation timeout handling - SCMP Version request
      fault = new SCMPMessageFault(scmpVersion, SCMPError.OPERATION_TIMEOUT,
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.