#include <TaskManager.h>
Public Member Functions | |
int | getInfoShmid () |
bool | isTaskRunning () |
Check if a task is currently running. | |
void | setTaskRunning (bool isRunning) |
Task running setter. | |
int | getReturnValue () |
Return value of the executed task. | |
bool | registerTask (Task *aTask) |
Register a task to execute. | |
bool | executeCurrentTask () |
Execute the task that was already registered. | |
bool | createCurrentTaskSummary () |
Create a txt file, which describes the execution process of the task (error or not, task name, host name, exec time). | |
bool | archiveCurrentTask () |
Archive (tar.gz) the task that was already registered. | |
bool | copyCurrentTaskArchive () |
Copy archive (tar.gz) on the storage file system. | |
bool | deleteCurrentTaskArchive () |
Delete archive (tar.gz) on the local file system. | |
Task * | getTask () |
char * | getTaskName () |
Static Public Member Functions | |
static TaskManager * | Instance (std::string aIpAddr, std::string aAgentPath, std::string aMountPoint) |
Singleton constructor. | |
Static Public Attributes | |
static const std::string | kLOGS_DIR |
|
Archive (tar.gz) the task that was already registered.
|
|
Copy archive (tar.gz) on the storage file system.
|
|
Create a txt file, which describes the execution process of the task (error or not, task name, host name, exec time).
|
|
Delete archive (tar.gz) on the local file system.
|
|
Execute the task that was already registered.
|
|
Return current running task (do not use from other process). |
|
Singleton constructor. Check unicity of singleton, based on pinstance value. |
|
Register a task to execute.
|
|
Directory name inside the Task path were results are stored |