public class LocalContainerLauncher extends ContainerLauncher
Constructor and Description |
---|
LocalContainerLauncher(Map<String,Object> conf,
String supervisorId,
int supervisorPort,
IContext sharedContext,
StormMetricsRegistry metricsRegistry,
ContainerMemoryTracker containerMemoryTracker,
Supervisor.Iface localSupervisor) |
Modifier and Type | Method and Description |
---|---|
Container |
launchContainer(int port,
LocalAssignment assignment,
LocalState state)
Launch a container in a given slot.
|
Container |
recoverContainer(int port,
LocalAssignment assignment,
LocalState state)
Recover a container for a running process.
|
Killable |
recoverContainer(String workerId,
LocalState localState)
Try to recover a container using just the worker ID.
|
make
public LocalContainerLauncher(Map<String,Object> conf, String supervisorId, int supervisorPort, IContext sharedContext, StormMetricsRegistry metricsRegistry, ContainerMemoryTracker containerMemoryTracker, Supervisor.Iface localSupervisor)
public Container launchContainer(int port, LocalAssignment assignment, LocalState state) throws IOException
ContainerLauncher
launchContainer
in class ContainerLauncher
port
- the port to run this onassignment
- what to launchstate
- the current state of the supervisorIOException
- on any errorpublic Container recoverContainer(int port, LocalAssignment assignment, LocalState state) throws IOException
ContainerLauncher
recoverContainer
in class ContainerLauncher
port
- the port the assignment is running onassignment
- the assignment that was launchedstate
- the current state of the supervisorIOException
- on any errorpublic Killable recoverContainer(String workerId, LocalState localState) throws IOException
ContainerLauncher
recoverContainer
in class ContainerLauncher
workerId
- the id of the worker to uselocalState
- the state of the running supervisorIOException
- on any errorCopyright © 2023 The Apache Software Foundation. All rights reserved.