public class ProcessManagerController extends java.lang.Object implements ChildContainerController
ChildContainerController which uses the ProcessManager| Constructor and Description |
|---|
ProcessManagerController(ProcessControllerFactoryService owner,
Configurer configurer,
ProcessManager processManager,
FabricService fabricService,
org.apache.curator.framework.CuratorFramework curator) |
| Modifier and Type | Method and Description |
|---|---|
CreateChildContainerMetadata |
create(CreateChildContainerOptions options,
CreationStateListener listener) |
protected InstallOptions |
createJavaInstallOptions(Container container,
CreateChildContainerMetadata metadata,
CreateChildContainerOptions options,
java.util.Map<java.lang.String,java.lang.String> environmentVariables) |
protected InstallOptions |
createProcessInstallOptions(Container container,
CreateChildContainerMetadata metadata,
CreateChildContainerOptions options,
ProcessContainerConfig configObject,
java.util.Map<java.lang.String,java.lang.String> environmentVariables) |
protected InstallTask |
createProcessPostInstall(Container container,
CreateChildContainerOptions options,
ProcessContainerConfig configObject,
java.util.Map<java.lang.String,java.lang.String> environmentVariables) |
void |
destroy(Container container) |
protected Installation |
getInstallation(Container container) |
protected void |
handleException(java.lang.String message,
java.lang.Exception cause) |
protected void |
publishZooKeeperValues(CreateChildContainerOptions options,
ProcessContainerConfig processConfig,
Container container,
java.util.Map<java.lang.String,java.lang.String> environmentVariables) |
protected void |
registerPorts(CreateChildContainerOptions options,
ProcessContainerConfig processConfig,
Container container,
java.util.Map<java.lang.String,java.lang.String> environmentVariables)
Generates mappings from logical ports to physically allocated dynamic ports and exposes them as environment variables
|
protected void |
setProvisionList(Container container,
java.util.Map<java.lang.String,java.io.File> javaArtifacts) |
void |
start(Container container) |
void |
stop(Container container) |
public ProcessManagerController(ProcessControllerFactoryService owner, Configurer configurer, ProcessManager processManager, FabricService fabricService, org.apache.curator.framework.CuratorFramework curator)
public CreateChildContainerMetadata create(CreateChildContainerOptions options, CreationStateListener listener) throws java.lang.Exception
create in interface ChildContainerControllerjava.lang.Exceptionpublic void start(Container container)
start in interface ChildContainerControllerpublic void stop(Container container)
stop in interface ChildContainerControllerpublic void destroy(Container container)
destroy in interface ChildContainerControllerprotected InstallOptions createJavaInstallOptions(Container container, CreateChildContainerMetadata metadata, CreateChildContainerOptions options, java.util.Map<java.lang.String,java.lang.String> environmentVariables) throws java.lang.Exception
java.lang.Exceptionprotected InstallOptions createProcessInstallOptions(Container container, CreateChildContainerMetadata metadata, CreateChildContainerOptions options, ProcessContainerConfig configObject, java.util.Map<java.lang.String,java.lang.String> environmentVariables) throws java.lang.Exception
java.lang.Exceptionprotected InstallTask createProcessPostInstall(Container container, CreateChildContainerOptions options, ProcessContainerConfig configObject, java.util.Map<java.lang.String,java.lang.String> environmentVariables) throws java.lang.Exception
java.lang.Exceptionprotected void setProvisionList(Container container, java.util.Map<java.lang.String,java.io.File> javaArtifacts)
protected void registerPorts(CreateChildContainerOptions options, ProcessContainerConfig processConfig, Container container, java.util.Map<java.lang.String,java.lang.String> environmentVariables)
protected void publishZooKeeperValues(CreateChildContainerOptions options, ProcessContainerConfig processConfig, Container container, java.util.Map<java.lang.String,java.lang.String> environmentVariables)
protected Installation getInstallation(Container container)
protected void handleException(java.lang.String message,
java.lang.Exception cause)
Copyright © 2011-2014 Red Hat. All Rights Reserved.