Class WindowsRemoteApplicationProcess

java.lang.Object
com.oracle.bedrock.runtime.remote.windows.winrm.WindowsRemoteApplicationProcess
All Implemented Interfaces:
com.oracle.bedrock.runtime.ApplicationProcess, RemoteApplicationProcess, Closeable, AutoCloseable

public class WindowsRemoteApplicationProcess extends Object implements RemoteApplicationProcess
A RemoteApplicationProcess running in a Windows O/S.

Copyright (c) 2015. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Jonathan Knight
  • Constructor Details

  • Method Details

    • close

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

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

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

      public InputStream getErrorStream()
      Specified by:
      getErrorStream in interface com.oracle.bedrock.runtime.ApplicationProcess
    • getInputStream

      public InputStream getInputStream()
      Specified by:
      getInputStream in interface com.oracle.bedrock.runtime.ApplicationProcess
    • getOutputStream

      public OutputStream getOutputStream()
      Specified by:
      getOutputStream in interface com.oracle.bedrock.runtime.ApplicationProcess
    • waitFor

      public int waitFor(com.oracle.bedrock.Option... options)
      Specified by:
      waitFor in interface com.oracle.bedrock.runtime.ApplicationProcess
    • execute

      public void execute(String command, List<String> args) throws IOException
      Execute the specified command using the current WindowsSession.
      Parameters:
      command - the command to execute
      args - the command line arguments for the command
      Throws:
      IOException - if an error occurs executing the command