hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SphinxManageTest.hpp
Go to the documentation of this file.
1 #ifndef SPHINX_MANAGE_TEST_HPP
2 #define SPHINX_MANAGE_TEST_HPP
3 
4 #include <vector>
5 #include <iostream>
7 
8 namespace HCE
9 {
10 namespace sphinx
11 {
12 namespace tests
13 {
14 //-----------------------------------------------------------------------------
16 {
17 public:
18  static void testIndexCreate(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
19  static void testIndexCheck(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, bool existed);
20  static void testIndexStoreDataFile(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, const std::string& branchName);
21  static void testIndexStoreDataFile(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, const std::string& branchName, const std::string& dataContent);
22  static void testIndexStoreSchemaFile(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
23  static void testIndexStoreSchemaFile(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, const std::string& dataContent);
24  static void testIndexRebuild(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<std::string>& branches);
25  static void testIndexSetDataDir(HCE::sphinx::SphinxFunctionalObject& fObj); //TODO reserved
26  static void testIndexStart(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
27  static void testIndexStop(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
28  static void testIndexMerge(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<std::string>& branches);
29  static void testIndexMergeTrunk(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<std::string>& branches);
30  static void testIndexDeleteDataFile(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<std::string>& branches);
31  static void testIndexDeleteSchemaFile(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
32  static void testIndexAppendDataFile(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, const std::string& branchName);
33  static void testIndexDeleteDoc(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<unsigned long long>& ids);
34  static void testIndexDeleteDocNumber(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
35  static void testIndexPackDocData(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<std::string>& branches);
36  static void testIndexRemove(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
37  static void testIndexCopy(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexFromName, const std::string& indexToName);
38  static void testIndexRename(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexFromName, const std::string& indexToName);
39  static void testIndexSetConfigVar(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, const std::string& branchName, const std::string& sectionName,
40  const std::string& parameterName, const std::string& parameterValue);
41  static void testIndexGetConfigVar(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, const std::string& branchName, const std::string& sectionName,
42  const std::string& parameterName, std::string& parameterValue);
43  static void testIndexCheckSchema(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
44  static void testIndexStatusSearchd(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
45  static void testIndexStatus(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
46  static unsigned long long testIndexMaxDocId(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
47  static void testIndexMaxDocIdExtended(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
48  static void testIndexDataList(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
49  static void testIndexBranchesList(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
50  static void testIndexBranchesInfo(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<std::string>& branches);
51  static void testIndexBranchesStatus(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName, std::vector<std::string>& branches);
52  static void testIndexConnect(HCE::sphinx::SphinxFunctionalObject& fObj, const std::string& indexName);
54 };
55 //-----------------------------------------------------------------------------
56 //-----------------------------------------------------------------------------
57 } // end namespace tests
58 } // end namespace sphinx
59 } // end namespace HCE
60 
61 #endif // SPHINX_MANAGE_TEST_HPP