public class Connection<T extends SshContext> extends Object
Constructor and Description |
---|
Connection(T context) |
Modifier and Type | Method and Description |
---|---|
void |
addTask(Runnable r) |
boolean |
containsProperty(String name) |
void |
disconnect() |
void |
disconnect(String reason) |
ConnectionProtocol<T> |
getConnectionProtocol() |
T |
getContext() |
String |
getLocalAddress() |
int |
getLocalPort() |
SocketAddress |
getLocalSocketAddress() |
Object |
getProperty(String name) |
Set<String> |
getPropertyNames() |
String |
getRemoteAddress() |
String |
getRemoteIdentification() |
int |
getRemotePort() |
SocketAddress |
getRemoteSocketAddress() |
String |
getSessionId() |
Date |
getStartTime() |
long |
getTotalBytesIn() |
long |
getTotalBytesOut() |
String |
getUsername() |
String |
getUUID() |
boolean |
isAuthenticated() |
boolean |
isDisconnected() |
void |
setProperty(String name,
Object val) |
void |
setUsername(String username) |
public Connection(T context)
public String getSessionId()
public String getRemoteIdentification()
public void addTask(Runnable r)
public String getUUID()
public String getUsername()
public Date getStartTime()
public long getTotalBytesIn()
public long getTotalBytesOut()
public String getRemoteAddress()
public int getRemotePort()
public SocketAddress getRemoteSocketAddress()
public SocketAddress getLocalSocketAddress()
public String getLocalAddress()
public int getLocalPort()
public boolean isDisconnected()
public void disconnect()
public void disconnect(String reason)
public boolean isAuthenticated()
public T getContext()
public boolean containsProperty(String name)
public void setUsername(String username)
public ConnectionProtocol<T> getConnectionProtocol()
Copyright © 2016. All rights reserved.