public class AgentServerProxy extends AbstractLoggingBean implements SshAgentServer, ExecutorServiceCarrier
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_SOCKET_TIMEOUT
Property that can be set on the
Session in order to control
the authentication timeout (millis). |
static int |
DEFAULT_AUTH_SOCKET_TIMEOUT |
log
CHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT
Constructor and Description |
---|
AgentServerProxy(ConnectionService service) |
AgentServerProxy(ConnectionService service,
ExecutorService executor,
boolean shutdownOnExit) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
ExecutorService |
getExecutorService() |
String |
getId() |
boolean |
isOpen() |
boolean |
isShutdownOnExit() |
public static final String AUTH_SOCKET_TIMEOUT
Session
in order to control
the authentication timeout (millis). If not specified then
DEFAULT_AUTH_SOCKET_TIMEOUT
is usedpublic static final int DEFAULT_AUTH_SOCKET_TIMEOUT
public AgentServerProxy(ConnectionService service) throws IOException
IOException
public AgentServerProxy(ConnectionService service, ExecutorService executor, boolean shutdownOnExit) throws IOException
IOException
public ExecutorService getExecutorService()
getExecutorService
in interface ExecutorServiceCarrier
public boolean isShutdownOnExit()
isShutdownOnExit
in interface ExecutorServiceCarrier
true
then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)public String getId()
getId
in interface SshAgentServer
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.