@Test public void getBucketFromFileBucket() throws Exception { BucketTopologyHelper bucketTopologyHelper = loadTopology("topology-test.conf"); assertThat(bucketTopologyHelper.getBucketFromFileBucket("test-metadata")).isEqualTo("test"); assertThat(bucketTopologyHelper.getBucketFromFileBucket("admin-objects")).isEqualTo("admin"); assertThat(bucketTopologyHelper.getBucketFromFileBucket("prod-default")).isEqualTo("prod"); }
public String getBucketFromFileBucket(String fileBucket) { if (BACKUP_FILE_BUCKET.equals(fileBucket)) { return BACKUP_BUCKET; } return this.fileBucketToBucketMap.get(fileBucket); }
BucketTopologyHelper { public String getBucketFromFileBucket(String fileBucket) { if (BACKUP_FILE_BUCKET.equals(fileBucket)) { return BACKUP_BUCKET; } return this.fileBucketToBucketMap.get(fileBucket); } }
BucketTopologyHelper { public String getBucketFromFileBucket(String fileBucket) { if (BACKUP_FILE_BUCKET.equals(fileBucket)) { return BACKUP_BUCKET; } return this.fileBucketToBucketMap.get(fileBucket); } BucketTopologyHelper(TapeLibraryTopologyConfiguration configuration); }
BucketTopologyHelper { public String getBucketFromFileBucket(String fileBucket) { if (BACKUP_FILE_BUCKET.equals(fileBucket)) { return BACKUP_BUCKET; } return this.fileBucketToBucketMap.get(fileBucket); } BucketTopologyHelper(TapeLibraryTopologyConfiguration configuration); static String getFileBucketId(String bucket, String fileBucket); String getFileBucketFromContainerName(String containerName); String getBucketFromFileBucket(String fileBucket); Set<String> listFileBuckets(); Set<String> listContainerNames(String fileBucketId); Integer getTarBufferingTimeoutInMinutes(String bucketId); }
BucketTopologyHelper { public String getBucketFromFileBucket(String fileBucket) { if (BACKUP_FILE_BUCKET.equals(fileBucket)) { return BACKUP_BUCKET; } return this.fileBucketToBucketMap.get(fileBucket); } BucketTopologyHelper(TapeLibraryTopologyConfiguration configuration); static String getFileBucketId(String bucket, String fileBucket); String getFileBucketFromContainerName(String containerName); String getBucketFromFileBucket(String fileBucket); Set<String> listFileBuckets(); Set<String> listContainerNames(String fileBucketId); Integer getTarBufferingTimeoutInMinutes(String bucketId); static final String DEFAULT; static final String BACKUP_BUCKET; static final String BACKUP_FILE_BUCKET; }