Package org.jboss.cache.marshall

Examples of org.jboss.cache.marshall.MethodCall


   @SuppressWarnings("deprecation")
   private MethodCall createMethodCall()
   {
      if (command == null) return null;
      MethodCall call = new MethodCall();
      call.setMethodId(command.getCommandId());
      call.setArgs(command.getParameters());
      return call;
   }
View Full Code Here


      });

      interceptorInvokedLatch.await();

      // check that the context on the test interceptor is correct.
      MethodCall methodCall = testInterceptor.methodCall;
      interceptorResumeLatch.countDown();

      assert methodCall.getMethodId() == PutKeyValueCommand.METHOD_ID;
      assert methodCall.getArgs()[0] == null; // gtx
      assert methodCall.getArgs()[1].equals(Fqn.fromString("/a")); // fqn
      assert methodCall.getArgs()[2].equals("k"); // key
      assert methodCall.getArgs()[3].equals("v"); // value
      assert methodCall.getArgs()[4] == Boolean.FALSE; //last boolean value
   }
View Full Code Here

   @SuppressWarnings("deprecation")
   private MethodCall createMethodCall()
   {
      if (command == null) return null;
      MethodCall call = new MethodCall();
      call.setMethodId(command.getCommandId());
      call.setArgs(command.getParameters());
      return call;
   }
View Full Code Here

   @SuppressWarnings("deprecation")
   private MethodCall createMethodCall()
   {
      if (command == null) return null;
      MethodCall call = new MethodCall();
      call.setMethodId(command.getCommandId());
      call.setArgs(command.getParameters());
      return call;
   }
View Full Code Here

         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

   public MethodCall transformFqns(MethodCall call, boolean transformForCurrentCall)
   {
      if (call != null && call.getArgs() != null && call.getMethodId() != MethodDeclarations.commitMethod_id)
      {
         MethodCall call2 = MethodCallFactory.create(call.getMethodId(), call.getArgs().clone());
         handleArgs(call2.getArgs(), transformForCurrentCall);
         return call2;
      }
      else
      {
         return call;
View Full Code Here

      {
         log.debug("Removing obsolete buddies from buddy group [" + buddyGroup.getGroupName() + "].  Obsolete buddies are " + buddies);
      }
      buddyGroup.removeBuddies(buddies);
      // now broadcast a message to the removed buddies.
      MethodCall membershipCall = MethodCallFactory.create(MethodDeclarations.remoteRemoveFromBuddyGroupMethod_id, buddyGroup.getGroupName());

      int attemptsLeft = UNINIT_BUDDIES_RETRIES;
      int currentAttempt = 0;

      while (attemptsLeft-- > 0)
View Full Code Here

            }
         }
      }

      // now broadcast a message to the newly assigned buddies.
      MethodCall membershipCall = MethodCallFactory.create(MethodDeclarations.remoteAssignToBuddyGroupMethod_id, buddyGroup, stateMap);

      int attemptsLeft = UNINIT_BUDDIES_RETRIES;
      int currentAttempt = 0;

      while (attemptsLeft-- > 0)
View Full Code Here

      if (log.isDebugEnabled())
      {
         log.debug("Instance " + buddyGroup.getDataOwner() + " broadcasting membership in buddy pool " + config.getBuddyPoolName() + " to recipients " + recipients);
      }

      MethodCall membershipCall = MethodCallFactory.create(MethodDeclarations.remoteAnnounceBuddyPoolNameMethod_id, buddyGroup.getDataOwner(), config.getBuddyPoolName());

      try
      {
         makeRemoteCall(recipients, membershipCall, true);
      }
View Full Code Here

   {
      for (int i = 0; i < args.length; i++)
      {
         if (args[i] instanceof MethodCall)
         {
            MethodCall call = (MethodCall) args[i];
            args[i] = transformFqns((MethodCall) args[i], call.getMethodId() != MethodDeclarations.dataGravitationCleanupMethod_id);
         }

         if (args[i] instanceof List && args[i] != null)
         {
            Object[] asArray = ((List) args[i]).toArray();
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.