public class AgentServerProxy extends AbstractLoggingBean implements SshAgentServer
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
id |
private java.util.concurrent.atomic.AtomicBoolean |
open |
private ConnectionService |
service |
log
Constructor and Description |
---|
AgentServerProxy(ConnectionService service) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SshAgent |
createClient() |
java.lang.String |
getId() |
boolean |
isOpen() |
private final ConnectionService service
private final java.lang.String id
private final java.util.concurrent.atomic.AtomicBoolean open
public AgentServerProxy(ConnectionService service) throws java.io.IOException
java.io.IOException
public SshAgent createClient() throws java.io.IOException
java.io.IOException
public java.lang.String getId()
getId
in interface SshAgentServer
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException