public final class TwillContainerLauncher extends Object
Constructor and Description |
---|
TwillContainerLauncher(RuntimeSpecification runtimeSpec,
ContainerInfo containerInfo,
ProcessLauncher.PrepareLaunchContext launchContext,
ZKClient zkClient,
int instanceCount,
JvmOptions jvmOpts,
int reservedMemory,
double minHeapRatio,
Location secureStoreLocation) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxHeapMemoryMB()
Returns the maximum heap memory size in MB of the Java process launched in the container.
|
TwillContainerController |
start(RunId runId,
int instanceId,
Class<?> mainClass,
String classPath,
Location logLevelLocation)
Start execution run for a class in a container.
|
public TwillContainerLauncher(RuntimeSpecification runtimeSpec, ContainerInfo containerInfo, ProcessLauncher.PrepareLaunchContext launchContext, ZKClient zkClient, int instanceCount, JvmOptions jvmOpts, int reservedMemory, double minHeapRatio, Location secureStoreLocation)
public TwillContainerController start(RunId runId, int instanceId, Class<?> mainClass, String classPath, @Nullable Location logLevelLocation)
TwillContainerController
that allows sending messages directly to the container.runId
- Use to represent unique id of the container run.instanceId
- The Twill instance Id.mainClass
- The main class to run in the container.classPath
- The class path to load classes for the container.logLevelLocation
- The log level file location for the container to localize.TwillContainerController
to control the container run.public int getMaxHeapMemoryMB()
start(RunId, int, Class, String, Location)
method.IllegalStateException
- if the start(RunId, int, Class, String, Location)
was not called yet.Copyright © 2013-2020 The Apache Software Foundation. All rights reserved.