1414 * limitations under the License.
1515 */
1616
17- package io .aiven .kafka .tieredstorage ;
17+ package io .aiven .kafka .tieredstorage . config ;
1818
1919import java .nio .file .Path ;
2020import java .time .Duration ;
@@ -274,7 +274,7 @@ private static String privateKeyFileConfig(final String keyPairId) {
274274
275275 private final EncryptionConfig encryptionConfig ;
276276
277- RemoteStorageManagerConfig (final Map <String , ?> props ) {
277+ public RemoteStorageManagerConfig (final Map <String , ?> props ) {
278278 super (CONFIG , props );
279279 encryptionConfig = encryptionEnabled () ? EncryptionConfig .create (props ) : null ;
280280 validate ();
@@ -291,57 +291,57 @@ private void validateCompression() {
291291 }
292292 }
293293
294- StorageBackend storage () {
294+ public StorageBackend storage () {
295295 final Class <?> storageClass = getClass (STORAGE_BACKEND_CLASS_CONFIG );
296296 final StorageBackend storage = Utils .newInstance (storageClass , StorageBackend .class );
297297 storage .configure (this .originalsWithPrefix (STORAGE_PREFIX ));
298298 return storage ;
299299 }
300300
301- Optional <Long > segmentManifestCacheSize () {
301+ public Optional <Long > segmentManifestCacheSize () {
302302 final long rawValue = getLong (SEGMENT_MANIFEST_CACHE_SIZE_CONFIG );
303303 if (rawValue == -1 ) {
304304 return Optional .empty ();
305305 }
306306 return Optional .of (rawValue );
307307 }
308308
309- Optional <Duration > segmentManifestCacheRetention () {
309+ public Optional <Duration > segmentManifestCacheRetention () {
310310 final long rawValue = getLong (SEGMENT_MANIFEST_CACHE_RETENTION_MS_CONFIG );
311311 if (rawValue == -1 ) {
312312 return Optional .empty ();
313313 }
314314 return Optional .of (Duration .ofMillis (rawValue ));
315315 }
316316
317- String keyPrefix () {
317+ public String keyPrefix () {
318318 return getString (OBJECT_KEY_PREFIX_CONFIG );
319319 }
320320
321- int chunkSize () {
321+ public int chunkSize () {
322322 return getInt (CHUNK_SIZE_CONFIG );
323323 }
324324
325- boolean compressionEnabled () {
325+ public boolean compressionEnabled () {
326326 return getBoolean (COMPRESSION_ENABLED_CONFIG );
327327 }
328328
329- boolean compressionHeuristicEnabled () {
329+ public boolean compressionHeuristicEnabled () {
330330 return getBoolean (COMPRESSION_HEURISTIC_ENABLED_CONFIG );
331331 }
332332
333- boolean encryptionEnabled () {
333+ public boolean encryptionEnabled () {
334334 return getBoolean (ENCRYPTION_CONFIG );
335335 }
336336
337- String encryptionKeyPairId () {
337+ public String encryptionKeyPairId () {
338338 if (!encryptionEnabled ()) {
339339 return null ;
340340 }
341341 return encryptionConfig .activeKeyPairId ();
342342 }
343343
344- Map <String , KeyPairPaths > encryptionKeyRing () {
344+ public Map <String , KeyPairPaths > encryptionKeyRing () {
345345 if (!encryptionEnabled ()) {
346346 return null ;
347347 }
0 commit comments