public class BasicContainerLauncher extends ContainerLauncher
Launch containers with no security using standard java commands.
Method SummaryModifier and TypeMethodDescriptionLaunch a container in a given slot.Recover a container for a running process.Try to recover a container using just the worker ID.
resourceIsolationManagerprotected final ResourceIsolationInterface resourceIsolationManager
launchContainerpublic Container launchContainer
(int port, LocalAssignment assignment, LocalState state) throws IOExceptionLaunch a container in a given slot.
recoverContainerpublic Container recoverContainer
(int port, LocalAssignment assignment, LocalState state) throws IOExceptionRecover a container for a running process.
- Specified by:
port- the port the assignment is running on
assignment- the assignment that was launched
state- the current state of the supervisor
- The container that can be used to manage the processes.
IOException- on any error
recoverContainerTry to recover a container using just the worker ID. The result is really only useful for killing the container and so is returning a Killable. Even if a Container is returned do not case the result to Container because only the Killable APIs are guaranteed to work.