this method blocks until certain conditions hold true on the underlying ssh-2 channel . this method returns as soon as one of the following happens : at least of the specified conditions see channelcondition holds true timeout > 0 and a timeout occured timeout will be set in result conditions the underlying channel was closed closed will be set in result conditions in any case , the result value contains all current conditions , which may be more than the specified condition set i.e. , never use the '' == '' operator to test for conditions in the bitmask , see also comments in channelcondition . note : do not call this method if you want to wait for stdout_data or stderr_data and there are concurrent threads e.g. , streamgobblers that operate on either of the two inputstreams of this session otherwise this method may block , even though more data is available in the streamgobblers . concode_field_sep String x11FakeCookie concode_elem_sep boolean flag_x11_requested concode_elem_sep boolean flag_closed concode_elem_sep boolean flag_pty_requested concode_elem_sep SecureRandom rnd concode_elem_sep ChannelManager cm concode_elem_sep Channel cn concode_elem_sep boolean flag_execution_started concode_field_sep void execCommand concode_elem_sep void requestDumbPTY concode_elem_sep void requestX11Forwarding concode_elem_sep void startSubSystem concode_elem_sep void startShell concode_elem_sep InputStream getStdout concode_elem_sep Integer getExitStatus concode_elem_sep String getExitSignal concode_elem_sep void requestPTY concode_elem_sep void requestPTY concode_elem_sep int waitUntilDataAvailable concode_elem_sep OutputStream getStdin concode_elem_sep void close concode_elem_sep InputStream getStderr
int function ( int arg0 , long arg1 ) { if ( arg1 < 0 ) throw new IllegalArgumentException ( "srini_string" ) ; return cm . waitForCondition ( cn , arg1 , arg0 ) ; }