/** * Returns the (designated) physical storage location of the BLOB with the given job ID and key. * * @param jobID * the ID of the job the BLOB belongs to * @param key * the key of the BLOB * @return the (designated) physical storage location of the BLOB with the given job ID and key */ static File getStorageLocation(File storageDir, JobID jobID, String key) { return new File(getJobDirectory(storageDir, jobID), BLOB_FILE_PREFIX + encodeKey(key)); }
/** * Deletes the storage directory for the job with the given ID. * * @param jobID * jobID whose directory shall be deleted */ static void deleteJobDirectory(File storageDir, JobID jobID) throws IOException { File directory = getJobDirectory(storageDir, jobID); FileUtils.deleteDirectory(directory); }