hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEMessageConst.hpp File Reference
#include <vector>
#include <string>
Include dependency graph for DRCEMessageConst.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  HCE
 < HCE::ServerApplication provides global variable 'HCE::database::Session' which initializes in function 'HCE::ServerApplication::initializeDataBaseSession()'
namespace  HCE::drce
namespace  HCE::drce::message_const
namespace  HCE::drce::drce_const

Enumerations

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

Variables

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

Detailed Description

Implementation list custom messages of a Distributed Remote Command Execution functional object in HCE cluster node.

Author
Alexander Vybornyh alexa.nosp@m.nder.nosp@m..hce..nosp@m.clus.nosp@m.ter@g.nosp@m.mail.nosp@m..com Copyright © 2013 IOIX Ukraine http://hierarchical-cluster-engine.com/license/

Definition in file DRCEMessageConst.hpp.