public class AgentServer extends AbstractLoggingBean implements Closeable, ExecutorServiceCarrier
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AgentServer.SshAgentSession |
log| Constructor and Description |
|---|
AgentServer() |
AgentServer(ExecutorService executor,
boolean shutdownOnExit) |
AgentServer(SshAgent agent,
ExecutorService executor,
boolean shutdownOnExit) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
SshAgent |
getAgent() |
ExecutorService |
getExecutorService() |
boolean |
isShutdownOnExit() |
String |
start() |
public AgentServer()
public AgentServer(ExecutorService executor, boolean shutdownOnExit)
public AgentServer(SshAgent agent, ExecutorService executor, boolean shutdownOnExit)
public SshAgent getAgent()
public ExecutorService getExecutorService()
getExecutorService in interface ExecutorServiceCarrierpublic 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 void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.