Class WindowsRemoteTerminal
- java.lang.Object
-
- com.oracle.bedrock.runtime.remote.AbstractRemoteTerminal
-
- com.oracle.bedrock.runtime.remote.windows.winrm.WindowsRemoteTerminal
-
- All Implemented Interfaces:
RemoteTerminal
public class WindowsRemoteTerminal extends AbstractRemoteTerminal
A Windows implementation of aRemoteTerminalthat uses the WinRM SOAP service to execute commands.Copyright (c) 2015. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.oracle.bedrock.runtime.remote.RemoteTerminal
RemoteTerminal.Launchable
-
-
Constructor Summary
Constructors Constructor Description WindowsRemoteTerminal(RemotePlatform platform)Create a Windows remote shell that will connect to the WinRM service running on theRemotePlatform.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WindowsSessioncreateSession()Create aWindowsSessionthat can be used to communicate with the WinRM server on the remote host.RemoteApplicationProcesslaunch(RemoteTerminal.Launchable launchable, Class<? extends com.oracle.bedrock.runtime.Application> applicationClass, com.oracle.bedrock.OptionsByType optionsByType)voidmakeDirectories(String directoryName, com.oracle.bedrock.OptionsByType optionsByType)voidmoveFile(String source, String destination, com.oracle.bedrock.OptionsByType optionsByType)-
Methods inherited from class com.oracle.bedrock.runtime.remote.AbstractRemoteTerminal
getRemotePlatform
-
-
-
-
Constructor Detail
-
WindowsRemoteTerminal
public WindowsRemoteTerminal(RemotePlatform platform)
Create a Windows remote shell that will connect to the WinRM service running on theRemotePlatform.- Parameters:
platform- theRemotePlatform
-
-
Method Detail
-
launch
public RemoteApplicationProcess launch(RemoteTerminal.Launchable launchable, Class<? extends com.oracle.bedrock.runtime.Application> applicationClass, com.oracle.bedrock.OptionsByType optionsByType)
-
makeDirectories
public void makeDirectories(String directoryName, com.oracle.bedrock.OptionsByType optionsByType)
-
moveFile
public void moveFile(String source, String destination, com.oracle.bedrock.OptionsByType optionsByType)
-
createSession
protected WindowsSession createSession()
Create aWindowsSessionthat can be used to communicate with the WinRM server on the remote host.- Returns:
- a
WindowsSessionthat can be used to communicate with the WinRM server on the remote host
-
-