| ch.ethz.ssh2.ChannelCondition
ChannelCondition | abstract public interface ChannelCondition (Code) | | Contains constants that can be used to specify what conditions to wait for on
a SSH-2 channel (e.g., represented by a
Session ).
See Also: Session.waitForCondition(intlong) author: Christian Plattner, plattner@inf.ethz.ch version: $Id: ChannelCondition.java,v 1.6 2006/08/11 12:24:00 cplattne Exp $ |
Field Summary | |
final public static int | CLOSED The underlying SSH-2 channel, however not necessarily the whole connection,
has been closed. | final public static int | EOF EOF on has been reached, no more _new_ stdout or stderr data will arrive
from the remote server. | final public static int | EXIT_SIGNAL The exit signal of the remote process is available. | final public static int | EXIT_STATUS The exit status of the remote process is available. | final public static int | STDERR_DATA There is stderr data available that is ready to be consumed. | final public static int | STDOUT_DATA There is stdout data available that is ready to be consumed. | final public static int | TIMEOUT A timeout has occurred, none of your requested conditions is fulfilled.
However, other conditions may be true - therefore, NEVER use the "=="
operator to test for this (or any other) condition. |
CLOSED | final public static int CLOSED(Code) | | The underlying SSH-2 channel, however not necessarily the whole connection,
has been closed. This implies EOF . Note that there may still
be unread stdout or stderr data in the local window, i.e, STDOUT_DATA
or/and STDERR_DATA may be set at the same time.
|
EOF | final public static int EOF(Code) | | EOF on has been reached, no more _new_ stdout or stderr data will arrive
from the remote server. However, there may be unread stdout or stderr
data, i.e, STDOUT_DATA or/and STDERR_DATA
may be set at the same time.
|
EXIT_SIGNAL | final public static int EXIT_SIGNAL(Code) | | The exit signal of the remote process is available.
|
EXIT_STATUS | final public static int EXIT_STATUS(Code) | | The exit status of the remote process is available.
Some servers never send the exist status, or occasionally "forget" to do so.
|
STDERR_DATA | final public static int STDERR_DATA(Code) | | There is stderr data available that is ready to be consumed.
|
STDOUT_DATA | final public static int STDOUT_DATA(Code) | | There is stdout data available that is ready to be consumed.
|
TIMEOUT | final public static int TIMEOUT(Code) | | A timeout has occurred, none of your requested conditions is fulfilled.
However, other conditions may be true - therefore, NEVER use the "=="
operator to test for this (or any other) condition. Always use
something like ((cond & ChannelCondition.CLOSED) != 0) .
|
|
|