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

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


      }
     
      // Handle batch replication if needed.
      // TODO -- should we add this even if not FIELD in case a cross-context
      // call traverses a field-based webapp?  
      BatchingManager valveBM = null;
      if (replicationGranularity_ == ReplicationGranularity.FIELD
            && Boolean.TRUE.equals(replicationFieldBatchMode_))
      {
         valveBM = this.batchingManager;
         log_.debug("Including transaction manager in ClusteredSessionValve to support batch replication.");
View Full Code Here


      }
     
      // Handle batch replication if needed.
      // TODO -- should we add this even if not FIELD in case a cross-context
      // call traverses a field-based webapp?  
      BatchingManager valveBM = null;
      if (replicationGranularity_ == ReplicationGranularity.FIELD
            && Boolean.TRUE.equals(replicationFieldBatchMode_))
      {
         valveBM = this.batchingManager;
         log_.debug("Including transaction manager in ClusteredSessionValve to support batch replication.");
View Full Code Here

      if (!(tm instanceof BatchModeTransactionManager))
      {
         throw new IllegalStateException("Unexpected transaction manager type: " + ((tm != null) ? tm.getClass().getName() : "null"));
      }
     
      BatchingManager batchingManager = new BatchingManagerImpl(tm);
      SessionAttributeMarshaller marshaller = this.marshallerFactory.createMarshaller(manager);
      SessionAttributeStorage<T> storage = this.storageFactory.createStorage(manager.getReplicationConfig().getReplicationGranularity(), marshaller);
     
      sessionCache = new AtomicMapCache<String, Object, Object>(sessionCache);
     
View Full Code Here

      if (!(tm instanceof BatchModeTransactionManager))
      {
         throw new IllegalStateException("Unexpected transaction manager type: " + ((tm != null) ? tm.getClass().getName() : "null"));
      }
     
      BatchingManager batchingManager = new BatchingManagerImpl(tm);
      SessionAttributeMarshaller marshaller = this.marshallerFactory.createMarshaller(manager);
      SessionAttributeStorage<T> storage = this.storageFactory.createStorage(manager.getReplicationConfig().getReplicationGranularity(), marshaller);
     
      return new DistributedCacheManager<T>(manager, cache, lockManager, storage, batchingManager, this.invoker, this.atomicMapFactory);
   }
View Full Code Here

      if (!(tm instanceof BatchModeTransactionManager))
      {
         throw new IllegalStateException("Unexpected transaction manager type: " + ((tm != null) ? tm.getClass().getName() : "null"));
      }
     
      BatchingManager batchingManager = new BatchingManagerImpl(tm);
      SessionAttributeMarshaller marshaller = this.marshallerFactory.createMarshaller(manager);
      SessionAttributeStorage<T> storage = this.storageFactory.createStorage(manager.getReplicationConfig().getReplicationGranularity(), marshaller);
     
//      Cache<Address, String> jvmRouteCache = sessionCache.getCacheManager().getCache(manager.getEngineName());
      sessionCache = new AtomicMapCache<String, Object, Object>(sessionCache);
View Full Code Here

      if (!(tm instanceof BatchModeTransactionManager))
      {
         throw new IllegalStateException("Unexpected transaction manager type: " + ((tm != null) ? tm.getClass().getName() : "null"));
      }
     
      BatchingManager batchingManager = new BatchingManagerImpl(tm);
      SessionAttributeMarshaller marshaller = this.marshallerFactory.createMarshaller(manager);
      SessionAttributeStorage<T> storage = this.storageFactory.createStorage(manager.getReplicationConfig().getReplicationGranularity(), marshaller);
     
      return new DistributedCacheManager<T>(manager, cache, lockManager, storage, batchingManager, this.invoker, this.atomicMapFactory);
   }
View Full Code Here

      if (!(tm instanceof BatchModeTransactionManager))
      {
         throw new IllegalStateException("Unexpected transaction manager type: " + ((tm != null) ? tm.getClass().getName() : "null"));
      }
     
      BatchingManager batchingManager = new BatchingManagerImpl(tm);
      SessionAttributeMarshaller marshaller = this.marshallerFactory.createMarshaller(manager);
      SessionAttributeStorage<T> storage = this.storageFactory.createStorage(manager.getReplicationConfig().getReplicationGranularity(), marshaller);
     
      return new DistributedCacheManager<T>(manager, new AtomicMapCache<String, Object, Object>(sessionCache), this.jvmRouteCacheSource, lockManager, storage, batchingManager, this.invoker);
   }
View Full Code Here

      if (!(tm instanceof BatchModeTransactionManager))
      {
         throw new IllegalStateException("Unexpected transaction manager type: " + ((tm != null) ? tm.getClass().getName() : "null"));
      }
     
      BatchingManager batchingManager = new BatchingManagerImpl(tm);
      SessionAttributeMarshaller marshaller = this.marshallerFactory.createMarshaller(manager);
      SessionAttributeStorage<T> storage = this.storageFactory.createStorage(manager.getReplicationConfig().getReplicationGranularity(), marshaller);
     
      return new DistributedCacheManager<T>(manager, cache, storage, batchingManager, this.invoker, this.atomicMapFactory);
   }
View Full Code Here

TOP

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

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.