Package org.pipecraft.infra.storage
Interface Storage<S extends Bucket<T>,T>
-
- Type Parameters:
S- The bucket class typeT- The object metadata type
- All Known Implementing Classes:
LocalDiskStorage
public interface Storage<S extends Bucket<T>,T>A parent interface for all remote/local storage implementations- Author:
- Eyal Schneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SgetBucket(String bucketName)StringgetProtocol()
-
-
-
Method Detail
-
getBucket
S getBucket(String bucketName)
- Parameters:
bucketName- The bucket name- Returns:
- The bucket object for performing file operations on the given bucket. Calling this method on a non existing bucket should not fail and should not have any side effects.
-
getProtocol
String getProtocol()
- Returns:
- The protocol name serving as a prefix when using fully qualified paths (e.g. "gs" or "s3")
-
-