Package org.nuxeo.ecm.core.storage.gcp
Class GoogleStorageBinaryManager.GCPFileStorage
- java.lang.Object
-
- org.nuxeo.ecm.core.storage.gcp.GoogleStorageBinaryManager.GCPFileStorage
-
- All Implemented Interfaces:
FileStorage
- Enclosing class:
- GoogleStorageBinaryManager
public class GoogleStorageBinaryManager.GCPFileStorage extends Object implements FileStorage
-
-
Constructor Summary
Constructors Constructor Description GCPFileStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists(String digest)Does a blob with the given key exist in the storage.booleanfetchFile(String key, File file)Fetches a file based on its key.voidstoreFile(String digest, File file)Stores a file based on a key.
-
-
-
Method Detail
-
storeFile
public void storeFile(String digest, File file)
Description copied from interface:FileStorageStores a file based on a key.- Specified by:
storeFilein interfaceFileStorage- Parameters:
digest- the file keyfile- the file
-
fetchFile
public boolean fetchFile(String key, File file)
Description copied from interface:FileStorageFetches a file based on its key.- Specified by:
fetchFilein interfaceFileStorage- Parameters:
key- the file keyfile- the file to use to store the fetched data- Returns:
trueif the file was fetched,falseif the file was not found
-
exists
public boolean exists(String digest)
Description copied from interface:FileStorageDoes 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:
existsin interfaceFileStorage- Parameters:
digest- the blob key- Returns:
- true if it exists in the storage
-
-