类 PSMShell
java.lang.Object
com.ksptooi.psm.shell.PSMShell
- 所有已实现的接口:
Runnable,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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voiddestroy(org.apache.sshd.server.channel.ChannelSession session) getCable()org.apache.sshd.server.EnvironmentgetEnv()org.apache.sshd.server.session.ServerSessionorg.apache.sshd.server.channel.ChannelSessionbooleanbooleanvoidrun()voidvoidsetExitCallback(org.apache.sshd.server.ExitCallback exitCallback) voidvoidvoidstart(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env) void将当前的前台进程切换为后台进程voidtoggleCurrentProcess(Process procTask) 进程切换到Shell前台
-
构造器详细资料
-
PSMShell
public PSMShell()
-
-
方法详细资料
-
start
public void start(org.apache.sshd.server.channel.ChannelSession session, org.apache.sshd.server.Environment env) throws IOException - 指定者:
start在接口中org.apache.sshd.server.command.CommandLifecycle- 抛出:
IOException
-
destroy
-
setExitCallback
public void setExitCallback(org.apache.sshd.server.ExitCallback exitCallback) - 指定者:
setExitCallback在接口中org.apache.sshd.server.command.Command
-
setErrorStream
- 指定者:
setErrorStream在接口中org.apache.sshd.server.command.CommandDirectErrorStreamAware
-
setInputStream
- 指定者:
setInputStream在接口中org.apache.sshd.server.command.CommandDirectInputStreamAware
-
setOutputStream
- 指定者:
setOutputStream在接口中org.apache.sshd.server.command.CommandDirectOutputStreamAware
-
run
-
toggleCurrentProcess
进程切换到Shell前台 -
toggleCurrentProcess
public void toggleCurrentProcess()将当前的前台进程切换为后台进程 -
getCurrentProcess
-
hasForegroundTask
public boolean hasForegroundTask() -
getEnv
public org.apache.sshd.server.Environment getEnv() -
getSession
public org.apache.sshd.server.channel.ChannelSession getSession() -
getServerSession
public org.apache.sshd.server.session.ServerSession getServerSession() -
isOffline
public boolean isOffline() -
getAioPort
-
getCable
-