* @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();