Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CopyInterface copy​(com.google.cloud.storage.Storage.CopyRequest copyRequest)  
      boolean delete​(java.lang.String bucket, java.lang.String blob, com.google.cloud.storage.Storage.BlobSourceOption... options)  
      com.google.cloud.storage.Bucket get​(java.lang.String bucket, com.google.cloud.storage.Storage.BucketGetOption... options)  
      GCPBlob get​(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.ReadChannel reader​(java.lang.String bucket, java.lang.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 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:
        get in interface GCPRawStorage
      • get

        public GCPBlob get​(java.lang.String bucket,
                           java.lang.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​(java.lang.String bucket,
                                                            com.google.cloud.storage.Storage.BlobListOption... options)
        Specified by:
        list in interface GCPRawStorage
      • delete

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

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

        public com.google.cloud.ReadChannel reader​(java.lang.String bucket,
                                                   java.lang.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