Class DockerRemoteTerminal.ContainerApplication
- java.lang.Object
-
- com.oracle.bedrock.extensible.AbstractExtensible
-
- com.oracle.bedrock.runtime.docker.DockerRemoteTerminal.ContainerApplication
-
- All Implemented Interfaces:
com.oracle.bedrock.extensible.Extensible,com.oracle.bedrock.runtime.Application,Closeable,AutoCloseable
- Enclosing class:
- DockerRemoteTerminal
public static class DockerRemoteTerminal.ContainerApplication extends com.oracle.bedrock.extensible.AbstractExtensible implements com.oracle.bedrock.runtime.ApplicationAn implementation of anApplicationthe sole purpose of which is to be able to capture theApplicationProcess.
-
-
Constructor Summary
Constructors Constructor Description ContainerApplication(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.ApplicationProcess process, com.oracle.bedrock.OptionsByType optionsByType)Constructs aDockerRemoteTerminal.ContainerApplication
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidclose(com.oracle.bedrock.Option... options)intexitValue()com.oracle.bedrock.options.TimeoutgetDefaultTimeout()longgetId()StringgetName()com.oracle.bedrock.OptionsByTypegetOptions()com.oracle.bedrock.runtime.PlatformgetPlatform()com.oracle.bedrock.runtime.ApplicationProcessgetProcess()Obtain theApplicationProcessrepresenting theApplication.booleanisOperational()intwaitFor(com.oracle.bedrock.Option... options)-
Methods inherited from class com.oracle.bedrock.extensible.AbstractExtensible
add, add, get, getInstancesOf, has, remove, removeAllFeatures
-
-
-
-
Constructor Detail
-
ContainerApplication
public ContainerApplication(com.oracle.bedrock.runtime.Platform platform, com.oracle.bedrock.runtime.ApplicationProcess process, com.oracle.bedrock.OptionsByType optionsByType)Constructs aDockerRemoteTerminal.ContainerApplication- Parameters:
platform- thePlatformon which theApplicationwas launchedprocess- the underlyingApplicationProcessrepresenting theApplicationoptionsByType- theOptionsByTypeused to launch theApplication
-
-
Method Detail
-
getProcess
public com.oracle.bedrock.runtime.ApplicationProcess getProcess()
Obtain theApplicationProcessrepresenting theApplication.- Returns:
- the
ApplicationProcessrepresenting theApplication
-
close
public void close()
- Specified by:
closein interfacecom.oracle.bedrock.runtime.Application- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getName
public String getName()
- Specified by:
getNamein interfacecom.oracle.bedrock.runtime.Application
-
getPlatform
public com.oracle.bedrock.runtime.Platform getPlatform()
- Specified by:
getPlatformin interfacecom.oracle.bedrock.runtime.Application
-
isOperational
public boolean isOperational()
- Specified by:
isOperationalin interfacecom.oracle.bedrock.runtime.Application
-
close
public void close(com.oracle.bedrock.Option... options)
- Specified by:
closein interfacecom.oracle.bedrock.runtime.Application
-
waitFor
public int waitFor(com.oracle.bedrock.Option... options)
- Specified by:
waitForin interfacecom.oracle.bedrock.runtime.Application
-
exitValue
public int exitValue()
- Specified by:
exitValuein interfacecom.oracle.bedrock.runtime.Application
-
getId
public long getId()
- Specified by:
getIdin interfacecom.oracle.bedrock.runtime.Application
-
getDefaultTimeout
public com.oracle.bedrock.options.Timeout getDefaultTimeout()
- Specified by:
getDefaultTimeoutin interfacecom.oracle.bedrock.runtime.Application
-
getOptions
public com.oracle.bedrock.OptionsByType getOptions()
- Specified by:
getOptionsin interfacecom.oracle.bedrock.runtime.Application
-
-