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 |
logCHANNEL_OPEN_TIMEOUT_PROP, DEFAULT_CHANNEL_OPEN_TIMEOUT, DEFAULT_PROXY_CHANNEL_TYPE, PROXY_CHANNEL_TYPE| 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() |
getSimplifiedLoggerpublic 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
IOExceptionpublic AgentServerProxy(ConnectionService service, ExecutorService executor, boolean shutdownOnExit) throws IOException
IOExceptionpublic ExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierExecutorService to usepublic boolean isShutdownOnExit()
isShutdownOnExit in interface ExecutorServiceCarriertrue then the ExecutorService.shutdownNow()
will be called (unless it is an internally allocated service which is always
closed)public String getId()
getId in interface SshAgentServerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.