@Test public void getTarBufferingTimeoutInMinutes() throws Exception { BucketTopologyHelper bucketTopologyHelper = loadTopology("topology-test.conf"); assertThat(bucketTopologyHelper.getTarBufferingTimeoutInMinutes("test")).isEqualTo(1); assertThat(bucketTopologyHelper.getTarBufferingTimeoutInMinutes("admin")).isEqualTo(10); assertThat(bucketTopologyHelper.getTarBufferingTimeoutInMinutes("prod")).isEqualTo(60); }
public Integer getTarBufferingTimeoutInMinutes(String bucketId) { return tarBufferingTimeoutInMinutesByBucketId.get(bucketId); }
BucketTopologyHelper { public Integer getTarBufferingTimeoutInMinutes(String bucketId) { return tarBufferingTimeoutInMinutesByBucketId.get(bucketId); } }
BucketTopologyHelper { public Integer getTarBufferingTimeoutInMinutes(String bucketId) { return tarBufferingTimeoutInMinutesByBucketId.get(bucketId); } BucketTopologyHelper(TapeLibraryTopologyConfiguration configuration); }
BucketTopologyHelper { public Integer getTarBufferingTimeoutInMinutes(String bucketId) { return tarBufferingTimeoutInMinutesByBucketId.get(bucketId); } 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 Integer getTarBufferingTimeoutInMinutes(String bucketId) { return tarBufferingTimeoutInMinutesByBucketId.get(bucketId); } 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; }