Class ExecutionEnvironment

  • All Implemented Interfaces:
    java.io.Serializable

    public class ExecutionEnvironment
    extends java.lang.Object
    implements java.io.Serializable
    Elements that should be brought into an execution environment for a given resource (job, cluster, etc).
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ExecutionEnvironment​(java.util.Set<java.lang.String> configs, java.util.Set<java.lang.String> dependencies, java.lang.String setupFile)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getConfigs()
      Get the configuration files needed at runtime.
      java.util.Set<java.lang.String> getDependencies()
      Get the dependency files needed at runtime.
      java.util.Optional<java.lang.String> getSetupFile()
      Get the setup file location if there is one.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ExecutionEnvironment

        public ExecutionEnvironment​(@Nullable
                                    java.util.Set<java.lang.String> configs,
                                    @Nullable
                                    java.util.Set<java.lang.String> dependencies,
                                    @Nullable
                                    java.lang.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 Detail

      • getConfigs

        public java.util.Set<java.lang.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 java.util.Set<java.lang.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 java.util.Optional<java.lang.String> getSetupFile()
        Get the setup file location if there is one.
        Returns:
        Setup file location wrapped in an Optional