hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::drce::message_const Namespace Reference

Enumerations

enum  {
  CREATE_DEFAULT_JSON = 0, SERIALIZATION_OUTPUT_JSON_MESSAGE_ERROR, EMPTY_COMMAND_LINE, EXECUTE_COMMAND_FAIL,
  UNKNOWN_SESSION_TYPE, OBJECT_INSTANCE_WAS_NOT_CREATED, EMPTY_OBJECT_INSTANCE, SET_HOME_DIR,
  ERROR, ERROR_MSG, ERROR_CODE, COMMAND,
  CREATE_FILE, READ_FILE, DELETE_FILE, ERROR_READ_DATA_FILE,
  ERROR_READ_REQUEST_FILE, NOT_EXISTS_DATA_FILE, NOT_EXISTS_REQUEST_FILE, ERROR_EXECUTE_NOTIFICATION,
  BAD_FILE_CONTENT, SHELL_SCRIPT_NOT_EXIST, SHELL_SCRIPT_CANNOT_EXECUTE, WRONG_TYPE_TASK_REQUEST,
  WRONG_TYPE_THREAD_MODE, EXECUTE_SHELL_HOST_COMMAND_FAIL, SHELL_HOST_COMMAND_RETURN_ERROR, WRONG_TYPE_REMOTE_EXCUTION,
  TASK_CONTINUES_TO_RUN, WRONG_CHECK_TYPE, WRONG_FETCH_TYPE, WRONG_ALGORITHM_TYPE,
  BAD_COMMAND_PARAMS, BAD_TASK_ID, DATA_NOT_RANGE, SEARCH_TASK,
  CANCEL_TASK, INVALID_PID_PROCESS, TASK_NOT_FOUND, TASK_DATA_NOT_FOUND,
  PROCESS_WAS_NOT_STOPPED, CHANGE_STATE, TASK_TIME_EXPIRED, TASK_CANCELED,
  EXCEEDED_CPU_LOAD, EXCEEDED_IOWAIT_LOAD, PRESENT_LOADING, EXCEEDED_DISK_SPACE,
  USAGE, FREE, BYTES, PERCENTS,
  EXCEEDED_RESOURCE_RAM, EXCEEDED_VIRTUAL_RAM, EXCEEDED_PROCESSES_COUNT, EXCEEDED_THREADS_COUNT,
  EXCEEDED_USAGE_IOWAIT_LOAD, EXCEEDED_USAGE_VIRTUAL_RAM, EXCEEDED_USAGE_RESOURCE_RAM, EXCEEDED_USAGE_DISK_SPACE,
  CLEANUP_BAD_FLAG, PID, SUBTASK_EXECUTION_ERROR, START_CLEANUP_TASK_ERROR,
  EMPTY_FILE_CONTENT, GET_CURRENT_TASKS_QUEUE_ERROR, GET_LIST_ALL_TASKS_ERROR, GET_RESOURCE_USAGE_ERROR,
  TASK_BUSY, TARGET_CLIENTS_NOT_AVAILABLE, NODE_NOT_SUPPORTED, DATA_FILE_IS_EMPTY,
  SET_ENVIRONMENT_ERROR, DUMP_RESOURCE_MONITOR_FAIL, RESTORE_RESOURCE_MONITOR_FAIL
}

Variables

