#include <rlpcontrol.h>
Public Member Functions | |
rlPcontrol () | |
virtual | ~rlPcontrol () |
void | setStartupCommand (const char *command, const char *process_name) |
int | start () |
int | sigterm () |
int | sigkill () |
int | isAlive () |
const char * | startupCommand () |
const char * | processName () |
rlTime * | processTime () |
void | setPID (long pid) |
long | pid () |
rlPcontrol * | getNext () |
rlPcontrol * | addNew () |
void | setInput (const char *input) |
void | setOutput (const char *output) |
void | setError (const char *error) |
void | setPriority (int priority) |
int | priority () |
Private Member Functions | |
int | rlstrlen (const char *str) |
Private Attributes | |
char * | startup_command |
char * | process_name |
char * | m_input |
char * | m_output |
char * | m_error |
long | m_dwProcessId |
long | m_pid |
rlTime | process_time |
rlPcontrol * | next |
int | prio |
A class for starting/stoping/monitoring other processes.
Definition at line 24 of file rlpcontrol.h.
rlPcontrol::rlPcontrol | ( | ) |
construct a process control object
Definition at line 45 of file rlpcontrol.cpp.
|
virtual |
deconstruct the process control object
Definition at line 64 of file rlpcontrol.cpp.
rlPcontrol * rlPcontrol::addNew | ( | ) |
add and return a new rlPcontrol object
Definition at line 346 of file rlpcontrol.cpp.
rlPcontrol * rlPcontrol::getNext | ( | ) |
int rlPcontrol::isAlive | ( | ) |
test if process is alive
Definition at line 300 of file rlpcontrol.cpp.
long rlPcontrol::pid | ( | ) |
get process id
Definition at line 109 of file rlpcontrol.cpp.
int rlPcontrol::priority | ( | ) |
const char * rlPcontrol::processName | ( | ) |
rlTime * rlPcontrol::processTime | ( | ) |
|
private |
Definition at line 133 of file rlpcontrol.cpp.
void rlPcontrol::setError | ( | const char * | error | ) |
void rlPcontrol::setInput | ( | const char * | input | ) |
void rlPcontrol::setOutput | ( | const char * | output | ) |
void rlPcontrol::setPID | ( | long | pid | ) |
set process id
Definition at line 93 of file rlpcontrol.cpp.
void rlPcontrol::setPriority | ( | int | priority | ) |
set priority default=8
Definition at line 379 of file rlpcontrol.cpp.
void rlPcontrol::setStartupCommand | ( | const char * | command, |
const char * | process_name | ||
) |
set the startup command and the process_name
Definition at line 122 of file rlpcontrol.cpp.
int rlPcontrol::sigkill | ( | ) |
stop the process with SIGKILL
Definition at line 276 of file rlpcontrol.cpp.
int rlPcontrol::sigterm | ( | ) |
stop the process with SIGTERM
Definition at line 231 of file rlpcontrol.cpp.
int rlPcontrol::start | ( | ) |
start the process
Definition at line 139 of file rlpcontrol.cpp.
const char * rlPcontrol::startupCommand | ( | ) |
|
private |
Definition at line 132 of file rlpcontrol.h.
|
private |
Definition at line 128 of file rlpcontrol.h.
|
private |
Definition at line 128 of file rlpcontrol.h.
|
private |
Definition at line 128 of file rlpcontrol.h.
|
private |
Definition at line 135 of file rlpcontrol.h.
|
private |
Definition at line 137 of file rlpcontrol.h.
|
private |
Definition at line 138 of file rlpcontrol.h.
|
private |
Definition at line 125 of file rlpcontrol.h.
|
private |
Definition at line 136 of file rlpcontrol.h.
|
private |
Definition at line 125 of file rlpcontrol.h.