Class ExecutionEnvironment
java.lang.Object
com.netflix.genie.common.internal.dtos.ExecutionEnvironment
- All Implemented Interfaces:
Serializable
Elements that should be brought into an execution environment for a given resource (job, cluster, etc).
- Since:
- 4.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the configuration files needed at runtime.Get the dependency files needed at runtime.Get the setup file location if there is one.
-
Constructor Details
-
ExecutionEnvironment
public ExecutionEnvironment(@Nullable Set<String> configs, @Nullable Set<String> dependencies, @Nullable String setupFile) Constructor.- Parameters:
configs
- Any configuration files needed for a resource at execution time. 1024 characters max for each. Optional. Any blanks will be removeddependencies
- Any dependency files needed for a resource at execution time. 1024 characters max for each. Optional. Any blanks will be removedsetupFile
- Any file that should be run to setup a resource at execution time. 1024 characters max. Optional
-
-
Method Details
-
getConfigs
Get the configuration files needed at runtime. The returned set will be immutable and any attempt to modify will throw an exception.- Returns:
- The set of setup file locations.
-
getDependencies
Get the dependency files needed at runtime. The returned set will be immutable and any attempt to modify will throw an exception.- Returns:
- The set of dependency file locations.
-
getSetupFile
Get the setup file location if there is one.- Returns:
- Setup file location wrapped in an
Optional
-