public abstract class AbstractManagedContainer<T extends ContainerConfiguration> extends java.lang.Object implements ManagedContainer<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractManagedContainer.ConsoleConsumer
Runnable that consumes the output of the process.
|
ManagedContainer.Factory<T extends ContainerConfiguration>, ManagedContainer.State| Constructor and Description |
|---|
AbstractManagedContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(T configuration) |
void |
destroy() |
protected void |
destroyProcess() |
protected void |
doConfigure(T configuration) |
protected void |
doDestroy(T configuration) |
protected void |
doStart(T configuration) |
protected void |
doStop(T configuration) |
java.io.File |
getContainerHome() |
ManagedContainer.State |
getState() |
void |
start() |
protected void |
startProcess(java.lang.ProcessBuilder processBuilder,
ContainerConfiguration config) |
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetRuntimeTypepublic final void create(T configuration) throws LifecycleException
create in interface ManagedContainer<T extends ContainerConfiguration>LifecycleExceptionpublic java.io.File getContainerHome()
getContainerHome in interface ManagedContainer<T extends ContainerConfiguration>public ManagedContainer.State getState()
getState in interface ManagedContainer<T extends ContainerConfiguration>public final void start()
throws LifecycleException
start in interface ManagedContainer<T extends ContainerConfiguration>LifecycleExceptionpublic final void stop()
throws LifecycleException
stop in interface ManagedContainer<T extends ContainerConfiguration>LifecycleExceptionpublic final void destroy()
throws LifecycleException
destroy in interface ManagedContainer<T extends ContainerConfiguration>LifecycleExceptionprotected void doConfigure(T configuration) throws java.lang.Exception
java.lang.Exceptionprotected void doStart(T configuration) throws java.lang.Exception
java.lang.Exceptionprotected void doStop(T configuration) throws java.lang.Exception
java.lang.Exceptionprotected void doDestroy(T configuration) throws java.lang.Exception
java.lang.Exceptionprotected void startProcess(java.lang.ProcessBuilder processBuilder,
ContainerConfiguration config)
throws java.io.IOException
java.io.IOExceptionprotected void destroyProcess()
throws java.lang.Exception
java.lang.ExceptionCopyright © 2014 Red Hat. All Rights Reserved.