version 1.1.4.6, 2007/05/24 19:34:56
|
version 1.6, 2008/02/08 19:17:37
|
|
|
*/ | */ |
static int ping(); | static int ping(); |
| |
/** Open the given file with the given mode. |
/** Open the given file with the given mode. The file permissions are |
|
governed by Executor policy (if the Executor is called) or by the |
|
process umask setting. |
@param path the path of the file. | @param path the path of the file. |
@param mode 'r'=read, 'w'=write, and 'a'=append. | @param mode 'r'=read, 'w'=write, and 'a'=append. |
@return the file stream or NULL on failure. | @return the file stream or NULL on failure. |
|
|
@param module name of provider module to be loaded. | @param module name of provider module to be loaded. |
@param pegasusHome the Pegasus home directory to use to find the | @param pegasusHome the Pegasus home directory to use to find the |
cimprovagt executable. | cimprovagt executable. |
@param uid the UID to run the provider agent as. |
@param userName the user name to run the provider agent as. |
@param gid the GID to run the provider agent as. |
|
@param pid the PID of the new process (to be eventually passed to | @param pid the PID of the new process (to be eventually passed to |
reapProviderAgent()). | reapProviderAgent()). |
@param readPipe pipe used to read data from provider agent. | @param readPipe pipe used to read data from provider agent. |
|
|
const char* module, | const char* module, |
const String& pegasusHome, | const String& pegasusHome, |
const String& userName, | const String& userName, |
int uid, |
|
int gid, |
|
int& pid, | int& pid, |
AnonymousPipe*& readPipe, | AnonymousPipe*& readPipe, |
AnonymousPipe*& writePipe); | AnonymousPipe*& writePipe); |
| |
/** Cause the executor to daemonize itself. |
/** Cause the executor to complete its daemonization and the cimserver |
|
command to exit with success status. |
@return 0=success, -1=failure | @return 0=success, -1=failure |
*/ | */ |
static int daemonizeExecutor(); | static int daemonizeExecutor(); |
|
|
const char* challengeFilePath, | const char* challengeFilePath, |
const char* response); | const char* response); |
| |
|
/** Update the log level used by the Executor process. |
|
@param logLevel the new log level to use in the Executor. |
|
@return 0=success, -1=failure |
|
*/ |
|
static int updateLogLevel( |
|
const char* logLevel); |
|
|
private: | private: |
// Private to prevent instantiation. | // Private to prevent instantiation. |
Executor(); | Executor(); |