final boolean deletedHA = !cleanupBlobStoreFiles || blobStore.deleteAll(jobId);
try { blobStore.get(requiredBlob, localFile);
blobStore.put(storageFile, jobId, blobKey);
/** * This method deletes the file associated to the blob key if it exists in the local storage * of the blob server. * * @param key associated with the file to be deleted * @throws IOException */ @Override public void delete(BlobKey key) throws IOException { final File localFile = BlobUtils.getStorageLocation(storageDir, key); readWriteLock.writeLock().lock(); try { if (localFile.exists()) { if (!localFile.delete()) { LOG.warn("Failed to delete locally BLOB " + key + " at " + localFile.getAbsolutePath()); } } blobStore.delete(key); } finally { readWriteLock.writeLock().unlock(); } }
try { incomingFile = createTemporaryFilename(); blobStore.get(jobId, blobKey, incomingFile);
blobStore.put(storageFile, jobId, blobKey);
final boolean deletedHA = !cleanupBlobStoreFiles || blobStore.deleteAll(jobId);
try { incomingFile = createTemporaryFilename(); blobStore.get(jobId, blobKey, incomingFile);
blobStore.put(storageFile, jobId, blobKey);
final boolean deletedHA = !cleanupBlobStoreFiles || blobStore.deleteAll(jobId);
try { incomingFile = createTemporaryFilename(); blobStore.get(jobId, blobKey, incomingFile);