Package org.jboss.cache.commands.read

Examples of org.jboss.cache.commands.read.GravitateDataCommand


   }

   public GravitateResult gravitateData(Fqn fqn, boolean searchBuddyBackupSubtrees, InvocationContext ctx)
   {
      cacheStatusCheck(ctx);
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchBuddyBackupSubtrees);
      return (GravitateResult) invoker.invoke(ctx, command);
   }
View Full Code Here


   }

   public GravitateResult gravitateData(Fqn fqn, boolean searchBuddyBackupSubtrees, InvocationContext ctx)
   {
      cacheStatusCheck(ctx);
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchBuddyBackupSubtrees);
      return (GravitateResult) invoker.invoke(ctx, command);
   }
View Full Code Here

   {
      if (trace) log.trace("Requesting data gravitation for Fqn " + fqn);

      List<Address> mbrs = rpcManager.getMembers();
      Boolean searchSubtrees = buddyManager.isDataGravitationSearchBackupTrees();
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchSubtrees);
      // doing a GET_ALL is crappy but necessary since JGroups' GET_FIRST could return null results from nodes that do
      // not have either the primary OR backup, and stop polling other valid nodes.
      List resps = rpcManager.callRemoteMethods(null, command, GroupRequest.GET_ALL, buddyManager.getBuddyCommunicationTimeout(), new ResponseValidityFilter(rpcManager.getMembers().size()), false);

      if (trace) log.trace("got responses " + resps);
View Full Code Here

      return command;
   }

   public GravitateDataCommand buildGravitateDataCommand(Fqn fqn, Boolean searchSubtrees)
   {
      GravitateDataCommand command = new GravitateDataCommand(fqn, searchSubtrees, rpcManager.getLocalAddress());
      command.initialize(dataContainer, cacheSpi, buddyFqnTransformer);
      return command;
   }
View Full Code Here

            command = returnValue;
            break;
         }
         case GravitateDataCommand.METHOD_ID:
         {
            GravitateDataCommand returnValue = new GravitateDataCommand(rpcManager.getLocalAddress());
            returnValue.initialize(dataContainer, cacheSpi, buddyFqnTransformer);
            command = returnValue;
            break;
         }
         default:
            throw new CacheException("Unknown command id " + id + "!");
View Full Code Here

   {
      if (trace) log.trace("Requesting data gravitation for Fqn " + fqn);

      List<Address> mbrs = rpcManager.getMembers();
      Boolean searchSubtrees = buddyManager.isDataGravitationSearchBackupTrees() ? Boolean.TRUE : Boolean.FALSE;
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchSubtrees);
      // doing a GET_ALL is crappy but necessary since JGroups' GET_FIRST could return null results from nodes that do
      // not have either the primary OR backup, and stop polling other valid nodes.
      List resps = rpcManager.callRemoteMethods(null, command, GroupRequest.GET_ALL, buddyManager.getBuddyCommunicationTimeout(), new ResponseValidityFilter(mbrs, rpcManager.getLocalAddress()), false);

      if (trace) log.trace("got responses " + resps);
View Full Code Here

   }

   public GravitateResult gravitateData(Fqn fqn, boolean searchBuddyBackupSubtrees, InvocationContext ctx)
   {
      cacheStatusCheck(ctx);
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchBuddyBackupSubtrees);
      return (GravitateResult) invoker.invoke(ctx, command);
//      return (GravitateResult) command.perform(null);
   }
View Full Code Here

   }

   public GravitateResult gravitateData(Fqn fqn, boolean searchBuddyBackupSubtrees, InvocationContext ctx)
   {
      cacheStatusCheck(ctx);
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchBuddyBackupSubtrees);
      return (GravitateResult) invoker.invoke(ctx, command);
   }
View Full Code Here

   {
      if (trace) log.trace("Requesting data gravitation for Fqn " + fqn);

      List<Address> mbrs = rpcManager.getMembers();
      Boolean searchSubtrees = buddyManager.isDataGravitationSearchBackupTrees();
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchSubtrees);
      // doing a GET_ALL is crappy but necessary since JGroups' GET_FIRST could return null results from nodes that do
      // not have either the primary OR backup, and stop polling other valid nodes.
      List resps = rpcManager.callRemoteMethods(null, command, GroupRequest.GET_ALL, buddyManager.getBuddyCommunicationTimeout(), new ResponseValidityFilter(), false);

      if (trace) log.trace("got responses " + resps);
View Full Code Here

      return marshaller;
   }

   public GravitateResult gravitateData(Fqn fqn, boolean searchBuddyBackupSubtrees, InvocationContext ctx) {
      cacheStatusCheck(ctx);
      GravitateDataCommand command = commandsFactory.buildGravitateDataCommand(fqn, searchBuddyBackupSubtrees);
      return (GravitateResult) invoker.invoke(ctx, command);
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.commands.read.GravitateDataCommand

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.