public class DefaultAgentForwardSupport extends AbstractCloseable implements AgentForwardSupport
AbstractCloseable.StatecloseFuture, futureLock, statelogCLOSE_WAIT_TIMEOUT, DEFAULT_CLOSE_WAIT_TIMEOUT| Constructor and Description |
|---|
DefaultAgentForwardSupport(ConnectionService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected SshAgentServer |
createSshAgentServer(ConnectionService service,
Session session) |
protected void |
doCloseImmediately() |
String |
initialize()
Initializes the agent forwarding if not already done so - i.e.,
can be called more than once - only first successful call counts,
the rest will return the identifier of the previously initialized
agent.
|
String |
toString() |
addCloseFutureListener, builder, close, doCloseGracefully, getFutureLock, isClosed, isClosing, preClose, removeCloseFutureListenergetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCloseFutureListener, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListenerpublic DefaultAgentForwardSupport(ConnectionService service)
public String initialize() throws IOException
AgentForwardSupportinitialize in interface AgentForwardSupportIOException - If failed to initializeprotected SshAgentServer createSshAgentServer(ConnectionService service, Session session) throws Throwable
Throwablepublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionprotected void doCloseImmediately()
doCloseImmediately in class AbstractCloseableCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.