Re: [exec] how to use watchdog / wrong javadoc
Thank you for doing it! :-) Gary On Apr 26, 2016 4:09 PM, "Woonsan Ko"wrote: > Hi Gary, > > I've just fixed the javadoc: > - > http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java?r1=1741116=1741115=1741116 > > Thanks for the suggestion! :-) > > Woonsan > > > On Tue, Apr 26, 2016 at 5:23 PM, Gary Gregory > wrote: > > Woonsan, > > > > Would you mind updating the Javadoc? > > > > Thank you, > > Gary > > On Apr 26, 2016 1:32 PM, "Woonsan Ko" wrote: > > > >> The javadoc seems to have outdated info. It should have been like the > >> following: > >> > >> ExecuteWatchdog watchdog = new ExecuteWatchdog(3); > >> Executor exec = new DefaultExecutor(); > >> exec.setStreamHandler(myStreamHandler); > >> exec.setWatchdog(watchdog); > >> int exitvalue = exec.execute(mycmdline); > >> if (DefaultExecutor.isFailure(exitvalue) && watchdog.killedProcess()) > { > >> // it was killed on purpose by the watchdog > >> } > >> > >> Regards, > >> > >> Woonsan > >> > >> > >> On Tue, Apr 26, 2016 at 8:32 AM, Leonardo K. Shikida > > >> wrote: > >> > Hi > >> > > >> > > >> > https://commons.apache.org/proper/commons-exec/apidocs/org/apache/commons/exec/ExecuteWatchdog.html > >> > > >> > says > >> > > >> > ExecuteWatchdog watchdog = new ExecuteWatchdog(3); > >> > Executer exec = new Executer(myloghandler, watchdog); > >> > exec.setCommandLine(mycmdline); > >> > int exitvalue = exec.execute(); > >> > if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) { > >> > // it was killed on purpose by the watchdog > >> > } > >> > > >> > but > >> > > >> > "Executer" does not exist > >> > > >> > "Executor" does exist but it is an interface > >> > > >> > DefaultExecutor implements Executor but does not set a watchdog in the > >> > constructor > >> > > >> > > >> > > >> > > >> > [] > >> > > >> > Leo > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > >> For additional commands, e-mail: user-h...@commons.apache.org > >> > >> > > - > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > >
Re: [exec] how to use watchdog / wrong javadoc
Hi Gary, I've just fixed the javadoc: - http://svn.apache.org/viewvc/commons/proper/exec/trunk/src/main/java/org/apache/commons/exec/ExecuteWatchdog.java?r1=1741116=1741115=1741116 Thanks for the suggestion! :-) Woonsan On Tue, Apr 26, 2016 at 5:23 PM, Gary Gregorywrote: > Woonsan, > > Would you mind updating the Javadoc? > > Thank you, > Gary > On Apr 26, 2016 1:32 PM, "Woonsan Ko" wrote: > >> The javadoc seems to have outdated info. It should have been like the >> following: >> >> ExecuteWatchdog watchdog = new ExecuteWatchdog(3); >> Executor exec = new DefaultExecutor(); >> exec.setStreamHandler(myStreamHandler); >> exec.setWatchdog(watchdog); >> int exitvalue = exec.execute(mycmdline); >> if (DefaultExecutor.isFailure(exitvalue) && watchdog.killedProcess()) { >> // it was killed on purpose by the watchdog >> } >> >> Regards, >> >> Woonsan >> >> >> On Tue, Apr 26, 2016 at 8:32 AM, Leonardo K. Shikida >> wrote: >> > Hi >> > >> > >> https://commons.apache.org/proper/commons-exec/apidocs/org/apache/commons/exec/ExecuteWatchdog.html >> > >> > says >> > >> > ExecuteWatchdog watchdog = new ExecuteWatchdog(3); >> > Executer exec = new Executer(myloghandler, watchdog); >> > exec.setCommandLine(mycmdline); >> > int exitvalue = exec.execute(); >> > if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) { >> > // it was killed on purpose by the watchdog >> > } >> > >> > but >> > >> > "Executer" does not exist >> > >> > "Executor" does exist but it is an interface >> > >> > DefaultExecutor implements Executor but does not set a watchdog in the >> > constructor >> > >> > >> > >> > >> > [] >> > >> > Leo >> >> - >> To unsubscribe, e-mail: user-unsubscr...@commons.apache.org >> For additional commands, e-mail: user-h...@commons.apache.org >> >> - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [exec] how to use watchdog / wrong javadoc
Woonsan, Would you mind updating the Javadoc? Thank you, Gary On Apr 26, 2016 1:32 PM, "Woonsan Ko"wrote: > The javadoc seems to have outdated info. It should have been like the > following: > > ExecuteWatchdog watchdog = new ExecuteWatchdog(3); > Executor exec = new DefaultExecutor(); > exec.setStreamHandler(myStreamHandler); > exec.setWatchdog(watchdog); > int exitvalue = exec.execute(mycmdline); > if (DefaultExecutor.isFailure(exitvalue) && watchdog.killedProcess()) { > // it was killed on purpose by the watchdog > } > > Regards, > > Woonsan > > > On Tue, Apr 26, 2016 at 8:32 AM, Leonardo K. Shikida > wrote: > > Hi > > > > > https://commons.apache.org/proper/commons-exec/apidocs/org/apache/commons/exec/ExecuteWatchdog.html > > > > says > > > > ExecuteWatchdog watchdog = new ExecuteWatchdog(3); > > Executer exec = new Executer(myloghandler, watchdog); > > exec.setCommandLine(mycmdline); > > int exitvalue = exec.execute(); > > if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) { > > // it was killed on purpose by the watchdog > > } > > > > but > > > > "Executer" does not exist > > > > "Executor" does exist but it is an interface > > > > DefaultExecutor implements Executor but does not set a watchdog in the > > constructor > > > > > > > > > > [] > > > > Leo > > - > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > >
Re: [exec] how to use watchdog / wrong javadoc
The javadoc seems to have outdated info. It should have been like the following: ExecuteWatchdog watchdog = new ExecuteWatchdog(3); Executor exec = new DefaultExecutor(); exec.setStreamHandler(myStreamHandler); exec.setWatchdog(watchdog); int exitvalue = exec.execute(mycmdline); if (DefaultExecutor.isFailure(exitvalue) && watchdog.killedProcess()) { // it was killed on purpose by the watchdog } Regards, Woonsan On Tue, Apr 26, 2016 at 8:32 AM, Leonardo K. Shikidawrote: > Hi > > https://commons.apache.org/proper/commons-exec/apidocs/org/apache/commons/exec/ExecuteWatchdog.html > > says > > ExecuteWatchdog watchdog = new ExecuteWatchdog(3); > Executer exec = new Executer(myloghandler, watchdog); > exec.setCommandLine(mycmdline); > int exitvalue = exec.execute(); > if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) { > // it was killed on purpose by the watchdog > } > > but > > "Executer" does not exist > > "Executor" does exist but it is an interface > > DefaultExecutor implements Executor but does not set a watchdog in the > constructor > > > > > [] > > Leo - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [MATH] Ordinary differential equations - stiff solver
Hi Giles, Thanks for letting me know. I will see how I can get this thing started :) Best, Stefan On Sat, Apr 23, 2016 at 5:32 AM, Gilleswrote: > Hi. > > There is also a long-pending issue on that subject: > https://issues.apache.org/jira/browse/MATH-172 > > Regards, > Gilles > > > > On Thu, 21 Apr 2016 02:55:42 +0200, Gilles wrote: > >> Hi. >> >> On Fri, 15 Apr 2016 21:41:32 -0400, Stefan Hubert wrote: >> >>> Hello Gilles, >>> >>> the Java code I have from LSODA is from a C-Code translation, which was >>> at >>> MIT license. >>> >>> I would definitely offer the LSODA Java code I already have, to get >>> things >>> started. Is anyone else interested in starting this project? How can we >>> start it? >>> >> >> You could post a proposal on the "dev" ML. >> But you should be ready to make most of the adaptation work; Commons Math >> is a project that needs contributors... :-} >> >> Best, >>> Stefan >>> >>> >>> >>> On Fri, Apr 15, 2016 at 9:00 AM, Gilles >>> wrote: >>> >>> Hello. On Fri, 15 Apr 2016 08:30:39 -0400, Stefan Hubert wrote: Hi everybody! > > I am curious if a support for solving stiff ordinary differential > equations > is planned in future? > > There are a lot of them available for Fortran 77 (e. g. > > https://people.sc.fsu.edu/~jburkardt/f77_src/odepack/odepack.html). I > do > have a direct Java translation > > We should be wary of direct translations, as they are no more understandable than the original source. Commons Math, being implemented in _pure_ Java, should be an object-oriented library. of LSODE, > > Unless I'm mistaken, there is no license. maybe this helps to get started? > > Yes, if you are willing to use it as a reference implementation of a new, independent, free, object-oriented version of the functionality. Best regards, Gilles Best, > Stefan > > > > - > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > >
[exec] how to use watchdog / wrong javadoc
Hi https://commons.apache.org/proper/commons-exec/apidocs/org/apache/commons/exec/ExecuteWatchdog.html says ExecuteWatchdog watchdog = new ExecuteWatchdog(3); Executer exec = new Executer(myloghandler, watchdog); exec.setCommandLine(mycmdline); int exitvalue = exec.execute(); if (Execute.isFailure(exitvalue) && watchdog.killedProcess()) { // it was killed on purpose by the watchdog } but "Executer" does not exist "Executor" does exist but it is an interface DefaultExecutor implements Executor but does not set a watchdog in the constructor [] Leo