Comments (6)
@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.
@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.
@neeleshs it's fine for me if you use this ticket. Looking forward to your PR! Thanks.
from mariadb4j.
@neeleshs did you ever get around to doing above and proposing PR/s? ;-)
from mariadb4j.
Sorry for the delay on this. Here's the PR https://github.com/vorburger/MariaDB4j/pull/96
from mariadb4j.
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)
- MariaDB4jSpringConfiguration.java:[22,46] package ch.vorburger.mariadb4j.springframework does not exist HOT 1
- CodeQL GitHub Action fails
- Fix Sonatype Lift Findings HOT 3
- Merge Maven Test Build & CodeQL GitHub Actions? HOT 2
- Release 3.0.0 HOT 9
- Remove dependency on Spring for non-Spring uses HOT 3
- Add latest MariaDB v10.6+ (incl. support for OpenSSL 3) HOT 5
- Add test coverage for locally pre-installed MariaDB on Windows HOT 1
- GitHub Action to run Tests on Mac HOT 3
- New Windows GitHub Action fails due to Error: HttpError: Resource not accessible by integration HOT 1
- Clarify 2.x Maintenance HOT 3
- CodeQL Analyze GitHub Action fails with Connection timed out for https://repo.maven.apache.org HOT 1
- Support for sequences HOT 4
- Add ErrorProne Code Quality Tool HOT 1
- Before 3.0.1 release, mysql_install_db.exe: unknown variable 'tmpdir=C:\Users\Administrator\AppData\Local\Temp\MariaDB4j\tmp\54772 HOT 7
- Pre-Commit Hooks HOT 1
- Fix code scanning alert - Token-Permissions
- `root` with empty password security vulnerability. How to change the default password?
- MariaDB Wrapper on NPM for NodeJS / Deno #polyglot HOT 1
- Running DB with dump in Spring using Managedprocess HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mariadb4j.