public interface BlobStore extends BlobView
Modifier and Type | Method and Description |
---|---|
boolean |
delete(JobID jobId,
BlobKey blobKey)
Tries to delete a blob from storage.
|
boolean |
deleteAll(JobID jobId)
Tries to delete all blobs for the given job from storage.
|
boolean |
put(File localFile,
JobID jobId,
BlobKey blobKey)
Copies the local file to the blob store.
|
boolean put(File localFile, JobID jobId, BlobKey blobKey) throws IOException
localFile
- The file to copyjobId
- ID of the job this blob belongs to (or null if job-unrelated)blobKey
- The ID for the file in the blob storeIOException
- If the copy failsboolean delete(JobID jobId, BlobKey blobKey)
NOTE: This also tries to delete any created directories if empty.
jobId
- ID of the job this blob belongs to (or null if job-unrelated)blobKey
- The blob IDboolean deleteAll(JobID jobId)
NOTE: This also tries to delete any created directories if empty.
jobId
- The JobID part of all blobs to deleteCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.