Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Waiting for a server to shutdown using waitFor

Waiting for a server to shutdown using waitFor

2007-05-23       - By Krishna Mohan Attravanam

Hi all,

I am using the following tasks within a target that
check to see if the servers are shutdown or not?

<waitfor maxwait="120" maxwaitunit="second"
timeoutproperty="servers.still.running"
checkevery="10">
<and>
   <not><socket server="${server1.host}"
port="${server1.port}"/></not>
   <not><socket server="${server2.host}"
port="${server2.port}"/></not>
   <not><socket server="${server3.host}"
port="${server3.port}"/></not>
 </and>
</waitfor>

My question is: Is there a deterministic way of
finding out if the server has shutdown completely?
What if the timeout value is not sufficient ? Any
thoughts ?

Thanks
K

_____________________________________________________
*Half of being smart is knowing what you're dumb at
*To err is human--and to blame it on a computer is even more so
*Gravity is not responsible for people falling in love


   
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.