Package org.jboss.cache.marshall

Examples of org.jboss.cache.marshall.MethodCall


      for (MethodCall methodCall : methodCalls) _replicate((MethodCall) methodCall.getArgs()[0]);
   }

   public void block()
   {
      MethodCall m = MethodCallFactory.create(MethodDeclarations.blockChannelMethodLocal_id);
      invoke(m, true);
   }
View Full Code Here


      invoke(m, true);
   }

   public void unblock()
   {
      MethodCall m = MethodCallFactory.create(MethodDeclarations.unblockChannelMethodLocal_id);
      invoke(m, true);
   }
View Full Code Here

               return null;
            }
         }
      }

      MethodCall oldCall = null;
      try
      {
         // check if we had a method call lurking around
         oldCall = ctx.getMethodCall();
         ctx.setMethodCall(call);
View Full Code Here

      return Version.printVersion();
   }

   public void move(Fqn<?> nodeToMove, Fqn<?> newParent) throws NodeNotExistsException
   {
      MethodCall m = MethodCallFactory.create(MethodDeclarations.moveMethodLocal_id, nodeToMove, newParent);
      invoke(m);
   }
View Full Code Here

            evict(new Fqn<Object>(fqn, childName));
         }
      }
      else
      {
         MethodCall m = MethodCallFactory.create(MethodDeclarations.evictNodeMethodLocal_id, fqn);
         invoke(m);
      }
   }
View Full Code Here

      }
   }

   public V get(Fqn<?> fqn, K key)
   {
      MethodCall m = MethodCallFactory.create(MethodDeclarations.getKeyValueMethodLocal_id, fqn, key, true);
      return (V) invoke(m);
   }
View Full Code Here

         return result;
      }
      else
      {
         MethodCall m = MethodCallFactory.create(MethodDeclarations.removeNodeMethodLocal_id, tx, fqn, true, false);
         Object retval = invoke(m);
         return retval != null && (Boolean) retval;
      }

   }
View Full Code Here

      return removeNode(Fqn.fromString(fqn));
   }

   public NodeSPI<K, V> getNode(Fqn<?> fqn)
   {
      MethodCall m = MethodCallFactory.create(MethodDeclarations.getNodeMethodLocal_id, fqn);
      return (NodeSPI) invoke(m);
   }
View Full Code Here

   }

   @Override
   public Object invoke(InvocationContext ctx) throws Throwable
   {
      MethodCall call = ctx.getMethodCall();
      Option optionOverride = ctx.getOptionOverrides();
      boolean suppressExceptions = false;
      Transaction suspendedTransaction = null;
      boolean resumeSuspended = false;

      if (trace)
         log.trace("Invoked with InvocationContext [" + ctx + "]");

      if (MethodDeclarations.isBlockUnblockMethod(call.getMethodId())) return nextInterceptor(ctx);

      try
      {
         Transaction tx = getTransaction();
         setTransactionalContext(tx, getGlobalTransaction(tx, call), ctx);
View Full Code Here

   {
      // FIRST pass this call up the chain.  Only if it succeeds (no exceptions) locally do we attempt to replicate.
      Object returnValue = nextInterceptor(ctx);
      if (ctx.getTransaction() == null && ctx.isOriginLocal())
      {
         MethodCall m = ctx.getMethodCall();
         if (trace)
         {
            log.trace("invoking method " + m + ", members=" + cache.getMembers() + ", mode=" +
                  configuration.getCacheMode() + ", exclude_self=" + true + ", timeout=" +
                  configuration.getSyncReplTimeout());
         }
         if (!isSynchronous(ctx.getOptionOverrides()) || m.getMethodId() == MethodDeclarations.putForExternalReadMethodLocal_id)
         {
            // 2. Replicate change to all *other* members (exclude self !)
            replicateCall(ctx, m, false, ctx.getOptionOverrides());
         }
         else
View Full Code Here

TOP

Related Classes of org.jboss.cache.marshall.MethodCall

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.