1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:19 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | ExecuteWatchdog (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.ExecuteWatchdog class">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="ExecuteWatchdog (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteOn.FileDirBoth.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Exit.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="ExecuteWatchdog.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.taskdefs</FONT>
|
---|
85 | <BR>
|
---|
86 | Class ExecuteWatchdog</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.ExecuteWatchdog</B>
|
---|
90 | </PRE>
|
---|
91 | <DL>
|
---|
92 | <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/tools/ant/util/TimeoutObserver.html" title="interface in org.apache.tools.ant.util">TimeoutObserver</A></DD>
|
---|
93 | </DL>
|
---|
94 | <HR>
|
---|
95 | <DL>
|
---|
96 | <DT>public class <B>ExecuteWatchdog</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../../org/apache/tools/ant/util/TimeoutObserver.html" title="interface in org.apache.tools.ant.util">TimeoutObserver</A></DL>
|
---|
97 |
|
---|
98 | <P>
|
---|
99 | Destroys a process running for too long.
|
---|
100 | For example:
|
---|
101 | <pre>
|
---|
102 | ExecuteWatchdog watchdog = new ExecuteWatchdog(30000);
|
---|
103 | Execute exec = new Execute(myloghandler, watchdog);
|
---|
104 | exec.setCommandLine(mycmdline);
|
---|
105 | int exitvalue = exec.execute();
|
---|
106 | if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) {
|
---|
107 | // it was killed on purpose by the watchdog
|
---|
108 | }
|
---|
109 | </pre>
|
---|
110 | <P>
|
---|
111 |
|
---|
112 | <P>
|
---|
113 | <DL>
|
---|
114 | <DT><B>Since:</B></DT>
|
---|
115 | <DD>Ant 1.2</DD>
|
---|
116 | <DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/Execute.html" title="class in org.apache.tools.ant.taskdefs"><CODE>Execute</CODE></A>,
|
---|
117 | <A HREF="../../../../../org/apache/tools/ant/util/Watchdog.html" title="class in org.apache.tools.ant.util"><CODE>Watchdog</CODE></A></DL>
|
---|
118 | <HR>
|
---|
119 |
|
---|
120 | <P>
|
---|
121 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
122 |
|
---|
123 |
|
---|
124 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
125 |
|
---|
126 |
|
---|
127 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
128 |
|
---|
129 | <A NAME="constructor_summary"><!-- --></A>
|
---|
130 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
131 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
132 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
133 | <B>Constructor Summary</B></FONT></TD>
|
---|
134 | </TR>
|
---|
135 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
136 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#ExecuteWatchdog(int)">ExecuteWatchdog</A></B>(int timeout)</CODE>
|
---|
137 |
|
---|
138 | <BR>
|
---|
139 | <B>Deprecated.</B> <I>Use constructor with a long type instead.
|
---|
140 | (1.4.x compatibility)</I></TD>
|
---|
141 | </TR>
|
---|
142 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
143 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#ExecuteWatchdog(long)">ExecuteWatchdog</A></B>(long timeout)</CODE>
|
---|
144 |
|
---|
145 | <BR>
|
---|
146 | Creates a new watchdog with a given timeout.</TD>
|
---|
147 | </TR>
|
---|
148 | </TABLE>
|
---|
149 |
|
---|
150 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
151 |
|
---|
152 | <A NAME="method_summary"><!-- --></A>
|
---|
153 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
154 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
155 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
156 | <B>Method Summary</B></FONT></TD>
|
---|
157 | </TR>
|
---|
158 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
159 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
160 | <CODE> void</CODE></FONT></TD>
|
---|
161 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#checkException()">checkException</A></B>()</CODE>
|
---|
162 |
|
---|
163 | <BR>
|
---|
164 | This method will rethrow the exception that was possibly caught during
|
---|
165 | the run of the process.</TD>
|
---|
166 | </TR>
|
---|
167 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
168 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
169 | <CODE>protected void</CODE></FONT></TD>
|
---|
170 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#cleanUp()">cleanUp</A></B>()</CODE>
|
---|
171 |
|
---|
172 | <BR>
|
---|
173 | reset the monitor flag and the process.</TD>
|
---|
174 | </TR>
|
---|
175 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
176 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
177 | <CODE> boolean</CODE></FONT></TD>
|
---|
178 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#isWatching()">isWatching</A></B>()</CODE>
|
---|
179 |
|
---|
180 | <BR>
|
---|
181 | Indicates whether or not the watchdog is still monitoring the process.</TD>
|
---|
182 | </TR>
|
---|
183 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
184 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
185 | <CODE> boolean</CODE></FONT></TD>
|
---|
186 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#killedProcess()">killedProcess</A></B>()</CODE>
|
---|
187 |
|
---|
188 | <BR>
|
---|
189 | Indicates whether the last process run was killed on timeout or not.</TD>
|
---|
190 | </TR>
|
---|
191 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
192 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
193 | <CODE> void</CODE></FONT></TD>
|
---|
194 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#start(java.lang.Process)">start</A></B>(java.lang.Process process)</CODE>
|
---|
195 |
|
---|
196 | <BR>
|
---|
197 | Watches the given process and terminates it, if it runs for too long.</TD>
|
---|
198 | </TR>
|
---|
199 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
200 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
201 | <CODE> void</CODE></FONT></TD>
|
---|
202 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#stop()">stop</A></B>()</CODE>
|
---|
203 |
|
---|
204 | <BR>
|
---|
205 | Stops the watcher.</TD>
|
---|
206 | </TR>
|
---|
207 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
208 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
209 | <CODE> void</CODE></FONT></TD>
|
---|
210 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#timeoutOccured(org.apache.tools.ant.util.Watchdog)">timeoutOccured</A></B>(<A HREF="../../../../../org/apache/tools/ant/util/Watchdog.html" title="class in org.apache.tools.ant.util">Watchdog</A> w)</CODE>
|
---|
211 |
|
---|
212 | <BR>
|
---|
213 | Called after watchdog has finished.</TD>
|
---|
214 | </TR>
|
---|
215 | </TABLE>
|
---|
216 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
217 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
218 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
219 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
220 | </TR>
|
---|
221 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
222 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
223 | </TR>
|
---|
224 | </TABLE>
|
---|
225 |
|
---|
226 | <P>
|
---|
227 |
|
---|
228 | <!-- ============ FIELD DETAIL =========== -->
|
---|
229 |
|
---|
230 |
|
---|
231 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
232 |
|
---|
233 | <A NAME="constructor_detail"><!-- --></A>
|
---|
234 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
235 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
236 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
237 | <B>Constructor Detail</B></FONT></TD>
|
---|
238 | </TR>
|
---|
239 | </TABLE>
|
---|
240 |
|
---|
241 | <A NAME="ExecuteWatchdog(long)"><!-- --></A><H3>
|
---|
242 | ExecuteWatchdog</H3>
|
---|
243 | <PRE>
|
---|
244 | public <B>ExecuteWatchdog</B>(long timeout)</PRE>
|
---|
245 | <DL>
|
---|
246 | <DD>Creates a new watchdog with a given timeout.
|
---|
247 | <P>
|
---|
248 | <DT><B>Parameters:</B><DD><CODE>timeout</CODE> - the timeout for the process in milliseconds.
|
---|
249 | It must be greater than 0.</DL>
|
---|
250 | <HR>
|
---|
251 |
|
---|
252 | <A NAME="ExecuteWatchdog(int)"><!-- --></A><H3>
|
---|
253 | ExecuteWatchdog</H3>
|
---|
254 | <PRE>
|
---|
255 | public <B>ExecuteWatchdog</B>(int timeout)</PRE>
|
---|
256 | <DL>
|
---|
257 | <DD><B>Deprecated.</B> <I>Use constructor with a long type instead.
|
---|
258 | (1.4.x compatibility)</I>
|
---|
259 | <P>
|
---|
260 | <DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteWatchdog.html#ExecuteWatchdog(long)"><CODE>ExecuteWatchdog(long)</CODE></A></DL>
|
---|
261 |
|
---|
262 | <!-- ============ METHOD DETAIL ========== -->
|
---|
263 |
|
---|
264 | <A NAME="method_detail"><!-- --></A>
|
---|
265 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
266 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
267 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
268 | <B>Method Detail</B></FONT></TD>
|
---|
269 | </TR>
|
---|
270 | </TABLE>
|
---|
271 |
|
---|
272 | <A NAME="start(java.lang.Process)"><!-- --></A><H3>
|
---|
273 | start</H3>
|
---|
274 | <PRE>
|
---|
275 | public void <B>start</B>(java.lang.Process process)</PRE>
|
---|
276 | <DL>
|
---|
277 | <DD>Watches the given process and terminates it, if it runs for too long.
|
---|
278 | All information from the previous run are reset.
|
---|
279 | <P>
|
---|
280 | <DD><DL>
|
---|
281 | </DL>
|
---|
282 | </DD>
|
---|
283 | <DD><DL>
|
---|
284 | <DT><B>Parameters:</B><DD><CODE>process</CODE> - the process to monitor. It cannot be <tt>null</tt>
|
---|
285 | <DT><B>Throws:</B>
|
---|
286 | <DD><CODE>java.lang.IllegalStateException</CODE> - if a process is still being monitored.</DL>
|
---|
287 | </DD>
|
---|
288 | </DL>
|
---|
289 | <HR>
|
---|
290 |
|
---|
291 | <A NAME="stop()"><!-- --></A><H3>
|
---|
292 | stop</H3>
|
---|
293 | <PRE>
|
---|
294 | public void <B>stop</B>()</PRE>
|
---|
295 | <DL>
|
---|
296 | <DD>Stops the watcher. It will notify all threads possibly waiting
|
---|
297 | on this object.
|
---|
298 | <P>
|
---|
299 | <DD><DL>
|
---|
300 | </DL>
|
---|
301 | </DD>
|
---|
302 | <DD><DL>
|
---|
303 | </DL>
|
---|
304 | </DD>
|
---|
305 | </DL>
|
---|
306 | <HR>
|
---|
307 |
|
---|
308 | <A NAME="timeoutOccured(org.apache.tools.ant.util.Watchdog)"><!-- --></A><H3>
|
---|
309 | timeoutOccured</H3>
|
---|
310 | <PRE>
|
---|
311 | public void <B>timeoutOccured</B>(<A HREF="../../../../../org/apache/tools/ant/util/Watchdog.html" title="class in org.apache.tools.ant.util">Watchdog</A> w)</PRE>
|
---|
312 | <DL>
|
---|
313 | <DD>Called after watchdog has finished.
|
---|
314 | <P>
|
---|
315 | <DD><DL>
|
---|
316 | <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/tools/ant/util/TimeoutObserver.html#timeoutOccured(org.apache.tools.ant.util.Watchdog)">timeoutOccured</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/tools/ant/util/TimeoutObserver.html" title="interface in org.apache.tools.ant.util">TimeoutObserver</A></CODE></DL>
|
---|
317 | </DD>
|
---|
318 | <DD><DL>
|
---|
319 | <DT><B>Parameters:</B><DD><CODE>w</CODE> - the watchdog that timed out.</DL>
|
---|
320 | </DD>
|
---|
321 | </DL>
|
---|
322 | <HR>
|
---|
323 |
|
---|
324 | <A NAME="cleanUp()"><!-- --></A><H3>
|
---|
325 | cleanUp</H3>
|
---|
326 | <PRE>
|
---|
327 | protected void <B>cleanUp</B>()</PRE>
|
---|
328 | <DL>
|
---|
329 | <DD>reset the monitor flag and the process.
|
---|
330 | <P>
|
---|
331 | <DD><DL>
|
---|
332 | </DL>
|
---|
333 | </DD>
|
---|
334 | <DD><DL>
|
---|
335 | </DL>
|
---|
336 | </DD>
|
---|
337 | </DL>
|
---|
338 | <HR>
|
---|
339 |
|
---|
340 | <A NAME="checkException()"><!-- --></A><H3>
|
---|
341 | checkException</H3>
|
---|
342 | <PRE>
|
---|
343 | public void <B>checkException</B>()
|
---|
344 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
345 | <DL>
|
---|
346 | <DD>This method will rethrow the exception that was possibly caught during
|
---|
347 | the run of the process. It will only remains valid once the process has
|
---|
348 | been terminated either by 'error', timeout or manual intervention.
|
---|
349 | Information will be discarded once a new process is ran.
|
---|
350 | <P>
|
---|
351 | <DD><DL>
|
---|
352 | </DL>
|
---|
353 | </DD>
|
---|
354 | <DD><DL>
|
---|
355 |
|
---|
356 | <DT><B>Throws:</B>
|
---|
357 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - a wrapped exception over the one that was
|
---|
358 | silently swallowed and stored during the process run.</DL>
|
---|
359 | </DD>
|
---|
360 | </DL>
|
---|
361 | <HR>
|
---|
362 |
|
---|
363 | <A NAME="isWatching()"><!-- --></A><H3>
|
---|
364 | isWatching</H3>
|
---|
365 | <PRE>
|
---|
366 | public boolean <B>isWatching</B>()</PRE>
|
---|
367 | <DL>
|
---|
368 | <DD>Indicates whether or not the watchdog is still monitoring the process.
|
---|
369 | <P>
|
---|
370 | <DD><DL>
|
---|
371 | </DL>
|
---|
372 | </DD>
|
---|
373 | <DD><DL>
|
---|
374 |
|
---|
375 | <DT><B>Returns:</B><DD><tt>true</tt> if the process is still running, otherwise
|
---|
376 | <tt>false</tt>.</DL>
|
---|
377 | </DD>
|
---|
378 | </DL>
|
---|
379 | <HR>
|
---|
380 |
|
---|
381 | <A NAME="killedProcess()"><!-- --></A><H3>
|
---|
382 | killedProcess</H3>
|
---|
383 | <PRE>
|
---|
384 | public boolean <B>killedProcess</B>()</PRE>
|
---|
385 | <DL>
|
---|
386 | <DD>Indicates whether the last process run was killed on timeout or not.
|
---|
387 | <P>
|
---|
388 | <DD><DL>
|
---|
389 | </DL>
|
---|
390 | </DD>
|
---|
391 | <DD><DL>
|
---|
392 |
|
---|
393 | <DT><B>Returns:</B><DD><tt>true</tt> if the process was killed otherwise
|
---|
394 | <tt>false</tt>.</DL>
|
---|
395 | </DD>
|
---|
396 | </DL>
|
---|
397 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
398 | <HR>
|
---|
399 |
|
---|
400 |
|
---|
401 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
402 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
403 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
404 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
405 | <TR>
|
---|
406 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
407 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
408 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
409 | <TR ALIGN="center" VALIGN="top">
|
---|
410 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
411 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
412 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
413 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
414 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
415 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
416 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
417 | </TR>
|
---|
418 | </TABLE>
|
---|
419 | </TD>
|
---|
420 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
421 | </EM>
|
---|
422 | </TD>
|
---|
423 | </TR>
|
---|
424 |
|
---|
425 | <TR>
|
---|
426 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
427 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/ExecuteOn.FileDirBoth.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
428 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Exit.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
429 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
430 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
431 | <A HREF="ExecuteWatchdog.html" target="_top"><B>NO FRAMES</B></A>
|
---|
432 | <SCRIPT type="text/javascript">
|
---|
433 | <!--
|
---|
434 | if(window==top) {
|
---|
435 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
436 | }
|
---|
437 | //-->
|
---|
438 | </SCRIPT>
|
---|
439 | <NOSCRIPT>
|
---|
440 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
441 | </NOSCRIPT>
|
---|
442 |
|
---|
443 | </FONT></TD>
|
---|
444 | </TR>
|
---|
445 | <TR>
|
---|
446 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
447 | SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
448 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
449 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
450 | </TR>
|
---|
451 | </TABLE>
|
---|
452 | <A NAME="skip-navbar_bottom"></A>
|
---|
453 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
454 |
|
---|
455 | <HR>
|
---|
456 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
457 | </BODY>
|
---|
458 | </HTML>
|
---|