Procpublic class Proc extends Object
Fields Summary |
---|
public static final int | APR_SHELLCM | public static final int | APR_PROGRAMuse the shell to invoke the program | public static final int | APR_PROGRAM_ENVinvoke the program directly, no copied env | public static final int | APR_PROGRAM_PATHinvoke the program, replicating our environment | public static final int | APR_SHELLCMD_ENVfind program on PATH, use our environment | public static final int | APR_WAITuse the shell to invoke the program,
replicating our environment | public static final int | APR_NOWAITwait for the specified process to finish | public static final int | APR_PROC_EXITdo not wait -- just see if it has finished | public static final int | APR_PROC_SIGNALprocess exited normally | public static final int | APR_PROC_SIGNAL_COREprocess exited due to a signal | public static final int | APR_NO_PIPEprocess exited and dumped a core file | public static final int | APR_FULL_BLOCK | public static final int | APR_FULL_NONBLOCK | public static final int | APR_PARENT_BLOCK | public static final int | APR_CHILD_BLOCK | public static final int | APR_LIMIT_CPU | public static final int | APR_LIMIT_MEM | public static final int | APR_LIMIT_NPROC | public static final int | APR_LIMIT_NOFILE | public static final int | APR_OC_REASON_DEATHchild has died, caller must call unregister still | public static final int | APR_OC_REASON_UNWRITABLEwrite_fd is unwritable | public static final int | APR_OC_REASON_RESTARTa restart is occuring, perform any necessary cleanup (including
sending a special signal to child) | public static final int | APR_OC_REASON_UNREGISTERunregister has been called, do whatever is necessary (including
kill the child) | public static final int | APR_OC_REASON_LOSTsomehow the child exited without us knowing ... buggy os? | public static final int | APR_OC_REASON_RUNNINGa health check is occuring, for most maintainence functions
this is a no-op. | public static final int | APR_KILL_NEVERprocess is never sent any signals | public static final int | APR_KILL_ALWAYSprocess is sent SIGKILL on apr_pool_t cleanup | public static final int | APR_KILL_AFTER_TIMEOUTSIGTERM, wait 3 seconds, SIGKILL | public static final int | APR_JUST_WAITwait forever for the process to complete | public static final int | APR_KILL_ONLY_ONCEsend SIGTERM and then wait | public static final int | APR_PROC_DETACH_FOREGROUND | public static final int | APR_PROC_DETACH_DAEMONIZEDo not detach | public static final int | MAX_ARGS_SIZEDetach | public static final int | MAX_ENV_SIZE |
Methods Summary |
---|
public static native long | alloc(long cont)Allocate apr_proc_t stucture from pool
This is not an apr function.
| public static native int | create(long proc, java.lang.String progname, java.lang.String[] args, java.lang.String[] env, long attr, long pool)Create a new process and execute a new program within that process.
This function returns without waiting for the new process to terminate;
use apr_proc_wait for that.
| public static native int | detach(int daemonize)Detach the process from the controlling terminal.
| public static native int | fork(long[] proc, long cont)This is currently the only non-portable call in APR. This executes
a standard unix fork.
| public static native int | kill(long proc, int sig)Terminate a process.
| public static native int | wait(long proc, int[] exit, int waithow)Wait for a child process to die
| public static native int | waitAllProcs(long proc, int[] exit, int waithow, long pool)Wait for any current child process to die and return information
about that child.
|
|