Class RExecTask.AntRExecClient
- java.lang.Object
- 
- org.apache.commons.net.SocketClient
- 
- org.apache.commons.net.bsd.RExecClient
- 
- org.apache.tools.ant.taskdefs.optional.net.RExecTask.AntRExecClient
 
 
 
- 
- Enclosing class:
- RExecTask
 
 public class RExecTask.AntRExecClient extends org.apache.commons.net.bsd.RExecClientThis class handles the abstraction of the rexec protocol. Currently it is a wrapper around Jakarta Commons Net.
- 
- 
Constructor SummaryConstructors Constructor Description AntRExecClient()
 - 
Method SummaryModifier and Type Method Description voidsendString(java.lang.String s, boolean echoString)Write this string to the rexec session.voidwaitForEOF(java.lang.Integer timeout)Read from the rexec session until the EOF is found or the timeout has been reachedvoidwaitForString(java.lang.String s)Read from the rexec session until the string we are waiting for is foundvoidwaitForString(java.lang.String s, java.lang.Integer timeout)Read from the rexec session until the string we are waiting for is found or the timeout has been reached- 
Methods inherited from class org.apache.commons.net.bsd.RExecClientdisconnect, getErrorStream, getInputStream, getOutputStream, isRemoteVerificationEnabled, rexec, rexec, setRemoteVerificationEnabled
 - 
Methods inherited from class org.apache.commons.net.SocketClient_connectAction_, addProtocolCommandListener, connect, connect, connect, connect, connect, connect, createCommandSupport, fireCommandSent, fireReplyReceived, getCharset, getCharsetName, getCommandSupport, getConnectTimeout, getDefaultPort, getDefaultTimeout, getKeepAlive, getLocalAddress, getLocalPort, getProxy, getReceiveBufferSize, getRemoteAddress, getRemotePort, getSendBufferSize, getServerSocketFactory, getSoLinger, getSoTimeout, getTcpNoDelay, isAvailable, isConnected, removeProtocolCommandListener, setCharset, setConnectTimeout, setDefaultPort, setDefaultTimeout, setKeepAlive, setProxy, setReceiveBufferSize, setSendBufferSize, setServerSocketFactory, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemote
 
- 
 
- 
- 
- 
Method Detail- 
waitForStringpublic void waitForString(java.lang.String s) Read from the rexec session until the string we are waiting for is found- Parameters:
- s- The string to wait on
 
 - 
waitForStringpublic void waitForString(java.lang.String s, java.lang.Integer timeout)Read from the rexec session until the string we are waiting for is found or the timeout has been reached- Parameters:
- s- The string to wait on
- timeout- The maximum number of seconds to wait
 
 - 
sendStringpublic void sendString(java.lang.String s, boolean echoString)Write this string to the rexec session.- Parameters:
- s- the string to write
- echoString- if true log the string sent
 
 - 
waitForEOFpublic void waitForEOF(java.lang.Integer timeout) Read from the rexec session until the EOF is found or the timeout has been reached- Parameters:
- timeout- The maximum number of seconds to wait
 
 
- 
 
-