Examples of CacheImpl


Examples of org.infinispan.cache.impl.CacheImpl

@Test(groups = "functional", testName = "api.flags.DecoratedCacheTest")
public class DecoratedCacheTest {

   public void testDecoratedCacheFlagsSet() {
      ClassLoader thisClassLoader = this.getClass().getClassLoader();
      CacheImpl impl = new CacheImpl("baseCache");
      DecoratedCache decoratedCache = new DecoratedCache(impl, thisClassLoader);
      DecoratedCache nofailCache = (DecoratedCache) decoratedCache.withFlags(Flag.FAIL_SILENTLY);
      assert nofailCache.getFlags().contains(Flag.FAIL_SILENTLY);
      assert nofailCache.getFlags().size() == 1;
      DecoratedCache asyncNoFailCache = (DecoratedCache) nofailCache.withFlags(Flag.FORCE_ASYNCHRONOUS);
View Full Code Here

Examples of org.jboss.cache.CacheImpl

      ArrayList<MethodCall> l;
      synchronized (undo_list)
      {
         l = new ArrayList<MethodCall>(undo_list);
      }
      CacheImpl ci = ((CacheInvocationDelegate) cache).getDelegationTarget();
      for (ListIterator<MethodCall> i = l.listIterator(l.size()); i.hasPrevious();)
      {
         MethodCall undo_op = i.previous();
         undo(undo_op, ci);
      }
View Full Code Here

Examples of org.jboss.cache.CacheImpl

   {
      State originalState = overallState;
      moveComponentsToState(overallState == STARTED ? STOPPED : CONSTRUCTED);
      moveComponentsToState(originalState);
      // re- add a few key components - this is a hack for now
      CacheImpl ci = getComponent(CacheImpl.class);
      CacheSPI rcid = getComponent("remoteDelegate", RemoteCacheInvocationDelegate.class);
      CacheSPI spi = getComponent(CacheSPI.class.getName(), CacheSPI.class);

      unregisterComponent(CacheImpl.class);
      unregisterComponent(CacheSPI.class.getName());
View Full Code Here

Examples of org.jboss.cache.CacheImpl

    * @return a String representation of the cache
    */
   public static String printCacheDetails(Cache c)
   {
      // internal cast
      CacheImpl ci = ((CacheInvocationDelegate) c).getDelegationTarget();
      return ci.printDetails();
   }
View Full Code Here

Examples of org.jboss.cache.CacheImpl

    * @return a String representation of the cache
    */
   public static String printCacheLockingInfo(Cache c)
   {
      // internal cast
      CacheImpl ci = ((CacheInvocationDelegate) c).getDelegationTarget();
      return ci.printLockInfo();
   }
View Full Code Here

Examples of org.jboss.cache.CacheImpl

   {
      for (Cache c : caches)
      {
         if (c != null && c.getCacheStatus() == CacheStatus.STARTED)
         {
            CacheImpl ci = (CacheImpl) c;
            if (ci.getTransactionManager() != null)
            {
               try
               {
                  ci.getTransactionManager().rollback();
               }
               catch (Exception e)
               {
                  // don't care
               }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.CacheImpl

      {
         CacheConfigMetaData config = enterpriseBean.getCacheConfig();
         if (config.getValue() != null && !config.getValue().equals(""))
         {
            String cacheValue = config.getValue();
            CacheImpl cacheAnnotation = new CacheImpl(cacheValue);
            addClassAnnotation(container, Cache.class, cacheAnnotation);

            // FIXME: Wolf: what the hell is this?
            // FIXME: ALR: This shouldn't be hardcoded; configuration needs reworking
            if (cacheValue.equals("SimpleStatefulCache"))
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.CacheImpl

      {
         CacheConfigMetaData config = enterpriseBean.getCacheConfig();
         if (config.getValue() != null && !config.getValue().equals(""))
         {
            String cacheValue = config.getValue();
            CacheImpl cacheAnnotation = new CacheImpl(cacheValue);
            addClassAnnotation(container, Cache.class, cacheAnnotation);

            // FIXME: Wolf: what the hell is this?
            // FIXME: ALR: This shouldn't be hardcoded; configuration needs reworking
            if (cacheValue.equals("SimpleStatefulCache"))
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.CacheImpl

      {
         CacheConfigMetaData config = enterpriseBean.getCacheConfig();
         if (config.getValue() != null && !config.getValue().equals(""))
         {
            String cacheValue = config.getValue();
            CacheImpl cacheAnnotation = new CacheImpl(cacheValue);
            addClassAnnotation(container, Cache.class, cacheAnnotation);

            // FIXME: Wolf: what the hell is this?
            // FIXME: ALR: This shouldn't be hardcoded; configuration needs reworking
            if (cacheValue.equals("SimpleStatefulCache"))
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.CacheImpl

      {
         CacheConfigMetaData config = enterpriseBean.getCacheConfig();
         if (config.getValue() != null && !config.getValue().equals(""))
         {
            String cacheValue = config.getValue();
            CacheImpl cacheAnnotation = new CacheImpl(cacheValue);
            addClassAnnotation(container, Cache.class, cacheAnnotation);

            // FIXME: Wolf: what the hell is this?
            // FIXME: ALR: This shouldn't be hardcoded; configuration needs reworking
            if (cacheValue.equals("SimpleStatefulCache"))
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.