Class GoogleStorageBinaryManager.GCPFileStorage

    • Constructor Detail

      • GCPFileStorage

        public GCPFileStorage()
    • Method Detail

      • storeFile

        public void storeFile​(String digest,
                              File file)
        Description copied from interface: FileStorage
        Stores a file based on a key.
        Specified by:
        storeFile in interface FileStorage
        Parameters:
        digest - the file key
        file - the file
      • fetchFile

        public boolean fetchFile​(String key,
                                 File file)
        Description copied from interface: FileStorage
        Fetches a file based on its key.
        Specified by:
        fetchFile in interface FileStorage
        Parameters:
        key - the file key
        file - the file to use to store the fetched data
        Returns:
        true if the file was fetched, false if the file was not found
      • exists

        public boolean exists​(String digest)
        Description copied from interface: FileStorage
        Does a blob with the given key exist in the storage.

        The existence of the blob is checked in the storage where the blob is effectively stored. Intermediate cache is ignored.

        Specified by:
        exists in interface FileStorage
        Parameters:
        digest - the blob key
        Returns:
        true if it exists in the storage