Package com.sshtools.synergy.ssh
Class Connection<T extends SshContext>
java.lang.Object
com.sshtools.synergy.ssh.Connection<T>
- All Implemented Interfaces:
EventTrigger,SshConnection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(EventListener listener) voidaddTask(Integer queue, ConnectionAwareTask r) voidclose()booleancontainsProperty(String name) voidvoiddisconnect(int reason, String message) voiddisconnect(String reason) void<R> Future<R>executeTask(Callable<R> task) voidDeprecated.intDeprecated.getProperty(String name) Deprecated.String[]String[]String[]String[]String[]String[]String[]intString[]Deprecated.intlonglonggetUUID()booleanbooleanbooleanbooleanvoidopenChannel(Channel channel) voidremoveEventListener(EventListener listener) voidremoveProperty(String name) voidsendGlobalRequest(GlobalRequest request, boolean wantReply) voidsetLocalAddress(InetSocketAddress localAddress) voidsetProperty(String name, Object val) voidsetRemoteAddress(InetSocketAddress remoteAddress) voidsetUsername(String username) voidvoidstartLogging(com.sshtools.common.logger.Log.Level level)
-
Constructor Details
-
Connection
-
-
Method Details
-
addEventListener
- Specified by:
addEventListenerin interfaceSshConnection
-
removeEventListener
- Specified by:
removeEventListenerin interfaceSshConnection
-
fireEvent
- Specified by:
fireEventin interfaceEventTrigger
-
getAuthenticatedFuture
- Specified by:
getAuthenticatedFuturein interfaceSshConnection
-
getSessionId
- Specified by:
getSessionIdin interfaceSshConnection
-
getRemoteIdentification
- Specified by:
getRemoteIdentificationin interfaceSshConnection
-
addTask
- Specified by:
addTaskin interfaceSshConnection
-
addTask
-
executeTask
-
executeTask
- Specified by:
executeTaskin interfaceSshConnection
-
getUUID
- Specified by:
getUUIDin interfaceSshConnection
-
getUsername
- Specified by:
getUsernamein interfaceSshConnection
-
getStartTime
-
getTotalBytesIn
public long getTotalBytesIn()- Specified by:
getTotalBytesInin interfaceSshConnection
-
getTotalBytesOut
public long getTotalBytesOut()- Specified by:
getTotalBytesOutin interfaceSshConnection
-
getRemoteAddress
Deprecated.- Specified by:
getRemoteAddressin interfaceSshConnection
-
getRemoteIPAddress
- Specified by:
getRemoteIPAddressin interfaceSshConnection
-
getRemotePort
public int getRemotePort()- Specified by:
getRemotePortin interfaceSshConnection
-
getRemoteSocketAddress
Deprecated. -
getLocalSocketAddress
Deprecated. -
getLocalAddress
Deprecated.- Specified by:
getLocalAddressin interfaceSshConnection
-
getLocalIPAddress
-
getLocalPort
public int getLocalPort()- Specified by:
getLocalPortin interfaceSshConnection
-
isDisconnected
public boolean isDisconnected() -
isDisconnecting
public boolean isDisconnecting()- Specified by:
isDisconnectingin interfaceSshConnection
-
disconnect
public void disconnect()- Specified by:
disconnectin interfaceSshConnection
-
disconnect
- Specified by:
disconnectin interfaceSshConnection
-
getProperty
- Specified by:
getPropertyin interfaceSshConnection
-
setProperty
- Specified by:
setPropertyin interfaceSshConnection
-
getPropertyNames
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticatedin interfaceSshConnection
-
getContext
- Specified by:
getContextin interfaceSshConnection
-
containsProperty
- Specified by:
containsPropertyin interfaceSshConnection
-
setUsername
- Specified by:
setUsernamein interfaceSshConnection
-
getConnectionProtocol
-
removeProperty
- Specified by:
removePropertyin interfaceSshConnection
-
getHostKeyAlgorithm
-
getCipherInUseCS
- Specified by:
getCipherInUseCSin interfaceSshConnection
-
getCipherInUseSC
- Specified by:
getCipherInUseSCin interfaceSshConnection
-
getMacInUseCS
- Specified by:
getMacInUseCSin interfaceSshConnection
-
getMacInUseSC
- Specified by:
getMacInUseSCin interfaceSshConnection
-
getCompressionInUseCS
- Specified by:
getCompressionInUseCSin interfaceSshConnection
-
getCompressionInUseSC
- Specified by:
getCompressionInUseSCin interfaceSshConnection
-
close
public void close() -
getLocale
- Specified by:
getLocalein interfaceSshConnection
-
getConnectionManager
- Specified by:
getConnectionManagerin interfaceSshConnection
-
isConnected
public boolean isConnected()- Specified by:
isConnectedin interfaceSshConnection
-
addTask
- Specified by:
addTaskin interfaceSshConnection
-
getSessionCount
public int getSessionCount()- Specified by:
getSessionCountin interfaceSshConnection
-
disconnect
- Specified by:
disconnectin interfaceSshConnection
-
getServerVersion
- Specified by:
getServerVersionin interfaceSshConnection
-
openChannel
- Specified by:
openChannelin interfaceSshConnection
-
startLogging
- Specified by:
startLoggingin interfaceSshConnection- Throws:
IOException
-
startLogging
- Specified by:
startLoggingin interfaceSshConnection- Throws:
IOException
-
getDisconnectFuture
- Specified by:
getDisconnectFuturein interfaceSshConnection
-
getHostKey
- Specified by:
getHostKeyin interfaceSshConnection
-
getRemotePublicKeys
- Specified by:
getRemotePublicKeysin interfaceSshConnection
-
getRemoteKeyExchanges
- Specified by:
getRemoteKeyExchangesin interfaceSshConnection
-
getRemoteCompressionsCS
- Specified by:
getRemoteCompressionsCSin interfaceSshConnection
-
getRemoteCompressionsSC
- Specified by:
getRemoteCompressionsSCin interfaceSshConnection
-
getRemoteCiphersCS
- Specified by:
getRemoteCiphersCSin interfaceSshConnection
-
getRemoteCiphersSC
- Specified by:
getRemoteCiphersSCin interfaceSshConnection
-
getRemoteMacsCS
- Specified by:
getRemoteMacsCSin interfaceSshConnection
-
getRemoteMacsSC
- Specified by:
getRemoteMacsSCin interfaceSshConnection
-
getKeyExchangeInUse
- Specified by:
getKeyExchangeInUsein interfaceSshConnection
-
getHostKeyInUse
- Specified by:
getHostKeyInUsein interfaceSshConnection
-
getLocalIdentification
-
sendGlobalRequest
- Specified by:
sendGlobalRequestin interfaceSshConnection
-
setLocalAddress
-
setRemoteAddress
-