|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.net.SocketClient org.apache.commons.net.bsd.RExecClient org.apache.tools.ant.taskdefs.optional.net.RExecTask.AntRExecClient
public class RExecTask.AntRExecClient
This class handles the abstraction of the rexec protocol. Currently it is a wrapper around Jakarta Commons Net.
Field Summary |
---|
Fields inherited from class org.apache.commons.net.bsd.RExecClient |
---|
_errorStream_, DEFAULT_PORT |
Fields inherited from class org.apache.commons.net.SocketClient |
---|
_defaultPort_, _input_, _isConnected_, _output_, _socket_, _socketFactory_, _timeout_, NETASCII_EOL |
Constructor Summary | |
---|---|
RExecTask.AntRExecClient()
|
Method Summary | |
---|---|
void |
sendString(java.lang.String s,
boolean echoString)
Write this string to the rexec session. |
void |
waitForEOF(java.lang.Integer timeout)
Read from the rexec session until the EOF is found or the timeout has been reached |
void |
waitForString(java.lang.String s)
Read from the rexec session until the string we are waiting for is found |
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 |
Methods inherited from class org.apache.commons.net.bsd.RExecClient |
---|
disconnect, getErrorStream, getInputStream, getOutputStream, isRemoteVerificationEnabled, rexec, rexec, setRemoteVerificationEnabled |
Methods inherited from class org.apache.commons.net.SocketClient |
---|
_connectAction_, connect, connect, connect, connect, connect, connect, getDefaultPort, getDefaultTimeout, getLocalAddress, getLocalPort, getRemoteAddress, getRemotePort, getSoLinger, getSoTimeout, getTcpNoDelay, isConnected, setDefaultPort, setDefaultTimeout, setSocketFactory, setSoLinger, setSoTimeout, setTcpNoDelay, verifyRemote |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RExecTask.AntRExecClient()
Method Detail |
---|
public void waitForString(java.lang.String s)
s
- The string to wait onpublic void waitForString(java.lang.String s, java.lang.Integer timeout)
s
- The string to wait ontimeout
- The maximum number of seconds to waitpublic void sendString(java.lang.String s, boolean echoString)
s
- the string to writeechoString
- if true log the string sentpublic void waitForEOF(java.lang.Integer timeout)
timeout
- The maximum number of seconds to wait
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |