Interface ILauncher

  • All Superinterfaces:
    AutoCloseable

    @LimitedPrivate
    @Evolving
    public interface ILauncher
    extends AutoCloseable
    Launches scheduler. heron-cli will create Launcher object using default no argument constructor.
    • Method Detail

      • initialize

        void initialize​(Config config,
                        Config runtime)
        Initialize Launcher with Config, Uploader and topology. These object will be passed from submitter main. Config will contain information that launcher may use to setup scheduler and other parameters required by launcher to contact services which will launch scheduler.
        Parameters:
        config - the config
        runtime - the runtime
      • close

        void close()
        This is to for disposing or cleaning up any internal state accumulated by the ILauncher

        Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

        Specified by:
        close in interface AutoCloseable
      • launch

        boolean launch​(PackingPlan packing)
        Starts scheduler. Once this function returns successfully, heron-cli will terminate and the launch process succeeded.
        Parameters:
        packing - Initial mapping suggested by running packing algorithm. container_id->List of instance_id to be launched on this container.
        Returns:
        true if topology launched successfully, false otherwise.