Package org.jboss.cache.commands.remote

Examples of org.jboss.cache.commands.remote.StateTransferControlCommand


    * @param block if true, mimics setting a flush.  Otherwise, mimics un-setting a flush.
    * @throws Exception if there are issues
    */
   private void mimicPartialFlushViaRPC(Address addressToFlush, boolean block) throws Exception
   {
      StateTransferControlCommand cmd = commandsFactory.buildStateTransferControlCommand(block);
      Vector<Address> recipient = new Vector<Address>();
      recipient.add(addressToFlush);
      if (!block) rpcManager.getFlushTracker().unblock();
      rpcManager.callRemoteMethods(recipient, cmd, true, cfg.getStateRetrievalTimeout(), true);
      if (block) rpcManager.getFlushTracker().block();
View Full Code Here


      this.buddyFqnTransformer = buddyFqnTransformer;
   }

   public StateTransferControlCommand buildStateTransferControlCommand(boolean enabled)
   {
      return new StateTransferControlCommand(enabled);
   }
View Full Code Here

            command = returnValue;
            break;
         }
         case StateTransferControlCommand.METHOD_ID:
         {
            StateTransferControlCommand cmd = new StateTransferControlCommand();
            cmd.init(rpcManager);
            command = cmd;
            break;
         }
         default:
            throw new CacheException("Unknown command id " + id + "!");
View Full Code Here

    * @param block if true, mimics setting a flush.  Otherwise, mimics un-setting a flush.
    * @throws Exception if there are issues
    */
   private void mimicPartialFlushViaRPC(Address addressToFlush, boolean block) throws Exception
   {
      StateTransferControlCommand cmd = commandsFactory.buildStateTransferControlCommand(block);
      Vector<Address> recipient = new Vector<Address>();
      recipient.add(addressToFlush);
      if (!block) rpcManager.getFlushTracker().unblock();
      rpcManager.callRemoteMethods(recipient, cmd, true, cfg.getStateRetrievalTimeout(), true);
      if (block) rpcManager.getFlushTracker().block();
View Full Code Here

TOP

Related Classes of org.jboss.cache.commands.remote.StateTransferControlCommand

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.