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 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 void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.