Examples of SessionInfo


Examples of io.fabric8.gateway.handlers.detecting.protocol.openwire.command.SessionInfo

   
    /**
     * @return a new object instance
     */
    public DataStructure createObject() {
        return new SessionInfo();
    }
View Full Code Here

Examples of org.activemq.message.SessionInfo

                if (receipt.getCorrelationId() != packet_id.shortValue()) return false;
                final Short session_packet_id = new Short(PACKET_IDS.getNextShortSequence());
                sessionId = clientIds.getNextShortSequence();
                commandParser.setSessionId(sessionId);

                final SessionInfo info = new SessionInfo();
                info.setStartTime(System.currentTimeMillis());
                info.setId(session_packet_id.shortValue());
                info.setClientId(clientId);
                info.setSessionId(sessionId);
                info.setStarted(true);
                info.setSessionMode(Session.AUTO_ACKNOWLEDGE);
                info.setReceiptRequired(true);

                AsyncHelper.tryUntilNotInterrupted(new AsyncHelper.Helper()
                {
                    public void cycle() throws InterruptedException
                    {
View Full Code Here

Examples of org.apache.activemq.apollo.openwire.command.SessionInfo

   
    /**
     * @return a new object instance
     */
    public DataStructure createObject() {
        return new SessionInfo();
    }
View Full Code Here

Examples of org.apache.activemq.command.SessionInfo

        localBroker.oneway(connectionInfo);
        ConnectionInfo remoteInfo = new ConnectionInfo();
        connectionInfo.copy(remoteInfo);
        remoteInfo.setBrokerMasterConnector(true);
        remoteBroker.oneway(connectionInfo);
        sessionInfo = new SessionInfo(connectionInfo, 1);
        localBroker.oneway(sessionInfo);
        remoteBroker.oneway(sessionInfo);
        producerInfo = new ProducerInfo(sessionInfo, 1);
        producerInfo.setResponseRequired(false);
        remoteBroker.oneway(producerInfo);
View Full Code Here

Examples of org.apache.cassandra.streaming.SessionInfo

            public StreamSummary apply(CompositeData input)
            {
                return StreamSummaryCompositeData.fromCompositeData(input);
            }
        };
        SessionInfo info = new SessionInfo(peer,
                                           (int)values[7],
                                           fromArrayOfCompositeData((CompositeData[]) values[2], toStreamSummary),
                                           fromArrayOfCompositeData((CompositeData[]) values[3], toStreamSummary),
                                           StreamSession.State.valueOf((String) values[4]));
        Function<CompositeData, ProgressInfo> toProgressInfo = new Function<CompositeData, ProgressInfo>()
        {
            public ProgressInfo apply(CompositeData input)
            {
                return ProgressInfoCompositeData.fromCompositeData(input);
            }
        };
        for (ProgressInfo progress : fromArrayOfCompositeData((CompositeData[]) values[5], toProgressInfo))
        {
            info.updateProgress(progress);
        }
        for (ProgressInfo progress : fromArrayOfCompositeData((CompositeData[]) values[6], toProgressInfo))
        {
            info.updateProgress(progress);
        }
        return info;
    }
View Full Code Here

Examples of org.apache.hadoop.corona.SessionInfo

      new TSocket(address.getHostName(), address.getPort()));
    TProtocol protocol = new TBinaryProtocol(transport);
    ClusterManagerService.Client client = new ClusterManagerService.Client(protocol);
    transport.open();
    LOG.info("Requesting running session info for handle: " + sessionHandle);
    SessionInfo info = client.getSessionInfo(sessionHandle);
    transport.close();
    return info;
  }
View Full Code Here

Examples of org.apache.jackrabbit.spi.SessionInfo

     * @see javax.jcr.Session#impersonate(Credentials)
     */
    @Override
    public Session impersonate(Credentials credentials) throws LoginException, RepositoryException {
        checkIsAlive();
        SessionInfo info = config.getRepositoryService().impersonate(sessionInfo, credentials);
        try {
            if (info instanceof XASessionInfo) {
                return new XASessionImpl((XASessionInfo) info, repository, config);
            } else {
                return new SessionImpl(info, repository, config);
View Full Code Here

Examples of org.beangle.security.core.session.SessionInfo

  @Override
  protected void doFilterHttp(HttpServletRequest request, HttpServletResponse response,
      FilterChain chain) throws IOException, ServletException {
    HttpSession session = request.getSession(false);
    if (session != null) {
      SessionInfo info = sessionRegistry.getSessionInfo(session.getId());
      if (info != null) {
        if (info.isExpired()) {
          // Expired - abort processing
          doLogout(request, response);
          String targetUrl = determineExpiredUrl(request, info);
          if (targetUrl != null) {
            RedirectUtils.sendRedirect(request, response, targetUrl);
            return;
          } else {
            response.getWriter().print(
                "This session has been expired (possibly due to multiple concurrent "
                    + "logins being attempted as the same user).");
            response.flushBuffer();
          }
          return;
        } else {
          // Non-expired - update last request date/time
          info.refreshLastRequest();
        }
      }
    }

    chain.doFilter(request, response);
View Full Code Here

Examples of org.beangle.security.core.session.Sessioninfo

  public Sessioninfo remove(String sessionId) {
    return remove(sessionId, null);
  }

  private Sessioninfo remove(String sessionId, String reason) {
    Sessioninfo info = getSessioninfo(sessionId);
    if (null == info) {
      return null;
    } else {
      // FIXME not in a transcation
      if (null != reason) info.addRemark(reason);
      entityDao.remove(info);
      controller.onLogout(info);
      entries.remove(info.getId());
      Object sessioninfoLog = sessioninfoBuilder.buildLog(info);
      if (null != sessioninfoLog) {
        entityDao.save(sessioninfoLog);
      }
      logger.debug("Remove session {} for {}", sessionId, info.getUsername());
      return info;
    }
  }
View Full Code Here

Examples of org.codehaus.activemq.message.SessionInfo

        this.sessions.add(session);
        addMessageDispatcher(session);
        if (started.get()) {
            session.start();
        }
        SessionInfo info = createSessionInfo(session);
        info.setStarted(true);
        asyncSendPacket(info);
    }
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.