Class WindowsRemoteTerminal

  • All Implemented Interfaces:
    RemoteTerminal

    public class WindowsRemoteTerminal
    extends AbstractRemoteTerminal
    A Windows implementation of a RemoteTerminal that 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
    • Constructor Detail

      • WindowsRemoteTerminal

        public WindowsRemoteTerminal​(RemotePlatform platform)
        Create a Windows remote shell that will connect to the WinRM service running on the RemotePlatform.
        Parameters:
        platform - the RemotePlatform
    • Method Detail

      • 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 a WindowsSession that can be used to communicate with the WinRM server on the remote host.
        Returns:
        a WindowsSession that can be used to communicate with the WinRM server on the remote host