Package org.apache.heron.spi.scheduler
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
This is to for disposing or cleaning up any internal state accumulated by the ILaunchervoid
initialize(Config config, Config runtime)
Initialize Launcher with Config, Uploader and topology.boolean
launch(PackingPlan packing)
Starts scheduler.
-
-
-
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 configruntime
- the runtime
-
close
void close()
This is to for disposing or cleaning up any internal state accumulated by the ILauncherCloses 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 interfaceAutoCloseable
-
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.
-
-