Class GCPRawStorageImpl
- java.lang.Object
-
- org.webpieces.googlecloud.storage.impl.raw.GCPRawStorageImpl
-
- All Implemented Interfaces:
GCPRawStorage
@Singleton public class GCPRawStorageImpl extends java.lang.Object implements GCPRawStorage
ADD NO CODE to this class as it is not tested until integration time. If it is 1 to 1, there is no testing to do and we rely on google's testing of Storage.java they have
-
-
Constructor Summary
Constructors Constructor Description GCPRawStorageImpl(StorageSupplier storage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyInterfacecopy(com.google.cloud.storage.Storage.CopyRequest copyRequest)booleandelete(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)com.google.cloud.storage.Bucketget(java.lang.String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)GCPBlobget(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobGetOption... options)com.google.api.gax.paging.Page<GCPBlob>list(java.lang.String bucket, com.google.cloud.storage.Storage.BlobListOption... options)byte[]readAllBytes(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)com.google.cloud.ReadChannelreader(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)com.google.cloud.WriteChannelwriter(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options)
-
-
-
Constructor Detail
-
GCPRawStorageImpl
@Inject public GCPRawStorageImpl(StorageSupplier storage)
-
-
Method Detail
-
get
public com.google.cloud.storage.Bucket get(java.lang.String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)- Specified by:
getin interfaceGCPRawStorage
-
get
public GCPBlob get(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobGetOption... options)
- Specified by:
getin interfaceGCPRawStorage
-
list
public com.google.api.gax.paging.Page<GCPBlob> list(java.lang.String bucket, com.google.cloud.storage.Storage.BlobListOption... options)
- Specified by:
listin interfaceGCPRawStorage
-
delete
public boolean delete(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)- Specified by:
deletein interfaceGCPRawStorage
-
readAllBytes
public byte[] readAllBytes(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)- Specified by:
readAllBytesin interfaceGCPRawStorage
-
reader
public com.google.cloud.ReadChannel reader(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)- Specified by:
readerin interfaceGCPRawStorage
-
writer
public com.google.cloud.WriteChannel writer(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options)- Specified by:
writerin interfaceGCPRawStorage
-
copy
public CopyInterface copy(com.google.cloud.storage.Storage.CopyRequest copyRequest)
- Specified by:
copyin interfaceGCPRawStorage
-
-