|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.eways.batchext.SSHStreamEater
public class SSHStreamEater
This class is used to consume the STDOUT or STDERR from the SSH sub-process. NOTE: This class serves both STDOUT and STDERR. Both must be consumed, or else the current sub-process could hang up because of exhausted buffers.
| Constructor Summary | |
|---|---|
SSHStreamEater(SSHClient sshClient,
java.lang.String device)
Constructor. |
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Used to do stand-alone testing. |
void |
run()
start() of this thread will execute this method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SSHStreamEater(SSHClient sshClient,
java.lang.String device)
process - The process object that represents the SSH subprocess.sshConfig - The configurations of the SSH client.device - The type of output from the SSH sub-process. It can be
either STDERR or STDOUT.| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic static void main(java.lang.String[] args)
args - Command-line parameters.
|
Sun Adapter for Batch/FTP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||