Class 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.Application
    An implementation of an Application the sole purpose of which is to be able to capture the ApplicationProcess.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.oracle.bedrock.runtime.Application

        com.oracle.bedrock.runtime.Application.MetaClass
    • Constructor Detail

      • ContainerApplication

        public ContainerApplication​(com.oracle.bedrock.runtime.Platform platform,
                                    com.oracle.bedrock.runtime.ApplicationProcess process,
                                    com.oracle.bedrock.OptionsByType optionsByType)
        Parameters:
        platform - the Platform on which the Application was launched
        process - the underlying ApplicationProcess representing the Application
        optionsByType - the OptionsByType used to launch the Application
    • Method Detail

      • getProcess

        public com.oracle.bedrock.runtime.ApplicationProcess getProcess()
        Obtain the ApplicationProcess representing the Application.
        Returns:
        the ApplicationProcess representing the Application
      • close

        public void close()
        Specified by:
        close in interface com.oracle.bedrock.runtime.Application
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • getName

        public String getName()
        Specified by:
        getName in interface com.oracle.bedrock.runtime.Application
      • getPlatform

        public com.oracle.bedrock.runtime.Platform getPlatform()
        Specified by:
        getPlatform in interface com.oracle.bedrock.runtime.Application
      • isOperational

        public boolean isOperational()
        Specified by:
        isOperational in interface com.oracle.bedrock.runtime.Application
      • close

        public void close​(com.oracle.bedrock.Option... options)
        Specified by:
        close in interface com.oracle.bedrock.runtime.Application
      • waitFor

        public int waitFor​(com.oracle.bedrock.Option... options)
        Specified by:
        waitFor in interface com.oracle.bedrock.runtime.Application
      • exitValue

        public int exitValue()
        Specified by:
        exitValue in interface com.oracle.bedrock.runtime.Application
      • getId

        public long getId()
        Specified by:
        getId in interface com.oracle.bedrock.runtime.Application
      • getDefaultTimeout

        public com.oracle.bedrock.options.Timeout getDefaultTimeout()
        Specified by:
        getDefaultTimeout in interface com.oracle.bedrock.runtime.Application
      • getOptions

        public com.oracle.bedrock.OptionsByType getOptions()
        Specified by:
        getOptions in interface com.oracle.bedrock.runtime.Application