org.apache.tools.ant.taskdefs.optional.net
Class RExecTask.AntRExecClient

java.lang.Object
  extended byRExecClient
      extended byorg.apache.tools.ant.taskdefs.optional.net.RExecTask.AntRExecClient
Enclosing class:
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.

See Also:
Serialized Form

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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RExecTask.AntRExecClient

public RExecTask.AntRExecClient()
Method Detail

waitForString

public 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

waitForString

public 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

sendString

public void sendString(java.lang.String s,
                       boolean echoString)
Write this string to the rexec session.

Parameters:
echoString - Logs string sent

waitForEOF

public 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


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.