Brooklyn

brooklyn.util.internal.ssh.sshj
[Java] Class SshjClientConnection

java.lang.Object
  brooklyn.util.internal.ssh.sshj.SshjClientConnection
All Implemented Interfaces:
SshAction

public class SshjClientConnection

based on code from jclouds


Nested Class Summary
static class SshjClientConnection.Builder

 
Method Summary
static SshjClientConnection.Builder builder()

void clear()

SSHClient create()

boolean equals(java.lang.Object o)

int getConnectTimeout()

@return how long to wait for the initial connection to be made

HostAndPort getHostAndPort()

@return host and port, where port if not present defaults to 22

SSHClient getSSHClient()

@return the current ssh or null if not connected

int getSessionTimeout()

@return how long to keep the ssh open, or 0 for indefinitely

java.lang.String getUsername()

@return username used in this ssh

int hashCode()

boolean isAuthenticated()

boolean isConnected()

java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Method Detail

builder

public static SshjClientConnection.Builder builder()


clear

@Override
public void clear()


create

@Override
public SSHClient create()


equals

@Override
public boolean equals(java.lang.Object o)


getConnectTimeout

public int getConnectTimeout()
Returns:
how long to wait for the initial connection to be made


getHostAndPort

public HostAndPort getHostAndPort()
Returns:
host and port, where port if not present defaults to 22


getSSHClient

public SSHClient getSSHClient()
Returns:
the current ssh or null if not connected


getSessionTimeout

public int getSessionTimeout()
Returns:
how long to keep the ssh open, or 0 for indefinitely


getUsername

public java.lang.String getUsername()
Returns:
username used in this ssh


hashCode

@Override
public int hashCode()


isAuthenticated

public boolean isAuthenticated()


isConnected

public boolean isConnected()


toString

@Override
public java.lang.String toString()


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.