verinec.util
Class J2sshProcess.ProcessThread

java.lang.Object
  extended by java.lang.Thread
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  boolean aborted
           
(package private)  com.sshtools.j2ssh.session.SessionChannelClient client
           
(package private)  boolean ready
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
J2sshProcess.ProcessThread()
          Initialize with a name.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ready

boolean ready

aborted

boolean aborted

client

com.sshtools.j2ssh.session.SessionChannelClient client
Constructor Detail

J2sshProcess.ProcessThread

public J2sshProcess.ProcessThread()
Initialize with a name.

Method Detail

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


Copyright © 2005 Verinec, DIUF