org.apache.tools.ant.taskdefs.optional.net
Class RExecTask.AntRExecClient
RExecClient
org.apache.tools.ant.taskdefs.optional.net.RExecTask.AntRExecClient
- RExecTask
public class RExecTask.AntRExecClient
extends RExecClient
This class handles the abstraction of the rexec protocol.
Currently it is a wrapper around
Jakarta
Commons Net.
void | sendString(String s, boolean echoString) - Write this string to the rexec session.
|
void | waitForEOF(Integer timeout) - Read from the rexec session until the EOF is found or
the timeout has been reached
|
void | waitForString(String s) - Read from the rexec session until the string we are
waiting for is found
|
void | waitForString(String s, Integer timeout) - Read from the rexec session until the string we are
waiting for is found or the timeout has been reached
|
sendString
public void sendString(String s,
boolean echoString)
Write this string to the rexec session.
echoString
- Logs string sent
waitForEOF
public void waitForEOF(Integer timeout)
Read from the rexec session until the EOF is found or
the timeout has been reached
timeout
- The maximum number of seconds to wait
waitForString
public void waitForString(String s)
Read from the rexec session until the string we are
waiting for is found
s
- The string to wait on
waitForString
public void waitForString(String s,
Integer timeout)
Read from the rexec session until the string we are
waiting for is found or the timeout has been reached
s
- The string to wait ontimeout
- The maximum number of seconds to wait
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.