public class MunitCommand extends Object implements org.apache.sshd.server.command.Command, Runnable
| Constructor and Description |
|---|
MunitCommand(String command,
String message) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy(org.apache.sshd.server.channel.ChannelSession channel) |
boolean |
equals(Object obj) |
String |
getCommand() |
String |
getMessage() |
int |
hashCode() |
void |
run() |
void |
setErrorStream(OutputStream err) |
void |
setExitCallback(org.apache.sshd.server.ExitCallback callback) |
void |
setInputStream(InputStream in) |
void |
setOutputStream(OutputStream out) |
void |
start(org.apache.sshd.server.channel.ChannelSession channel,
org.apache.sshd.server.Environment env) |
String |
toString() |
public String getCommand()
public String getMessage()
public void setInputStream(InputStream in)
setInputStream in interface org.apache.sshd.server.command.CommandDirectInputStreamAwarepublic void setOutputStream(OutputStream out)
setOutputStream in interface org.apache.sshd.server.command.CommandDirectOutputStreamAwarepublic void setErrorStream(OutputStream err)
setErrorStream in interface org.apache.sshd.server.command.CommandDirectErrorStreamAwarepublic void setExitCallback(org.apache.sshd.server.ExitCallback callback)
setExitCallback in interface org.apache.sshd.server.command.Commandpublic void start(org.apache.sshd.server.channel.ChannelSession channel,
org.apache.sshd.server.Environment env)
throws IOException
start in interface org.apache.sshd.server.command.CommandLifecycleIOExceptionpublic void destroy(org.apache.sshd.server.channel.ChannelSession channel)
destroy in interface org.apache.sshd.server.command.CommandLifecycleCopyright © 2024 MuleSoft, Inc.. All rights reserved.