Package com.cloudogu.scmmanager
Class SshConnection
- java.lang.Object
-
- com.cloudogu.scmmanager.SshConnection
-
- All Implemented Interfaces:
AutoCloseable
public class SshConnection extends Object implements AutoCloseable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SshConnection.Command
static class
SshConnection.Input
static class
SshConnection.Output<T>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SshConnection.Command
command(String command)
void
connect(SSHAuthentication authentication)
com.trilead.ssh2.Connection
getConnection()
Optional<NamespaceAndName>
getRepository()
NamespaceAndName
mustGetRepository()
-
-
-
Method Detail
-
getConnection
public com.trilead.ssh2.Connection getConnection()
-
mustGetRepository
public NamespaceAndName mustGetRepository()
-
getRepository
public Optional<NamespaceAndName> getRepository()
-
connect
public void connect(SSHAuthentication authentication)
-
command
public SshConnection.Command command(String command)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
-