const char delimiter = ':'
const char space = ' '
const char point = '.'
const std::string badJsonFormat = "Bad json format. Not found field: "
const std::string badJsonFieldContent = "Bad json format. Bad content of field: "
const std::string createDefaultJson = "CREATE DefaultJSON"
const std::string serializationOutputJsonMessageError = "Serialization error of output json message"
const std::string emptyCommandLine = "Empty command line"
const std::string executeCommandFail = "Execute command fail"
const std::string unknownSessionType = "Unknown session type"
const std::string objectInstanceWasNotCreated = "Object instance was not created"
const std::string emptyObjectInstance = "Empty object instance"
const std::string setHomeDir = "Set HomeDir"
const std::string error = "Error"
const std::string errorMsg = "ERROR_MSG"
const std::string errorCode = "ERROR_CODE"
const std::string command = "COMMAND"
const std::string createFileFail = "Create file fail"
const std::string readFileFail = "Read file fail"
const std::string deleteFileFail = "Delete file fail"
const std::string errorReadDataFile = "Error read data file"
const std::string errorReadRequestFile = "Error read request file"
const std::string dataFileNotExists = "File of data not exists"
const std::string requestFileNotExists = "File of request not exists"
const std::string badFileContent = "Bad file's content"
const std::string shellScriptNotExist = "Shell script not exist"
const std::string shellScriptCannotExecute = "Shell script cannot execute"
const std::string wrongTypeTaskRequest = "Wrong type of task request"
const std::string wrongTypeThreadMode = "Wrong type of thread mode"
const std::string executeShellHostCommandFail = "Execute Shell Host command fail"
const std::string shellHostCommandReturnError = "Shell Host command return error"
const std::string wrongTypeRemoteExecution = "Wrong type of remote execution"
const std::string wrongCheckType = "Wrong check type for return status information"
const std::string wrongFetchType = "Wrong fetch type for get data request"
const std::string wrongAlgorithmType = "Wrong algorithm type for terminate task request"
const std::string badCommandParams = "Bad command params"
const std::string badTaskId = "Bad task ID"
const std::string dataNotRange = "Task Id not in range"
const std::string searchTask = "Search task fail"
const std::string cancelTask = "Cancel task fail"
const std::string invalidPidProcess = "Invalid pid process"
const std::string readDataFile = "Read data file fail"
const std::string errorExecuteNotification = "Error execute notification"
const std::string taskContinuesToRun = "Task continues to run"
const std::string taskNotFound = "Task not found"
const std::string taskDataNotFound = "Task data not found"
const std::string processWasNotStopped = "Process wasn't stopped"
const std::string changeState = "Change state"
const std::string taskTimeExpired = "Task's time expired"
const std::string taskCanceled = "Task canceled"
const std::string exceededCpuLoad = "Exceeded max allowed value of CPU load"
const std::string exceededIOWaitLoad = "Exceeded max allowed value of iowait load"
const std::string presentLoading = "Present loading is"
const std::string exceededDiskSpace = "Exceeded min size of disk space"
const std::string usage = "Usage"
const std::string free = "Free"
const std::string bytes = "bytes"
const std::string percents = "percents"
const std::string exceededResourceRAM = "Exceeded min size of resource RAM"
const std::string exceededVirtualRAM = "Exceeded min size of virtual RAM"
const std::string exceededProcessesCount = "Exceeded max number of processes."
const std::string exceededThreadsCount = "Exceeded max number of threads"
const std::string exceededUsageIOWaitLoad = "Exceeded max allowed value of iowait load during execution"
const std::string exceededUsageVirtualRAM = "Exceeded max allowed value of virtual RAM usage during execution"
const std::string exceededUsageResourceRAM = "Exceeded max allowed value of resource RAM usage during execution"
const std::string exceededUsageDiskSpace = "Exceeded max allowed value of disk space usage during execution"
const std::string cleanupBadFlag = "Operation cleanup has bad flag"
const std::string pid = "PID"
const std::string subtaskExecutionError = "Subtask execution error"
const std::string startCleanupTaskError = "Start cleanup task error"
const std::string emptyFileContent = "Empty file content"
const std::string getCurrentTasksQueueError = "Get current tasks queue error"
const std::string getListAllTasksError = "Get list all tasks error"
const std::string getResourceUsageError = "Get resource usage error"
const std::string taskBusy = "Task is busy"
const std::string targetClientsNotAvailable = "No target node clients available"
const std::string nodeNotSupported = "Node mode not supported"
const std::string nodeHasNotEnoughResources = "Chosen node has not enough resources for usage"
const std::string dataFileIsEmpty = "Read empty data file"
const std::string setEnvironmentError = "Set mandatory environment error"
const std::string dumpResourceMonitorFail = "Dump of resource monitor failed"
const std::string restoreResourceMonitorFail = "Restore of resource monitor failed"
const std::vector< std::pair
< unsigned int, std::string > > 
messages

Enumeration Type Documentation

