comparison src/ch/ethz/ssh2/ChannelCondition.java @ 308:42b15aaa7ac7 ganymed

merge
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:21:50 -0700
parents 071eccdff8ea
children
comparison
equal deleted inserted replaced
306:90e47d99ea54 308:42b15aaa7ac7
12 * 12 *
13 * @author Christian Plattner 13 * @author Christian Plattner
14 * @version 2.50, 03/15/10 14 * @version 2.50, 03/15/10
15 */ 15 */
16 16
17 public abstract interface ChannelCondition 17 public abstract interface ChannelCondition {
18 { 18 /**
19 /** 19 * A timeout has occurred, none of your requested conditions is fulfilled.
20 * A timeout has occurred, none of your requested conditions is fulfilled. 20 * However, other conditions may be true - therefore, NEVER use the "=="
21 * However, other conditions may be true - therefore, NEVER use the "==" 21 * operator to test for this (or any other) condition. Always use
22 * operator to test for this (or any other) condition. Always use 22 * something like <code>((cond &amp; ChannelCondition.CLOSED) != 0)</code>.
23 * something like <code>((cond &amp; ChannelCondition.CLOSED) != 0)</code>. 23 */
24 */ 24 public static final int TIMEOUT = 1;
25 public static final int TIMEOUT = 1;
26 25
27 /** 26 /**
28 * The underlying SSH-2 channel, however not necessarily the whole connection, 27 * The underlying SSH-2 channel, however not necessarily the whole connection,
29 * has been closed. This implies <code>EOF</code>. Note that there may still 28 * has been closed. This implies <code>EOF</code>. Note that there may still
30 * be unread stdout or stderr data in the local window, i.e, <code>STDOUT_DATA</code> 29 * be unread stdout or stderr data in the local window, i.e, <code>STDOUT_DATA</code>
31 * or/and <code>STDERR_DATA</code> may be set at the same time. 30 * or/and <code>STDERR_DATA</code> may be set at the same time.
32 */ 31 */
33 public static final int CLOSED = 2; 32 public static final int CLOSED = 2;
34 33
35 /** 34 /**
36 * There is stdout data available that is ready to be consumed. 35 * There is stdout data available that is ready to be consumed.
37 */ 36 */
38 public static final int STDOUT_DATA = 4; 37 public static final int STDOUT_DATA = 4;
39 38
40 /** 39 /**
41 * There is stderr data available that is ready to be consumed. 40 * There is stderr data available that is ready to be consumed.
42 */ 41 */
43 public static final int STDERR_DATA = 8; 42 public static final int STDERR_DATA = 8;
44 43
45 /** 44 /**
46 * EOF on has been reached, no more _new_ stdout or stderr data will arrive 45 * EOF on has been reached, no more _new_ stdout or stderr data will arrive
47 * from the remote server. However, there may be unread stdout or stderr 46 * from the remote server. However, there may be unread stdout or stderr
48 * data, i.e, <code>STDOUT_DATA</code> or/and <code>STDERR_DATA</code> 47 * data, i.e, <code>STDOUT_DATA</code> or/and <code>STDERR_DATA</code>
49 * may be set at the same time. 48 * may be set at the same time.
50 */ 49 */
51 public static final int EOF = 16; 50 public static final int EOF = 16;
52 51
53 /** 52 /**
54 * The exit status of the remote process is available. 53 * The exit status of the remote process is available.
55 * Some servers never send the exist status, or occasionally "forget" to do so. 54 * Some servers never send the exist status, or occasionally "forget" to do so.
56 */ 55 */
57 public static final int EXIT_STATUS = 32; 56 public static final int EXIT_STATUS = 32;
58 57
59 /** 58 /**
60 * The exit signal of the remote process is available. 59 * The exit signal of the remote process is available.
61 */ 60 */
62 public static final int EXIT_SIGNAL = 64; 61 public static final int EXIT_SIGNAL = 64;
63 62
64 } 63 }