public class SessionManager extends Object implements AutoCloseable
getSession() the current session will have its connection verified,
and will reconnect if necessary.| Constructor and Description |
|---|
SessionManager(ISessionFactory aSessionFactory)
Creates a SessionManager for the supplied
sessionFactory. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
String |
getAsString() |
com.jcraft.jsch.Session |
getSession()
Returns a connected session.
|
ISessionFactory |
getSessionFactory() |
String |
toString() |
public SessionManager(@Nonnull ISessionFactory aSessionFactory)
sessionFactory.aSessionFactory - The session factory@Nonnull public ISessionFactory getSessionFactory()
null.public void close()
throws IOException
close in interface AutoCloseableIOException@Nonnull public com.jcraft.jsch.Session getSession() throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchException - If unable to connect the sessionCopyright © 2020 Philip Helger. All rights reserved.