Class ExecutionEnvironment

java.lang.Object
com.netflix.genie.common.internal.dtos.ExecutionEnvironment
All Implemented Interfaces:
Serializable

public class ExecutionEnvironment extends Object implements Serializable
Elements that should be brought into an execution environment for a given resource (job, cluster, etc).
Since:
4.0.0
See Also:
  • 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 removed
      dependencies - Any dependency files needed for a resource at execution time. 1024 characters max for each. Optional. Any blanks will be removed
      setupFile - Any file that should be run to setup a resource at execution time. 1024 characters max. Optional
  • Method Details

    • getConfigs

      public Set<String> 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

      public Set<String> 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

      public Optional<String> getSetupFile()
      Get the setup file location if there is one.
      Returns:
      Setup file location wrapped in an Optional