@Test public void testSimpleCaseLocation() { AdlsGen2BackupConfigGenerator generator = new AdlsGen2BackupConfigGenerator(); String location = generator.generateBackupLocation( "abfs: FluentClusterType.FREEIPA.value(), "mycluster", "12345"); assertEquals("https: }
@Override public String generateBackupLocation(String location, String clusterType, String clusterName, String clusterId) { AdlsGen2BackupConfig adlsGen2BackupConfig = generateBackupConfig(location); String logFolder = resolveBackupFolder(adlsGen2BackupConfig, clusterType, clusterName, clusterId); String hostPart = String.format("%s.%s", adlsGen2BackupConfig.getAccount(), AZURE_DFS_DOMAIN_SUFFIX); String generatedLocation = String.format("%s%s", AZURE_BLOB_STORAGE_SCHEMA, Paths.get(hostPart, adlsGen2BackupConfig.getFileSystem(), logFolder)); LOGGER.info("The following ADLS Gen2 base folder location is generated: {} (from {})", generatedLocation, location); return generatedLocation; }
AdlsGen2BackupConfigGenerator extends CloudBackupConfigGenerator<AdlsGen2BackupConfig> { @Override public String generateBackupLocation(String location, String clusterType, String clusterName, String clusterId) { AdlsGen2BackupConfig adlsGen2BackupConfig = generateBackupConfig(location); String logFolder = resolveBackupFolder(adlsGen2BackupConfig, clusterType, clusterName, clusterId); String hostPart = String.format("%s.%s", adlsGen2BackupConfig.getAccount(), AZURE_DFS_DOMAIN_SUFFIX); String generatedLocation = String.format("%s%s", AZURE_BLOB_STORAGE_SCHEMA, Paths.get(hostPart, adlsGen2BackupConfig.getFileSystem(), logFolder)); LOGGER.info("The following ADLS Gen2 base folder location is generated: {} (from {})", generatedLocation, location); return generatedLocation; } }
AdlsGen2BackupConfigGenerator extends CloudBackupConfigGenerator<AdlsGen2BackupConfig> { @Override public String generateBackupLocation(String location, String clusterType, String clusterName, String clusterId) { AdlsGen2BackupConfig adlsGen2BackupConfig = generateBackupConfig(location); String logFolder = resolveBackupFolder(adlsGen2BackupConfig, clusterType, clusterName, clusterId); String hostPart = String.format("%s.%s", adlsGen2BackupConfig.getAccount(), AZURE_DFS_DOMAIN_SUFFIX); String generatedLocation = String.format("%s%s", AZURE_BLOB_STORAGE_SCHEMA, Paths.get(hostPart, adlsGen2BackupConfig.getFileSystem(), logFolder)); LOGGER.info("The following ADLS Gen2 base folder location is generated: {} (from {})", generatedLocation, location); return generatedLocation; }  }
AdlsGen2BackupConfigGenerator extends CloudBackupConfigGenerator<AdlsGen2BackupConfig> { @Override public String generateBackupLocation(String location, String clusterType, String clusterName, String clusterId) { AdlsGen2BackupConfig adlsGen2BackupConfig = generateBackupConfig(location); String logFolder = resolveBackupFolder(adlsGen2BackupConfig, clusterType, clusterName, clusterId); String hostPart = String.format("%s.%s", adlsGen2BackupConfig.getAccount(), AZURE_DFS_DOMAIN_SUFFIX); String generatedLocation = String.format("%s%s", AZURE_BLOB_STORAGE_SCHEMA, Paths.get(hostPart, adlsGen2BackupConfig.getFileSystem(), logFolder)); LOGGER.info("The following ADLS Gen2 base folder location is generated: {} (from {})", generatedLocation, location); return generatedLocation; }  @Override String generateBackupLocation(String location, String clusterType,
            String clusterName, String clusterId); }
AdlsGen2BackupConfigGenerator extends CloudBackupConfigGenerator<AdlsGen2BackupConfig> { @Override public String generateBackupLocation(String location, String clusterType, String clusterName, String clusterId) { AdlsGen2BackupConfig adlsGen2BackupConfig = generateBackupConfig(location); String logFolder = resolveBackupFolder(adlsGen2BackupConfig, clusterType, clusterName, clusterId); String hostPart = String.format("%s.%s", adlsGen2BackupConfig.getAccount(), AZURE_DFS_DOMAIN_SUFFIX); String generatedLocation = String.format("%s%s", AZURE_BLOB_STORAGE_SCHEMA, Paths.get(hostPart, adlsGen2BackupConfig.getFileSystem(), logFolder)); LOGGER.info("The following ADLS Gen2 base folder location is generated: {} (from {})", generatedLocation, location); return generatedLocation; }  @Override String generateBackupLocation(String location, String clusterType,
            String clusterName, String clusterId);  }