Package com.trilead.ssh2
Interface ChannelCondition
-
public interface ChannelConditionContains constants that can be used to specify what conditions to wait for on a SSH-2 channel (e.g., represented by aSession).- See Also:
Session.waitForCondition(int, long)
-
-
Field Summary
Fields Modifier and Type Field Description static intCLOSEDThe underlying SSH-2 channel, however not necessarily the whole connection, has been closed.static intEOFEOF on has been reached, no more _new_ stdout or stderr data will arrive from the remote server.static intEXIT_SIGNALThe exit signal of the remote process is available.static intEXIT_STATUSThe exit status of the remote process is available.static intSTDERR_DATAThere is stderr data available that is ready to be consumed.static intSTDOUT_DATAThere is stdout data available that is ready to be consumed.static intTIMEOUTA timeout has occurred, none of your requested conditions is fulfilled.
-
-
-
Field Detail
-
TIMEOUT
static final 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. Always use something like((cond & ChannelCondition.CLOSED) != 0).- See Also:
- Constant Field Values
-
CLOSED
static final int CLOSED
The underlying SSH-2 channel, however not necessarily the whole connection, has been closed. This impliesEOF. Note that there may still be unread stdout or stderr data in the local window, i.e,STDOUT_DATAor/andSTDERR_DATAmay be set at the same time.- See Also:
- Constant Field Values
-
STDOUT_DATA
static final int STDOUT_DATA
There is stdout data available that is ready to be consumed.- See Also:
- Constant Field Values
-
STDERR_DATA
static final int STDERR_DATA
There is stderr data available that is ready to be consumed.- See Also:
- Constant Field Values
-
EOF
static final int EOF
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_DATAor/andSTDERR_DATAmay be set at the same time.- See Also:
- Constant Field Values
-
EXIT_STATUS
static final int EXIT_STATUS
The exit status of the remote process is available. Some servers never send the exist status, or occasionally "forget" to do so.- See Also:
- Constant Field Values
-
EXIT_SIGNAL
static final int EXIT_SIGNAL
The exit signal of the remote process is available.- See Also:
- Constant Field Values
-
-