Package org.rossonet.sshd.bridge
Class RpcShellSession
- java.lang.Object
-
- org.rossonet.rpc.ShellSession
-
- org.rossonet.sshd.bridge.RpcShellSession
-
- All Implemented Interfaces:
org.apache.sshd.server.command.Command,org.apache.sshd.server.command.CommandDirectErrorStreamAware,org.apache.sshd.server.command.CommandDirectInputStreamAware,org.apache.sshd.server.command.CommandDirectOutputStreamAware,org.apache.sshd.server.command.CommandDirectStreamsAware,org.apache.sshd.server.command.CommandLifecycle
public class RpcShellSession extends ShellSession implements org.apache.sshd.server.command.Command
-
-
Constructor Summary
Constructors Constructor Description RpcShellSession(BaseSshServer sshServer, RpcEngine rpcEngine, org.apache.sshd.server.channel.ChannelSession channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy(org.apache.sshd.server.channel.ChannelSession channel)java.lang.StringgetSessionDescription()org.apache.sshd.server.command.CommandgetSshCommand()protected java.lang.StringgetThreadName()booleanisByteSession()booleanisCharacterSession()booleanisLineSession()protected voidperiodicalCall()voidsetErrorStream(java.io.OutputStream err)voidsetExitCallback(org.apache.sshd.server.ExitCallback callback)voidsetInputStream(java.io.InputStream in)voidsetOutputStream(java.io.OutputStream out)voidstart(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env)-
Methods inherited from class org.rossonet.rpc.ShellSession
destroyRpcSession, getErrorStream, getInputStream, getMaxThreadPriority, getMinThreadPriority, getOutputStream, getRpcEngine, getThreadPriority, pauseRpcSession, setMaxThreadPriority, setMinThreadPriority, setThreadPriority, startRpcSession
-
-
-
-
Constructor Detail
-
RpcShellSession
public RpcShellSession(BaseSshServer sshServer, RpcEngine rpcEngine, org.apache.sshd.server.channel.ChannelSession channel)
-
-
Method Detail
-
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession channel) throws java.lang.Exception- Specified by:
destroyin interfaceorg.apache.sshd.server.command.CommandLifecycle- Throws:
java.lang.Exception
-
getSessionDescription
public java.lang.String getSessionDescription()
- Specified by:
getSessionDescriptionin classShellSession
-
getSshCommand
public org.apache.sshd.server.command.Command getSshCommand()
-
getThreadName
protected java.lang.String getThreadName()
- Specified by:
getThreadNamein classShellSession
-
isByteSession
public boolean isByteSession()
- Specified by:
isByteSessionin classShellSession
-
isCharacterSession
public boolean isCharacterSession()
- Specified by:
isCharacterSessionin classShellSession
-
isLineSession
public boolean isLineSession()
- Specified by:
isLineSessionin classShellSession
-
periodicalCall
protected void periodicalCall()
- Specified by:
periodicalCallin classShellSession
-
setErrorStream
public void setErrorStream(java.io.OutputStream err)
- Specified by:
setErrorStreamin interfaceorg.apache.sshd.server.command.CommandDirectErrorStreamAware- Overrides:
setErrorStreamin classShellSession
-
setExitCallback
public void setExitCallback(org.apache.sshd.server.ExitCallback callback)
- Specified by:
setExitCallbackin interfaceorg.apache.sshd.server.command.Command
-
setInputStream
public void setInputStream(java.io.InputStream in)
- Specified by:
setInputStreamin interfaceorg.apache.sshd.server.command.CommandDirectInputStreamAware- Overrides:
setInputStreamin classShellSession
-
setOutputStream
public void setOutputStream(java.io.OutputStream out)
- Specified by:
setOutputStreamin interfaceorg.apache.sshd.server.command.CommandDirectOutputStreamAware- Overrides:
setOutputStreamin classShellSession
-
start
public void start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env) throws java.io.IOException- Specified by:
startin interfaceorg.apache.sshd.server.command.CommandLifecycle- Throws:
java.io.IOException
-
-