XSiteStateTransferControlCommand command = commandsFactory.buildXSiteStateTransferControlCommand(control, null);
RetryPolicy retryPolicy = backupRpcConfiguration == null ? NO_RETRY :
new MaxRetriesPolicy(backupRpcConfiguration.maxRetries);
long waitTime = backupRpcConfiguration == null ? 1 : backupRpcConfiguration.waitTime;
RetryOnFailureXSiteCommand remoteSite = RetryOnFailureXSiteCommand.newInstance(xSiteBackup, command, retryPolicy);
remoteSite.execute(rpcManager.getTransport(), waitTime, TimeUnit.MILLISECONDS);
}
private void controlStateTransferOnLocalSite(StateTransferControl control, String siteName) throws Exception {
XSiteStateTransferControlCommand command = commandsFactory.buildXSiteStateTransferControlCommand(control, siteName);
command.setTopologyId(currentTopologyId());