Package org.jboss.web.tomcat.service.session.distributedcache.spi

Examples of org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData


   }

   public IncomingDistributableSessionData getSessionData(String realId, boolean includeAttributes)
   {
      ResultSet rst = null;
      IncomingDistributableSessionData incomingSession = null;
      ObjectInputStream attributes_ois = null;

      RuntimeException exception = null;
     
      int numberOfTries = 2;
View Full Code Here


            long ts = -1;
            DistributableSessionMetadata md = null;
            try
            {
               IncomingDistributableSessionData sessionData = proxy_.getSessionData(realId, owner, false);
               if (sessionData == null)
               {
                  log_.debug("Metadata unavailable for unloaded session " + realId);
                  continue;
               }
               ts = sessionData.getTimestamp();
               md = sessionData.getMetadata();
            }
            catch (Exception e)
            {
               // most likely a lock conflict if the session is being updated remotely;
               // ignore it and use default values for timstamp and maxInactive
View Full Code Here

                  {
                     // some one else loaded this
                     return session;
                  }
                                
                  IncomingDistributableSessionData data = proxy_.getSessionData(realId, initialLoad);
                  if (data != null)
                  {
                     session.update(data);
                  }
                  else
View Full Code Here

        
         Long timestamp = store.getSessionTimestamp(realId);
         if (timestamp != null && existing.getUpdateTime() != timestamp.longValue())
         {
            // Timestamp change -- pull in the data
            IncomingDistributableSessionData data = store.getSessionData(entry.getKey(), false);
            if (data != null)
            {
                OwnedSessionUpdate updated = new OwnedSessionUpdate(existing.getOwner(),
                      data.getTimestamp(),
                      data.getMetadata().getMaxInactiveInterval(),
                      existing.isPassivated());
               
                processed.put(realId, updated);
            }
            else
View Full Code Here

         if (initialLoad)
         {
            setupSessionRegion(fqn);
         }
        
         IncomingDistributableSessionData dsd = null;
        
         try
         {
            dsd = getDistributableSessionData(realId, sessionData, true);
         }
View Full Code Here

               {
                  break;
               }
            }
         }
         IncomingDistributableSessionData result = distributedCacheData == null ? null : getDistributableSessionData(realId, distributedCacheData, includeAttributes);
         loadCompleted = true;
         return result;
      }
      catch (Exception e)
      {        
View Full Code Here

                                       boolean includeAttributes)
   {
      Integer version = (Integer) distributedCacheData.get(VERSION_KEY);
      Long timestamp = (Long) distributedCacheData.get(TIMESTAMP_KEY);
      DistributableSessionMetadata metadata = (DistributableSessionMetadata) distributedCacheData.get(METADATA_KEY);
      IncomingDistributableSessionData result = null;
      if (includeAttributes)
      {
         Map<String, Object> attrs = getSessionAttributes(realId, distributedCacheData);     
         result = new IncomingDistributableSessionDataImpl(version, timestamp, metadata, attrs);
      }
View Full Code Here

      if (initialLoad)
      {
         setupSessionRegion(fqn);
      }
     
      IncomingDistributableSessionData dsd = null;
     
      try
      {
         dsd = getDistributableSessionData(realId, sessionData, true);
      }
View Full Code Here

            long ts = -1;
            DistributableSessionMetadata md = null;
            try
            {
               IncomingDistributableSessionData sessionData = proxy_.getSessionData(realId, owner, false);
               ts = sessionData.getTimestamp();
               md = sessionData.getMetadata();
            }
            catch (Exception e)
            {
               // most likely a lock conflict if the session is being updated remotely;
               // ignore it and use default values for timstamp and maxInactive
View Full Code Here

            // Tomcat calls Manager.findSession before setting the tccl,
            // so we need to do it :(
            switcher = getContextClassLoaderSwitcher().getSwitchContext();
            switcher.setClassLoader(tcl_);
                       
            IncomingDistributableSessionData data = proxy_.getSessionData(realId, initialLoad);
            if (data != null)
            {
               session.update(data);
            }
            else
View Full Code Here

TOP

Related Classes of org.jboss.web.tomcat.service.session.distributedcache.spi.IncomingDistributableSessionData

Copyright © 2018 www.massapicom. 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.