public static RetryOnFailureXSiteCommand newInstance ( XSiteBackup backup , XSiteReplicateCommand command , RetryPolicy retryPolicy ) { assertNotNull ( backup , "XSiteBackup" ) ; assertNotNull ( command , "XSiteReplicateCommand" ) ; assertNotNull ( retryPolicy , "RetryPolicy" ) ; return new RetryOnFailureXSiteCommand ( Collections . singletonList ( backup ) , command , retryPolicy ) ; }
It builds a new instance with the destination site the command and the retry policy .