public class ContainerStartupOptionHelper
extends java.lang.Object
ContainerStartupOption objects.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONT_ARG_WRAPPER_OPTION
Wrapper for options targeted at the container application (passed to the container's main method).
|
static java.lang.String |
EXEC_ARG_LANG_WRAPPER_OPTION
Wrapper for options targeted at the language-specific container start script.
|
static java.lang.String |
OPTION_NAME_LEGACY_CONCATENATED
Default name used when storing a string of concatenated options,
typically from importing options that were specified before the TMCDB table ContainerStartupOption
allowed for finer granularity and meaningful option names.
|
| Constructor and Description |
|---|
ContainerStartupOptionHelper(java.util.logging.Logger logger)
Ctor that takes a logger.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertContainerStartupOptions(java.util.Collection<ContainerStartupOption> options)
Converts a list of ContainerStartupOption to a flat option string
that can be passed to the container daemon or used to satisfy DAL calls.
|
java.util.Collection<ContainerStartupOption> |
convertFlagsString(Container container,
java.lang.String flags)
Converts a string of options to one or more ContainerStartupOption objects.
|
public static final java.lang.String CONT_ARG_WRAPPER_OPTION
public static final java.lang.String EXEC_ARG_LANG_WRAPPER_OPTION
public static final java.lang.String OPTION_NAME_LEGACY_CONCATENATED
public ContainerStartupOptionHelper(java.util.logging.Logger logger)
public java.util.Collection<ContainerStartupOption> convertFlagsString(Container container,
java.lang.String flags)
Parses out the wrapper options and creates specialized ContainerStartupOption instances for their contents.
container - The container whose flags we convert (will be set on the created ContainerStartupOption.flags - The flags string, as it comes from the CDB (Container.DeployInfo.Flags) or from the WDAL interface. May be null.public java.lang.String convertContainerStartupOptions(java.util.Collection<ContainerStartupOption> options)
options - java.lang.IllegalArgumentException - if an option references a different container than the other options
(all refs null is OK though)