public class DefaultAgentForwardSupport extends AbstractCloseable implements AgentForwardSupport
AbstractCloseable.State
closeFuture, futureLock, state
log
Constructor and Description |
---|
DefaultAgentForwardSupport(ConnectionService service) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected SshAgentServer |
createSshAgentServer(ConnectionService service,
Session session) |
protected void |
doCloseImmediately()
doCloseImmediately is called once and only once with state == Immediate
|
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, removeCloseFutureListener
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCloseFutureListener, close, close, getMaxCloseWaitTime, isClosed, isClosing, isOpen, removeCloseFutureListener
public DefaultAgentForwardSupport(ConnectionService service)
public String initialize() throws IOException
AgentForwardSupport
initialize
in interface AgentForwardSupport
IOException
- If failed to initializeprotected SshAgentServer createSshAgentServer(ConnectionService service, Session session) throws Throwable
Throwable
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
protected void doCloseImmediately()
AbstractCloseable
doCloseImmediately is called once and only once with state == Immediate
Overriding methods should always call the base implementation. It may be called concurrently while preClose() or doCloseGracefully is executing
doCloseImmediately
in class AbstractCloseable
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.