Are there any APIs available in Java to query jobs? In other words, I am looking for api for “jobs” command so that I can get to know status of jobs (running, stopped etc). Ideally, I would like to be able to submit jobs but I think it can be achieved easily by calling shell and pass &
Are there any APIs available in Java to query jobs? In other words, I
Share
If you have/develop – shell script to handle Job , then you can use java.lang.process apis to execute that shell script and see if it can serve your purpose. You can also pass arguments along with parameters. Following is the code snippets may be useful to you.