anonymous enum
Enumerator:
CREATE_DEFAULT_JSON 
SERIALIZATION_OUTPUT_JSON_MESSAGE_ERROR 
EMPTY_COMMAND_LINE 
EXECUTE_COMMAND_FAIL 
UNKNOWN_SESSION_TYPE 
OBJECT_INSTANCE_WAS_NOT_CREATED 
EMPTY_OBJECT_INSTANCE 
SET_HOME_DIR 
ERROR 
ERROR_MSG 
ERROR_CODE 
COMMAND 
CREATE_FILE 
READ_FILE 
DELETE_FILE 
ERROR_READ_DATA_FILE 
ERROR_READ_REQUEST_FILE 
NOT_EXISTS_DATA_FILE 
NOT_EXISTS_REQUEST_FILE 
ERROR_EXECUTE_NOTIFICATION 
BAD_FILE_CONTENT 
SHELL_SCRIPT_NOT_EXIST 
SHELL_SCRIPT_CANNOT_EXECUTE 
WRONG_TYPE_TASK_REQUEST 
WRONG_TYPE_THREAD_MODE 
EXECUTE_SHELL_HOST_COMMAND_FAIL 
SHELL_HOST_COMMAND_RETURN_ERROR 
WRONG_TYPE_REMOTE_EXCUTION 
TASK_CONTINUES_TO_RUN 
WRONG_CHECK_TYPE 
WRONG_FETCH_TYPE 
WRONG_ALGORITHM_TYPE 
BAD_COMMAND_PARAMS 
BAD_TASK_ID 
DATA_NOT_RANGE 
SEARCH_TASK 
CANCEL_TASK 
INVALID_PID_PROCESS 
TASK_NOT_FOUND 
TASK_DATA_NOT_FOUND 
PROCESS_WAS_NOT_STOPPED 
CHANGE_STATE 
TASK_TIME_EXPIRED 
TASK_CANCELED 
EXCEEDED_CPU_LOAD 
EXCEEDED_IOWAIT_LOAD 
PRESENT_LOADING 
EXCEEDED_DISK_SPACE 
USAGE 
FREE 
BYTES 
PERCENTS 
EXCEEDED_RESOURCE_RAM 
EXCEEDED_VIRTUAL_RAM 
EXCEEDED_PROCESSES_COUNT 
EXCEEDED_THREADS_COUNT 
EXCEEDED_USAGE_IOWAIT_LOAD 
EXCEEDED_USAGE_VIRTUAL_RAM 
EXCEEDED_USAGE_RESOURCE_RAM 
EXCEEDED_USAGE_DISK_SPACE 
CLEANUP_BAD_FLAG 
PID 
SUBTASK_EXECUTION_ERROR 
START_CLEANUP_TASK_ERROR 
EMPTY_FILE_CONTENT 
GET_CURRENT_TASKS_QUEUE_ERROR 
GET_LIST_ALL_TASKS_ERROR 
GET_RESOURCE_USAGE_ERROR 
TASK_BUSY 
TARGET_CLIENTS_NOT_AVAILABLE 
NODE_NOT_SUPPORTED 
DATA_FILE_IS_EMPTY 
SET_ENVIRONMENT_ERROR 
DUMP_RESOURCE_MONITOR_FAIL 
RESTORE_RESOURCE_MONITOR_FAIL 

Definition at line 27 of file DRCEMessageConst.hpp.

Variable Documentation

const std::string HCE::drce::message_const::badCommandParams = "Bad command params"

Definition at line 145 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::badFileContent = "Bad file's content"

Definition at line 133 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::badJsonFieldContent = "Bad json format. Bad content of field: "

Definition at line 111 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::badJsonFormat = "Bad json format. Not found field: "

Definition at line 110 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::badTaskId = "Bad task ID"

Definition at line 146 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::bytes = "bytes"

Definition at line 167 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::cancelTask = "Cancel task fail"

Definition at line 149 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::changeState = "Change state"

Definition at line 158 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::cleanupBadFlag = "Operation cleanup has bad flag"

Definition at line 177 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::command = "COMMAND"

Definition at line 124 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::createDefaultJson = "CREATE DefaultJSON"

Definition at line 113 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::createFileFail = "Create file fail"

Definition at line 126 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::dataFileIsEmpty = "Read empty data file"

Definition at line 191 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::dataFileNotExists = "File of data not exists"

Definition at line 131 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::dataNotRange = "Task Id not in range"

Definition at line 147 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::deleteFileFail = "Delete file fail"

Definition at line 128 of file DRCEMessageConst.hpp.

const char HCE::drce::message_const::delimiter = ':'

Definition at line 106 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::dumpResourceMonitorFail = "Dump of resource monitor failed"

Definition at line 193 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::emptyCommandLine = "Empty command line"

Definition at line 115 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::emptyFileContent = "Empty file content"

Definition at line 181 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::emptyObjectInstance = "Empty object instance"

Definition at line 119 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::error = "Error"

Definition at line 121 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::errorCode = "ERROR_CODE"

Definition at line 123 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::errorExecuteNotification = "Error execute notification"

Definition at line 152 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::errorMsg = "ERROR_MSG"

Definition at line 122 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::errorReadDataFile = "Error read data file"

Definition at line 129 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::errorReadRequestFile = "Error read request file"

Definition at line 130 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededCpuLoad = "Exceeded max allowed value of CPU load"

