verinec.util
Class J2sshProcess.ProcessThread
java.lang.Object
java.lang.Thread
verinec.util.J2sshProcess.ProcessThread
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- J2sshProcess
public class J2sshProcess.ProcessThread
- extends Thread
A thread to execute a command on a channel.
|
Field Summary |
(package private) boolean |
aborted
|
(package private) com.sshtools.j2ssh.session.SessionChannelClient |
client
|
(package private) boolean |
ready
|
|
Method Summary |
void |
destroyRemote()
Destroy the remote process |
void |
run()
Calls client.executeCommand(cmdline). |
boolean |
streamsReady()
The J2sshProcess may only return if the ProcessThread has the client streams ready. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
ready
boolean ready
aborted
boolean aborted
client
com.sshtools.j2ssh.session.SessionChannelClient client
J2sshProcess.ProcessThread
public J2sshProcess.ProcessThread()
- Initialize with a name.
run
public void run()
- Calls client.executeCommand(cmdline).
Closes the ssh connection when execution terminated.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
streamsReady
public boolean streamsReady()
- The J2sshProcess may only return if the ProcessThread has the client streams ready.
- Returns:
- True if the streams are ready, false otherwise.
destroyRemote
public void destroyRemote()
- Destroy the remote process