|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.sshd.platform.ExecutableCommand
com.maverick.sshd.platform.NativeExecutableCommand
public class NativeExecutableCommand
A further extension of the ExecutableCommand that provides the
ability to execute a native process. Caution should be taken with this
current implementation as no processing of EOL is provided and results may
vary on different platforms. It is recommended that only automated clients
use this feature due to the many differences in user terminals which may
cause problems with command output not performing as expected.
| Field Summary |
|---|
| Fields inherited from class com.maverick.sshd.platform.ExecutableCommand |
|---|
session, stderr, stdin, stdout, STILL_ACTIVE |
| Constructor Summary | |
|---|---|
NativeExecutableCommand()
|
|
| Method Summary | |
|---|---|
boolean |
createProcess(java.lang.String cmd,
java.util.Map environment)
Create the process but wait for the ExecutableCommand.onStart() method before
performing any IO. |
int |
getExitCode()
Get the exit code for this process. |
void |
kill()
Kill the command. |
void |
onStart()
Called once the command has been started. |
void |
processStdinData(byte[] data)
Called by the session to pass incoming data into the process. |
| Methods inherited from class com.maverick.sshd.platform.ExecutableCommand |
|---|
getInputStream, getOutputStream, getStderrOutputStream, init, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeExecutableCommand()
| Method Detail |
|---|
public void onStart()
ExecutableCommand
onStart in class ExecutableCommandpublic int getExitCode()
ExecutableCommandExecutableCommand.STILL_ACTIVE.
getExitCode in class ExecutableCommand
public boolean createProcess(java.lang.String cmd,
java.util.Map environment)
ExecutableCommandExecutableCommand.onStart() method before
performing any IO.
createProcess in class ExecutableCommand
public void processStdinData(byte[] data)
throws java.io.IOException
ExecutableCommand
processStdinData in class ExecutableCommandjava.io.IOExceptionpublic void kill()
ExecutableCommand
kill in class ExecutableCommand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||