Definition at line 161 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededDiskSpace = "Exceeded min size of disk space"

Definition at line 164 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededIOWaitLoad = "Exceeded max allowed value of iowait load"

Definition at line 162 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededProcessesCount = "Exceeded max number of processes."

Definition at line 171 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededResourceRAM = "Exceeded min size of resource RAM"

Definition at line 169 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededThreadsCount = "Exceeded max number of threads"

Definition at line 172 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededUsageDiskSpace = "Exceeded max allowed value of disk space usage during execution"

Definition at line 176 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededUsageIOWaitLoad = "Exceeded max allowed value of iowait load during execution"

Definition at line 173 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededUsageResourceRAM = "Exceeded max allowed value of resource RAM usage during execution"

Definition at line 175 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededUsageVirtualRAM = "Exceeded max allowed value of virtual RAM usage during execution"

Definition at line 174 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::exceededVirtualRAM = "Exceeded min size of virtual RAM"

Definition at line 170 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::executeCommandFail = "Execute command fail"

Definition at line 116 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::executeShellHostCommandFail = "Execute Shell Host command fail"

Definition at line 139 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::free = "Free"

Definition at line 166 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::getCurrentTasksQueueError = "Get current tasks queue error"

Definition at line 182 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::getListAllTasksError = "Get list all tasks error"

Definition at line 183 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::getResourceUsageError = "Get resource usage error"

Definition at line 184 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::invalidPidProcess = "Invalid pid process"

Definition at line 150 of file DRCEMessageConst.hpp.

const std::vector<std::pair<unsigned int, std::string> > HCE::drce::message_const::messages

Definition at line 197 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::nodeHasNotEnoughResources = "Chosen node has not enough resources for usage"

Definition at line 189 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::nodeNotSupported = "Node mode not supported"

Definition at line 188 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::objectInstanceWasNotCreated = "Object instance was not created"

Definition at line 118 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::percents = "percents"

Definition at line 168 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::pid = "PID"

Definition at line 178 of file DRCEMessageConst.hpp.

const char HCE::drce::message_const::point = '.'

Definition at line 108 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::presentLoading = "Present loading is"

Definition at line 163 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::processWasNotStopped = "Process wasn't stopped"

Definition at line 157 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::readDataFile = "Read data file fail"

Definition at line 151 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::readFileFail = "Read file fail"

Definition at line 127 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::requestFileNotExists = "File of request not exists"

Definition at line 132 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::restoreResourceMonitorFail = "Restore of resource monitor failed"

Definition at line 194 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::searchTask = "Search task fail"

Definition at line 148 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::serializationOutputJsonMessageError = "Serialization error of output json message"

Definition at line 114 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::setEnvironmentError = "Set mandatory environment error"

Definition at line 192 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::setHomeDir = "Set HomeDir"

Definition at line 120 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::shellHostCommandReturnError = "Shell Host command return error"

Definition at line 140 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::shellScriptCannotExecute = "Shell script cannot execute"

Definition at line 135 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::shellScriptNotExist = "Shell script not exist"

Definition at line 134 of file DRCEMessageConst.hpp.

const char HCE::drce::message_const::space = ' '

Definition at line 107 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::startCleanupTaskError = "Start cleanup task error"

Definition at line 180 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::subtaskExecutionError = "Subtask execution error"

Definition at line 179 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::targetClientsNotAvailable = "No target node clients available"

Definition at line 187 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::taskBusy = "Task is busy"

Definition at line 185 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::taskCanceled = "Task canceled"

Definition at line 160 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::taskContinuesToRun = "Task continues to run"

Definition at line 154 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::taskDataNotFound = "Task data not found"

Definition at line 156 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::taskNotFound = "Task not found"

Definition at line 155 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::taskTimeExpired = "Task's time expired"

Definition at line 159 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::unknownSessionType = "Unknown session type"

Definition at line 117 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::usage = "Usage"

Definition at line 165 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::wrongAlgorithmType = "Wrong algorithm type for terminate task request"

Definition at line 144 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::wrongCheckType = "Wrong check type for return status information"

Definition at line 142 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::wrongFetchType = "Wrong fetch type for get data request"

Definition at line 143 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::wrongTypeRemoteExecution = "Wrong type of remote execution"

Definition at line 141 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::wrongTypeTaskRequest = "Wrong type of task request"

Definition at line 137 of file DRCEMessageConst.hpp.

const std::string HCE::drce::message_const::wrongTypeThreadMode = "Wrong type of thread mode"

Definition at line 138 of file DRCEMessageConst.hpp.