Examples of VisitableCommand


Examples of org.jboss.cache.commands.VisitableCommand

    */
   public VisitableCommand transformFqns(VisitableCommand call)
   {
      try
      {
         VisitableCommand transformed = (VisitableCommand) call.acceptVisitor(null, fqnVisitorFqn2);
         if (trace) log.trace("Transformed " + call + " to " + transformed);
         return transformed;
      }
      catch (Throwable throwable)
      {
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

   @SuppressWarnings("deprecation")
   private Object handleCommitRollback(InvocationContext ctx, VisitableCommand command) throws Throwable
   {
      GlobalTransaction gtx = ctx.getGlobalTransaction();
      Object result;
      VisitableCommand originalCommand = ctx.getCommand();
      ctx.setCommand(command);
      try
      {
         result = invokeNextInterceptor(ctx, command);
      }
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

    */
   protected void runCommitPhase(InvocationContext ctx, GlobalTransaction gtx, List modifications, boolean onePhaseCommit)
   {
      try
      {
         VisitableCommand commitCommand = onePhaseCommit ? buildPrepareCommand(gtx, modifications, true) : commandsFactory.buildCommitCommand(gtx);

         if (trace) log.trace("Running commit for " + gtx);

         handleCommitRollback(ctx, commitCommand);
      }
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

   protected void runRollbackPhase(InvocationContext ctx, GlobalTransaction gtx, Transaction tx)
   {
      try
      {
         // JBCACHE-457
         VisitableCommand rollbackCommand = commandsFactory.buildRollbackCommand(gtx);
         if (trace) log.trace(" running rollback for " + gtx);

         //JBCACHE-359 Store a lookup for the globalTransaction so a listener
         // callback can find it
         rollbackTransactions.put(tx, gtx);
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

    */
   @SuppressWarnings("deprecation")
   public Object runPreparePhase(InvocationContext ctx, GlobalTransaction gtx, List<WriteCommand> modifications) throws Throwable
   {
      // running a 2-phase commit.
      VisitableCommand prepareCommand = buildPrepareCommand(gtx, modifications, false);

      Object result;

      // Is there a local transaction associated with GTX ?
      Transaction ltx = ctx.getTransaction();

      //if ltx is not null and it is already running
      Transaction currentTransaction = txManager.getTransaction();
      if (currentTransaction != null && ltx != null && currentTransaction.equals(ltx))
      {
         VisitableCommand originalCommand = ctx.getCommand();
         ctx.setCommand(prepareCommand);
         try
         {
            result = invokeNextInterceptor(ctx, prepareCommand);
         }
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

    */
   public VisitableCommand transformFqns(VisitableCommand call)
   {
      try
      {
         VisitableCommand transformed = (VisitableCommand) call.acceptVisitor(null, fqnVisitorFqn2);
         if (trace) log.trace("Transformed " + call + " to " + transformed);
         return transformed;
      }
      catch (Throwable throwable)
      {
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

   @SuppressWarnings("deprecation")
   private Object handleCommitRollback(InvocationContext ctx, VisitableCommand command) throws Throwable
   {
      GlobalTransaction gtx = ctx.getGlobalTransaction();
      Object result;
      VisitableCommand originalCommand = ctx.getCommand();
      ctx.setCommand(command);
      try
      {
         result = invokeNextInterceptor(ctx, command);
      }
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

   {
      try
      {
         if (trace) log.trace("Running commit for " + gtx);

         VisitableCommand commitCommand = onePhaseCommit ? buildPrepareCommand(gtx, modifications, true)
                                                         : commandsFactory.buildCommitCommand(gtx);


         handleCommitRollback(ctx, commitCommand);
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

   protected void runRollbackPhase(InvocationContext ctx, GlobalTransaction gtx, Transaction tx)
   {
      try
      {
         // JBCACHE-457
         VisitableCommand rollbackCommand = commandsFactory.buildRollbackCommand(gtx);
         if (trace) log.trace(" running rollback for " + gtx);

         transactionLog.rollback(gtx);

         //JBCACHE-359 Store a lookup for the globalTransaction so a listener
View Full Code Here

Examples of org.jboss.cache.commands.VisitableCommand

      //if ltx is not null and it is already running
      Transaction currentTransaction = txManager.getTransaction();
      if (currentTransaction != null && ltx != null && currentTransaction.equals(ltx))
      {
         VisitableCommand originalCommand = ctx.getCommand();
         ctx.setCommand(prepareCommand);
         try
         {
            result = invokeNextInterceptor(ctx, prepareCommand);
         }
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.