hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxMessageConst.hpp
Go to the documentation of this file.
1 
14 #ifndef SPHINX_MESSAGE_CONST_HPP
15 #define SPHINX_MESSAGE_CONST_HPP
16 
17 namespace HCE
18 {
19 namespace sphinx
20 {
21 namespace message_const
22 {
23 //-----------------------------------------------------------------------------
24  enum
25  {
148  };
149 
150  const char delimiter = ':';
151  const char space = ' ';
152  const char point = '.';
153 
154  const std::string loadConfigSuccess = "LOAD CONFIG SUCCESS";
155  const std::string host = "HOST";
156  const std::string port = "PORT";
157  const std::string index = "INDEX";
158  const std::string fileNotFound = "File not found";
159  const std::string fileNotOpen = "File not open";
160  const std::string searchdMaxMatches = "SEARCHD MAX MATCHES";
161  const std::string schemaNamesSize = "SCHEMA NAMES SIZE";
162  const std::string attributesCount = "ATTRIBUTES COUNT";
163  const std::string emptyListOfindexFiles = "Empty list of index files";
164  const std::string loadConfigFail = "LOAD CONFIG FAIL";
165  const std::string emptyResultData = "Empty result data";
166  const std::string incorrectJSONType = "Incorrect JSON type";
167  const std::string errorMessage = "Error";
168  const std::string errorMsg = "ErrorMsg";
169  const std::string errorCode = "ErrorCode";
170  const std::string serializeOutputJsonMessage = "Serialize OutputJsonMessage";
171  const std::string generateDefaultJSON = "Generate default JSON";
172  const std::string tryMakeIndexCommand = "TRY MAKE INDEX COMMAND";
173  const std::string documentContentIsEmpty = "Document content is empty";
174  const std::string indexName = "INDEX NAME";
175  const std::string makeIndexCommandSuccess = "!!! MAKE INDEX COMMAND SUCCESS !!!";
176  const std::string tryMakeAdminCommand = "TRY MAKE ADMIN COMMAND";
177  const std::string receivedEmptyCommandString = "Received empty command string";
178  const std::string unknownCommand = "Unknown command";
179  const std::string makeAdminCommandSuccess = "!!! MAKE ADMIN COMMAND SUCCESS !!!";
180  const std::string failedToCreateClient = "Failed to create client";
181  const std::string startSearchdReadConfig = "startSearchd read config";
182  const std::string waitStartSearchd = "!!! WAIT START SEARCHD !!!";
183  const std::string startSearchdFail = "Start searchd fail";
184  const std::string tryEasyStart = "TRY EASY START";
185  const std::string waitStopSearchd = "!!! WAIT STOP SEARCHD !!!";
186  const std::string stopSearchd = "STOP SEARCHD";
187  const std::string invalidClientHandle = "Invalid client handle";
188  const std::string invalidFilter = "Invalid filter";
189  const std::string addFilter = "Add filter";
190  const std::string invalidRangeOfFilter = "Invalid range of filter";
191  const std::string unknownFilterType = "Unknown filter type";
192  const std::string serverHostIsEmpty = "Server host is empty";
193  const std::string serverPortIsNull = "Server port is null";
194  const std::string setServerSuccess = "!!! SET SERVER SUCCESS !!!";
195  const std::string openConnectionError = "Open connection error";
196  const std::string easyStartSuccess = "!!! EASY START SUCCESS !!!";
197  const std::string easyStartFallen = "!!! EASY START FALLEN !!!";
198  const std::string fieldAlreadyExist = "Field already exist";
199  const std::string fieldNotFound = "Field not found";
200  const std::string indexAlreadyExist = "Index already exist";
201  const std::string indexNotFound = "Index not found";
202  const std::string indexNotExist = "Index not exist";
203  const std::string notFoundInConfig = "NOT FOUND IN CONFIG";
204  const std::string listOfIndexesIsEmpty = "List of indexes is empty, check initialization";
205  const std::string searchdError = "SEARCHD ERROR";
206  const std::string searchdWarning = "SEARCHD WARNING";
207  const std::string searchdStoppedPidFileExist = "Searchd stopped. Pid file exist = ";
208  const std::string searchdStoppedButPidFileExist = "Searchd stoped but pid file exist";
209  const std::string searchdNotActivity = "Searchd not activity";
210  const std::string fieldNotFoundInCurrentSchema = "Field not found in current schema";
211  const std::string gettingParametersFail = "Getting parameters fail";
212  const std::string errorCleanDir = "ERROR CLEAN DIR";
213  const std::string foundIndexFile = "FOUND INDEX FILE";
214  const std::string removeIndexFile = "REMOVE INDEX FILE";
215  const std::string removeFileFail = "Remove file fail";
216  const std::string openDirFail = "Open dir fail";
217  const std::string errorGetFileList = "ERROR GET FILE LIST";
218  const std::string errorGetIndexList = "ERROR GET INDEX LIST";
219  const std::string emptyDataDir = "Empty data dir";
220  const std::string tryOpenFileFail = "Try open file fail";
221  const std::string tryUseAsDirectoryWasCanceled = "Try use as directory was canceled...";
222  const std::string closeDirFail = "Close dir fail";
223  const std::string foundFreeAllowedPort = "FOUND FREE ALLOWED PORT";
224  const std::string errorGetFreeAllowedPort = "ERROR GET FREE ALLOWED PORT";
225  const std::string errorMakeConfig = "ERROR MAKE CONFIG";
226  const std::string makeDirFail = "Make dir fail";
227  const std::string dontCreatedDir = "Don't created directory";
228  const std::string folderNotExist = "Forder not exist";
229  const std::string fileNotExist = "File not exist";
230  const std::string invalidDataContent = "Invalid data content";
231  const std::string invalidSchemaContent = "Invalid schema content";
232  const std::string commandLine = "COMMAND LINE";
233  const std::string indexationFail = "Indexation fail";
234  const std::string badBranchName = "Bad branch name";
235  const std::string makeSourceFail = "Make source fail";
236  const std::string makeSource = "MAKE SOURCE";
237  const std::string makeIndex = "MAKE INDEX";
238  const std::string receivedEmptyListOfBranches = "Received empty list of branches";
239  const std::string emptyListOfFilesData = "Empty list of files data";
240  const std::string isRunSearchd = "isRunSearchd => ";
241  const std::string stoppedSearchd = "STOPPED SEARCHD => ";
242  const std::string indexNotStarted = "Index not started";
243  const std::string sectionNameNotValid = "Section name not valid";
244  const std::string mergeBranchesFail = "Merge branches fail";
245  const std::string errorMakeMerge = "ERROR MAKE MERGE";
246  const std::string emptyListOfExistingIndexes = "Empty list of existing indexes";
247  const std::string errorMakeTrunkIndex = "ERROR MAKE TRUNK INDEX";
248  const std::string receivedEmptyIndexName = "Received empty index name";
249  const std::string callRemoveIndexFile = "Call removeIndexFile";
250  const std::string emptyIndexesList = "Empty indexes list";
251  const std::string prepareMerge = "Prepare merge. Make";
252  const std::string isMadeTrunk = "isMadeTrunk => ";
253  const std::string isActiveSearchd = "IS ACTIVE SEARCHD => ";
254  const std::string indexFileName = "Index file name";
255  const std::string moveFileFail = "Move file fail";
256  const std::string makeConfigFail = "Make config fail";
257  const std::string indexMergeFail = "Index merge fail";
258  const std::string dataFilesAlreadyDeleted = "Data files already deleted";
259  const std::string emptyAppendDocumentList = "Empty append document list";
260  const std::string errorPackData = "ERROR PACK DATA";
261  const std::string errorGettingDocumentCount = "ERROR GETTING DOCUMENT COUNT";
262  const std::string emptyBranchesList = "Empty branches list";
263  const std::string badDocumentId = "Bad document ID";
264  const std::string removeDirFail = "Remove dir fail";
265  const std::string indexCopyFail = "Index copy fail";
266  const std::string getStatusSearchdFail = "Get status searchd fail";
267  const std::string getIndexStatusFail = "Get index status fail";
268  const std::string searchMsxDocsIDFail = "Search MaxDocsID fail";
269  const std::string loadSourceFileFail = "Load source file fail";
270  const std::string errorMakeBranchConfig = "ERROR MAKE BRANCH CONFIG";
271  const std::string currentIndexNameIsEmpty = "Current index name is empty";
272  const std::string attribute = "Attribute";
273  const std::string haveInvalidArgument = "have invalid argument";
274  const std::string badXmlSource = "Bad xml source";
275  const std::string valueIsEmpty = "value is empty";
276  const std::string cannotBeConvertToUnsignedLongLong = "cannot be convert to unsigned long long";
277  const std::string haveEmptyAttributeList = "have empty attribute list";
278 
279  const std::string targetClientsNotAvailable = "No target node clients available";
280  const std::string nodeNotSupported = "Node mode not supported";
281  const std::string nodeHasNotEnoughResources = "Chosen node has not enough resources for usage";
282 
283  const std::string serializationOutputJsonMessageError = "Serialization error of output json message";
284 
285  const std::vector<std::pair<unsigned int, std::string> > messages =
286  {
288  { HOST, host },
289  { PORT, port },
290  { INDEX, index },
300  { ERROR, errorMessage },
301  { ERROR_MSG, errorMsg },
302  { ERROR_CODE, errorCode },
307  { INDEX_NAME, indexName },
322  { ADD_FILTER, addFilter },
369  { MAKE_SOURCE, makeSource },
370  { MAKE_INDEX, makeIndex },
409  };
410 //-----------------------------------------------------------------------------
411 //-----------------------------------------------------------------------------
412 } // namespace message_const
413 } // namespace sphinx
414 } // namespace HCE
415 
416 #endif // SPHINX_MESSAGE_CONST_HPP