Code Monkey home page Code Monkey logo

Comments (6)

vorburger avatar vorburger commented on May 30, 2024

@neeleshs thanks for your kind comment and interest in the project.

I would suggest that your 2 bullet points above are handled in two separate issues / PRs:

Instead of adding status() to DB (what would you want that to return?), how about just adding 2 methods named boolean isAlive() and a int exitValue() which simply delegate to the methods of the same name of the private ManagedProcess instance? This should be relatively easy an straightforward!

For the ExecuteResultHandler idea, as you saw ManagedProcess already has something like that internally, with its LoggingExecuteResultHandler .. I'm open to exposing that more, but NB that org.apache.commons.exec only accepts one of them .. I think the LoggingExecuteResultHandler should always stay, so we would have to come up with a way to call both the standard logging and also a, or perhaps if several, custom ones, if any are registered. It's certainly doable - but probably a little bit more work than the first point above.

I do like both of these ideas, and encourage you to join the project by making two (separate) contributions for both of above - I''d be happy to review them and work with you to get them merged!

from mariadb4j.

neeleshs avatar neeleshs commented on May 30, 2024

@vorburger , Thanks for the comments. I'm working on the second one already - I've worked around the one-org.apache.commons.exec-ResultHandler issue by using a composite. Is it okay to use this ticket for the second bullet, and file another one for the isAlive() / exitValue() APIs? I'll create a PR when the code is ready.

from mariadb4j.

vorburger avatar vorburger commented on May 30, 2024

@neeleshs it's fine for me if you use this ticket. Looking forward to your PR! Thanks.

from mariadb4j.

vorburger avatar vorburger commented on May 30, 2024

@neeleshs did you ever get around to doing above and proposing PR/s? ;-)

from mariadb4j.

neeleshs avatar neeleshs commented on May 30, 2024

Sorry for the delay on this. Here's the PR https://github.com/vorburger/MariaDB4j/pull/96

from mariadb4j.

vorburger avatar vorburger commented on May 30, 2024

I'm cleaning up issue for #165 and it seems to me this one as actually fully done, long ago, via #96, agreed @duttonw and @neeleshs ? Therefore finally closing this now - please re-open with comment what is missing should I have misunderstood.

from mariadb4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.