public static Failover failover(final String file) {
return new Failover(failoverExecutor(checkNotNullOrEmpty(file, "Filename should not be null")), FailoverStrategy.FAILOVER);
}
private static DefaultFailoverExecutor failoverExecutor(final String file) {
return new DefaultFailoverExecutor(new File(checkNotNullOrEmpty(file, "Filename should not be null")));
}