Package org.jboss.cache

Examples of org.jboss.cache.CacheException


   }

   public void rollback()
   {
      NodeSPI n = dataContainer.peek(fqn, false, false);
      if (n == null) throw new CacheException("node " + fqn + " not found for rollback!");
      if (oldValue == null)
      {
         n.removeDirect(key);
      }
      else
View Full Code Here


   public EvictionPolicyConfig getEvictionPolicyConfig()
   {
      if (deprecatedConfig != null)
         return deprecatedConfig;
      else
         throw new CacheException("Not supported.  Please use " + EvictionAlgorithmConfig.class.getSimpleName() +
               " instead of " + EvictionPolicyConfig.class.getSimpleName());
   }
View Full Code Here

   public static void assertTransactionValid(InvocationContext ctx)
   {
      Transaction tx = ctx.getTransaction();
      if (!isValid(tx)) try
      {
         throw new CacheException("Invalid transaction " + tx + ", status = " + (tx == null ? null : tx.getStatus()));
      }
      catch (SystemException e)
      {
         throw new CacheException("Exception trying to analyse status of transaction " + tx, e);
      }
   }
View Full Code Here

         {
            transactionContext = contextFactory.createTransactionContext(tx);
         }
         catch (Exception e)
         {
            throw new CacheException("Unable to create a transaction entry!", e);
         }

         put(gtx, transactionContext);
         if (trace)
         {
View Full Code Here

            }
         }
      }
      catch (Exception e)
      {
         throw new CacheException("Failure while registering mbeans", e);
      }
   }
View Full Code Here

            }
         }
      }
      catch (Exception e)
      {
         throw new CacheException("Failure while unregistering mbeans", e);
      }
   }
View Full Code Here

      {
         n = mvccHelper.wrapNodeForReading(getInvocationContext(), f, false);
      }
      catch (InterruptedException e)
      {
         throw new CacheException(e);
      }
      if (n == null || n.isNullNode()) return null;
      return n;
   }
View Full Code Here

         {
            ch = multiplexerService.createMultiplexerChannel(cfg.getMultiplexerStack(), cfg.getClusterName());
         }
         catch (Exception e)
         {
            throw new CacheException("Exception creating multiplexed channel", e);
         }
         rtcfg.setChannel(ch);
      }
   }
View Full Code Here

      else if (t instanceof RuntimeException)
         throw (RuntimeException) t;
      else if (t instanceof Error)
         throw (Error) t;
      else
         throw new CacheException(t);
   }
View Full Code Here

      node.printDetails(sb, indent);
   }

   public void print(StringBuilder sb, int indent)
   {
      throw new CacheException("This method is deprecated!");
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.CacheException

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.