/** * Uploads the given user artifacts using the given {@link BlobClient}, and sets the appropriate blobkeys on the given {@link JobGraph}. * * @param jobGraph jobgraph requiring user artifacts * @param artifactPaths artifacts to upload * @param blobClient client to upload artifacts with * @throws IOException if the upload fails */ private static void uploadAndSetUserArtifacts(JobGraph jobGraph, Collection<Tuple2<String, Path>> artifactPaths, BlobClient blobClient) throws IOException { Collection<Tuple2<String, PermanentBlobKey>> blobKeys = uploadUserArtifacts(jobGraph.getJobID(), artifactPaths, blobClient); setUserArtifactBlobKeys(jobGraph, blobKeys); }
/** * Uploads the given user artifacts using the given {@link BlobClient}, and sets the appropriate blobkeys on the given {@link JobGraph}. * * @param jobGraph jobgraph requiring user artifacts * @param artifactPaths artifacts to upload * @param blobClient client to upload artifacts with * @throws IOException if the upload fails */ private static void uploadAndSetUserArtifacts(JobGraph jobGraph, Collection<Tuple2<String, Path>> artifactPaths, BlobClient blobClient) throws IOException { Collection<Tuple2<String, PermanentBlobKey>> blobKeys = uploadUserArtifacts(jobGraph.getJobID(), artifactPaths, blobClient); setUserArtifactBlobKeys(jobGraph, blobKeys); }
/** * Uploads the given user artifacts using the given {@link BlobClient}, and sets the appropriate blobkeys on the given {@link JobGraph}. * * @param jobGraph jobgraph requiring user artifacts * @param artifactPaths artifacts to upload * @param blobClient client to upload artifacts with * @throws IOException if the upload fails */ private static void uploadAndSetUserArtifacts(JobGraph jobGraph, Collection<Tuple2<String, Path>> artifactPaths, BlobClient blobClient) throws IOException { Collection<Tuple2<String, PermanentBlobKey>> blobKeys = uploadUserArtifacts(jobGraph.getJobID(), artifactPaths, blobClient); setUserArtifactBlobKeys(jobGraph, blobKeys); }