Package com.sshtools.synergy.ssh
Class ConnectionManager<T extends SshContext>
java.lang.Object
com.sshtools.synergy.ssh.ConnectionManager<T>
- All Implemented Interfaces:
SshConnectionManager
Holds and manages Connection objects.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConnectionManager(String name) ConnectionManager(String name, com.sshtools.common.logger.Log.Level level) -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic Connection<?>getConnection(String id) getConnectionById(String sessionid) static SshConnectionString[]Get a list of currently logged on users.getName()registerConnection(ConnectionProtocol<T> connection) registerTransport(TransportProtocol<T> transport, T sshContext) static SshConnectionsearchConnectionsById(String uuid) voidvoidvoidstartLogging(SshConnection con, com.sshtools.common.logger.Log.Level level) voidunregisterTransport(TransportProtocol<T> transport)
-
Field Details
-
DEFAULT_NAME
- See Also:
-
-
Constructor Details
-
ConnectionManager
-
ConnectionManager
-
-
Method Details
-
searchConnectionsById
-
getName
-
startLogging
public void startLogging(SshConnection con, com.sshtools.common.logger.Log.Level level) throws IOException - Throws:
IOException
-
startLogging
- Throws:
IOException
-
setupConnection
- Specified by:
setupConnectionin interfaceSshConnectionManager
-
clearConnection
public void clearConnection()- Specified by:
clearConnectionin interfaceSshConnectionManager
-
getCurrentConnection
-
getConnection
-
registerConnection
-
getConnectionById
- Specified by:
getConnectionByIdin interfaceSshConnectionManager
-
getAllConnections
- Specified by:
getAllConnectionsin interfaceSshConnectionManager
-
registerTransport
-
unregisterTransport
-
getLoggedOnUsers
Get a list of currently logged on users.- Returns:
- String[]
-
getNumberOfConnections
-