public class PipelineResources
extends java.lang.Object
Constructor and Description |
---|
PipelineResources() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
detectClassPathResourcesToStage(java.lang.ClassLoader classLoader,
PipelineOptions options)
Uses algorithm provided via
PipelineResourcesOptions to detect classpath resources. |
static void |
prepareFilesForStaging(FileStagingOptions options)
Goes through the list of files that need to be staged on runner.
|
static java.util.List<java.lang.String> |
prepareFilesForStaging(java.util.List<java.lang.String> resourcesToStage,
java.lang.String tmpJarLocation)
Goes through the list of files that need to be staged on runner.
|
public static java.util.List<java.lang.String> detectClassPathResourcesToStage(java.lang.ClassLoader classLoader, PipelineOptions options)
PipelineResourcesOptions
to detect classpath resources.classLoader
- The URLClassLoader to use to detect resources to stage (optional).options
- pipeline optionspublic static void prepareFilesForStaging(FileStagingOptions options)
This method mutates the filesToStage value of the given options.
options
- options object with the files to stage and temp location for stagingpublic static java.util.List<java.lang.String> prepareFilesForStaging(java.util.List<java.lang.String> resourcesToStage, java.lang.String tmpJarLocation)
resourcesToStage
- list of resources that need to be stagedtmpJarLocation
- temporary directory to store the jarsjava.lang.IllegalStateException
- if the directory to be staged does not exist