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
ARemoteApplicationProcessrunning 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 Summary
Constructors Constructor Description WindowsRemoteApplicationProcess(WindowsSession session)Create aWindowsRemoteApplicationProcesswrapping the specifiedWindowsSessionrunning the remote process.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidexecute(String command, List<String> args)Execute the specified command using the currentWindowsSession.intexitValue()InputStreamgetErrorStream()longgetId()InputStreamgetInputStream()OutputStreamgetOutputStream()intwaitFor(com.oracle.bedrock.Option... options)
-
-
-
Constructor Detail
-
WindowsRemoteApplicationProcess
public WindowsRemoteApplicationProcess(WindowsSession session)
Create aWindowsRemoteApplicationProcesswrapping the specifiedWindowsSessionrunning the remote process.- Parameters:
session-WindowsSessionrunning the remote process.
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfacecom.oracle.bedrock.runtime.ApplicationProcess- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
getId
public long getId()
- Specified by:
getIdin interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
exitValue
public int exitValue()
- Specified by:
exitValuein interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
getErrorStream
public InputStream getErrorStream()
- Specified by:
getErrorStreamin interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStreamin interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
getOutputStream
public OutputStream getOutputStream()
- Specified by:
getOutputStreamin interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
waitFor
public int waitFor(com.oracle.bedrock.Option... options)
- Specified by:
waitForin interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
execute
public void execute(String command, List<String> args) throws IOException
Execute the specified command using the currentWindowsSession.- Parameters:
command- the command to executeargs- the command line arguments for the command- Throws:
IOException- if an error occurs executing the command
-
-