Package org.jboss.cache

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


   {
      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

    * @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

    * @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

   {
      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

    * @param cache cache to introspect
    * @return component registry
    */
   public static ComponentRegistry extractComponentRegistry(Cache cache)
   {
      CacheImpl ci = (CacheImpl) extractField(cache, "cache");
      return extractComponentRegistry(ci);
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.CacheImpl

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.