Class WindowsRemoteApplicationProcess
java.lang.Object
com.oracle.bedrock.runtime.remote.windows.winrm.WindowsRemoteApplicationProcess
- All Implemented Interfaces:
com.oracle.bedrock.runtime.ApplicationProcess,RemoteApplicationProcess,Closeable,AutoCloseable
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 Summary
ConstructorsConstructorDescriptionCreate aWindowsRemoteApplicationProcesswrapping the specifiedWindowsSessionrunning the remote process. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidExecute the specified command using the currentWindowsSession.intlonggetId()intwaitFor(com.oracle.bedrock.Option... options)
-
Constructor Details
-
WindowsRemoteApplicationProcess
Create aWindowsRemoteApplicationProcesswrapping the specifiedWindowsSessionrunning the remote process.- Parameters:
session-WindowsSessionrunning the remote process.
-
-
Method Details
-
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
- Specified by:
getErrorStreamin interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
getInputStream
- Specified by:
getInputStreamin interfacecom.oracle.bedrock.runtime.ApplicationProcess
-
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
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
-