/** * Uploads the data of the given byte array to the BLOB server in a content-addressable manner. * * @param value * the buffer to upload * @return the computed BLOB key identifying the BLOB on the server * @throws IOException * thrown if an I/O error occurs while uploading the data to the BLOB server */ public BlobKey put(byte[] value) throws IOException { return put(value, 0, value.length); }
/** * Uploads the data of the given byte array to the BLOB server and stores it under the given job ID and key. * * @param jobId * the job ID to identify the uploaded data * @param key * the key to identify the uploaded data * @param value * the buffer to upload * @throws IOException * thrown if an I/O error occurs while uploading the data to the BLOB server */ public void put(JobID jobId, String key, byte[] value) throws IOException { put(jobId, key, value, 0, value.length); }
try { is = fs.open(jar); final BlobKey key = blobClient.put(is); blobKeys.add(key); } finally {
try { is = fs.open(jar); final BlobKey key = bc.put(is); this.userJarBlobKeys.add(key);