public class AgentServerProxy extends AbstractLoggingBean implements SshAgentServer
log| Constructor and Description |
|---|
AgentServerProxy(ConnectionService service) |
AgentServerProxy(ConnectionService service,
CloseableExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected boolean |
deleteFile(File file,
String msg,
boolean debugEnabled) |
CloseableExecutorService |
getExecutorService() |
String |
getId() |
boolean |
isOpen() |
protected File |
removeSocketFile(String socketPath,
boolean debugEnabled) |
protected void |
signalEOS(AprLibrary libInstance,
boolean debugEnabled) |
static IOException |
toIOException(int code)
transform an APR error number in a more fancy exception
|
public AgentServerProxy(ConnectionService service) throws IOException
IOExceptionpublic AgentServerProxy(ConnectionService service, CloseableExecutorService executor) throws IOException
IOExceptionpublic CloseableExecutorService getExecutorService()
public String getId()
getId in interface SshAgentServerpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface ChannelIOExceptionprotected File removeSocketFile(String socketPath, boolean debugEnabled) throws Exception
Exceptionprotected void signalEOS(AprLibrary libInstance, boolean debugEnabled) throws Exception
Exceptionpublic static IOException toIOException(int code)
code - APR error codeIOException with the exception details for the given APR error numberCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.