/** * Deletes all BLOBs belonging to the job with the given ID from the BLOB server * * @param jobId * the job ID to identify the BLOBs to be deleted * @throws IOException * thrown if an I/O error occurs while transferring the request to the BLOB server */ public void deleteAll(JobID jobId) throws IOException { if (jobId == null) { throw new IllegalArgumentException("Argument jobID must not be null"); } deleteInternal(jobId, null, null); }
/** * Deletes the BLOB identified by the given BLOB key from the BLOB server. * * @param key * the key to identify the BLOB * @throws IOException * thrown if an I/O error occurs while transferring the request to * the BLOB server or if the BLOB server cannot delete the file */ public void delete(BlobKey key) throws IOException { if (key == null) { throw new IllegalArgumentException("BLOB key must not be null"); } deleteInternal(null, null, key); }
/** * Deletes the BLOB identified by the given job ID and key from the BLOB server. * * @param jobId * the job ID to identify the BLOB * @param key * the key to identify the BLOB * @throws IOException * thrown if an I/O error occurs while transferring the request to the BLOB server */ public void delete(JobID jobId, String key) throws IOException { if (jobId == null) { throw new IllegalArgumentException("JobID must not be null"); } if (key == null) { throw new IllegalArgumentException("Key must not be null"); } if (key.length() > MAX_KEY_LENGTH) { throw new IllegalArgumentException("Keys must not be longer than " + MAX_KEY_LENGTH); } deleteInternal(jobId, key, null); }