public class ClientConnectionService extends AbstractConnectionService<AbstractClientSession> implements ClientSessionHolder
ssh-connection
service.AbstractCloseable.State
agentForward, channels, DEFAULT_MAX_CHANNELS, MAX_CONCURRENT_CHANNELS_PROP, nextChannelId, RESPONSE_BUFFER_GROWTH_FACTOR, tcpipForwarder, x11Forward
closeFuture, lock, state
log
Constructor and Description |
---|
ClientConnectionService(AbstractClientSession s) |
Modifier and Type | Method and Description |
---|---|
String |
createX11Display(boolean singleConnection,
String authenticationProtocol,
String authenticationCookie,
int screen) |
ClientSession |
getClientSession() |
String |
initAgentForward() |
protected void |
sendHeartBeat() |
void |
start() |
protected void |
startHeartBeat() |
channelClose, channelData, channelEof, channelExtendedData, channelFailure, channelOpen, channelOpenConfirmation, channelOpenFailure, channelRequest, channelSuccess, channelWindowAdjust, getChannel, getChannels, getInnerCloseable, getNextChannelId, getSession, getTcpipForwarder, globalRequest, handleUnknownRequest, isAllowMoreSessions, process, registerChannel, requestFailure, requestSuccess, sendChannelOpenFailure, sendGlobalResponse, setAllowMoreSessions, toString, unregisterChannel
doCloseGracefully, doCloseImmediately
builder, close, isClosed, isClosing, preClose
close, isOpen
public ClientConnectionService(AbstractClientSession s) throws SshException
SshException
public final ClientSession getClientSession()
getClientSession
in interface ClientSessionHolder
ClientSession
usedpublic void start()
start
in interface Service
start
in class AbstractConnectionService<AbstractClientSession>
protected void startHeartBeat()
protected void sendHeartBeat()
public String initAgentForward() throws IOException
initAgentForward
in interface ConnectionService
IOException
public String createX11Display(boolean singleConnection, String authenticationProtocol, String authenticationCookie, int screen) throws IOException
createX11Display
in interface ConnectionService
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.