Class GCPRawStorageImpl

java.lang.Object
org.webpieces.googlecloud.storage.impl.raw.GCPRawStorageImpl
All Implemented Interfaces:
GCPRawStorage

@Singleton public class GCPRawStorageImpl extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    copy(com.google.cloud.storage.Storage.CopyRequest copyRequest)
     
    boolean
    delete(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
     
    com.google.cloud.storage.Bucket
    get(String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)
     
    get(String bucket, String blob, com.google.cloud.storage.Storage.BlobGetOption... options)
     
    com.google.api.gax.paging.Page<GCPBlob>
    list(String bucket, com.google.cloud.storage.Storage.BlobListOption... options)
     
    byte[]
    readAllBytes(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
     
    com.google.cloud.ReadChannel
    reader(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
     
    com.google.cloud.WriteChannel
    writer(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GCPRawStorageImpl

      @Inject public GCPRawStorageImpl(StorageSupplier storage)
  • Method Details

    • get

      public com.google.cloud.storage.Bucket get(String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)
      Specified by:
      get in interface GCPRawStorage
    • get

      public GCPBlob get(String bucket, String blob, com.google.cloud.storage.Storage.BlobGetOption... options)
      Specified by:
      get in interface GCPRawStorage
    • list

      public com.google.api.gax.paging.Page<GCPBlob> list(String bucket, com.google.cloud.storage.Storage.BlobListOption... options)
      Specified by:
      list in interface GCPRawStorage
    • delete

      public boolean delete(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
      Specified by:
      delete in interface GCPRawStorage
    • readAllBytes

      public byte[] readAllBytes(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
      Specified by:
      readAllBytes in interface GCPRawStorage
    • reader

      public com.google.cloud.ReadChannel reader(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)
      Specified by:
      reader in interface GCPRawStorage
    • writer

      public com.google.cloud.WriteChannel writer(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options)
      Specified by:
      writer in interface GCPRawStorage
    • copy

      public CopyInterface copy(com.google.cloud.storage.Storage.CopyRequest copyRequest)
      Specified by:
      copy in interface GCPRawStorage