Package hudson.plugins.ec2.win
Class WinConnection
- java.lang.Object
-
- hudson.plugins.ec2.win.WinConnection
-
public class WinConnection extends Object
-
-
Constructor Summary
Constructors Constructor Description WinConnection(String host, String username, String password)
Deprecated.WinConnection(String host, String username, String password, boolean allowSelfSignedCertificate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
WindowsProcess
execute(String commandLine)
WindowsProcess
execute(String commandLine, int timeout)
boolean
exists(String path)
InputStream
getFile(String path)
boolean
ping()
boolean
pingFailingIfSSHHandShakeError()
OutputStream
putFile(String path)
void
setUseHTTPS(boolean useHTTPS)
WinRM
winrm()
WinRM
winrm(int timeout)
-
-
-
Method Detail
-
winrm
public WinRM winrm()
-
winrm
public WinRM winrm(int timeout)
-
execute
public WindowsProcess execute(String commandLine)
-
execute
public WindowsProcess execute(String commandLine, int timeout)
-
putFile
public OutputStream putFile(String path) throws IOException
- Throws:
IOException
-
getFile
public InputStream getFile(String path) throws IOException
- Throws:
IOException
-
exists
public boolean exists(String path) throws IOException
- Throws:
IOException
-
ping
public boolean ping()
-
pingFailingIfSSHHandShakeError
public boolean pingFailingIfSSHHandShakeError() throws IOException
- Throws:
IOException
-
close
public void close()
-
setUseHTTPS
public void setUseHTTPS(boolean useHTTPS)
-
-