HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HCE::sphinx::IndexRebuild Class Reference

#include <SphinxAdminCommand.hpp>

Inheritance diagram for HCE::sphinx::IndexRebuild:
Collaboration diagram for HCE::sphinx::IndexRebuild:

Public Member Functions

 IndexRebuild (SphinxFunctionalObject &fObj)
virtual ~IndexRebuild (void)
bool serialize (std::string &json)
bool unserialize (const std::string &json)
bool execute (void)
void setIndexName (const std::string &indexName_)
std::string getIndexName (void) const
void addBranch (const std::string &branch)
std::vector< std::string > & getBranches (void)
- Public Member Functions inherited from HCE::sphinx::SphinxAdminCommand
 SphinxAdminCommand (SphinxFunctionalObject &fObj_)
virtual ~SphinxAdminCommand (void)
void setResultData (const std::string &resultData_)
std::string getResultData (void) const
- Public Member Functions inherited from HCE::IJsonSerializable
 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
void setErrorMsg (const std::string &errorMsg_)
std::string getErrorMsg (void) const
void setErrorCode (unsigned int errorCode_)
unsigned int getErrorCode (void) const
bool isError (void) const

Protected Types

typedef SphinxAdminCommand inherited
- Protected Types inherited from HCE::sphinx::SphinxAdminCommand
typedef IJsonSerializable inherited

Protected Member Functions

bool makeSource (const std::string &schemaFile, const std::string &branchName, const std::string &sourcePath, const std::string &configPath)
bool makeIndex (const std::string &sourceFile, const std::string &branchName, const std::string &configPath, unsigned long long maxDocId)
- Protected Member Functions inherited from HCE::sphinx::SphinxAdminCommand
bool makeDir (const std::string &path)
bool cleanDir (const std::string &path)
bool isExistDir (const std::string &path)
bool isExistFile (const std::string &file)
bool isAllowedString (const std::string &str)
bool copyFile (const std::string &srcFile, const std::string &dstFile)
bool moveFile (const std::string &srcFile, const std::string &dstFile)
bool removeFile (const std::string &file)
bool moveIndexFiles (const std::string &indexFileName, const std::string &srcPath, const std::string &dstPath)
bool copyIndexFiles (const std::string &indexFileName, const std::string &srcPath, const std::string &dstPath)
bool removeIndexFile (const std::string &indexFileName, const std::string &path)
bool getFileList (const std::string &path, std::vector< std::string > &vFiles, const std::string &ext)
bool getIndexList (const std::string &path, std::vector< std::string > &vIndexes)
bool getFreeAllowedPort (unsigned int &res)
bool makeTrunkConfig (const std::string &trunkName, const std::string &indexName, const std::string &indexFileName, SphinxConfigOptions &configOptions)
bool isExistError (const std::string &shellExecMsg)
std::string getPropertyFileName (const std::string &indexPath, const std::string &branchName)
std::string getConfigFileName (const std::string &indexPath, const std::string &branchName)
void writePropertyOptions (SphinxConfigCreator &configCreator, const SphinxConfigOptions &configOptions)
- Protected Member Functions inherited from HCE::IJsonSerializable
template<class T = unsigned long long>
convertVarToNumeric (Poco::Dynamic::Var &var, T defaultValue)

Protected Attributes

std::string indexName
std::vector< std::string > branches
- Protected Attributes inherited from HCE::sphinx::SphinxAdminCommand
SphinxFunctionalObjectfObj
std::string resultData
CustomMessagemessage
- Protected Attributes inherited from HCE::IJsonSerializable
std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 196 of file SphinxAdminCommand.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

HCE::sphinx::IndexRebuild::IndexRebuild ( SphinxFunctionalObject fObj)
explicit

Definition at line 1091 of file SphinxAdminCommand.cpp.

virtual HCE::sphinx::IndexRebuild::~IndexRebuild ( void  )
inlinevirtual

Definition at line 203 of file SphinxAdminCommand.hpp.

Member Function Documentation

void HCE::sphinx::IndexRebuild::addBranch ( const std::string &  branch)
inline

Definition at line 212 of file SphinxAdminCommand.hpp.

Here is the caller graph for this function:

bool HCE::sphinx::IndexRebuild::execute ( void  )
virtual

Implements HCE::sphinx::SphinxAdminCommand.

Reimplemented in HCE::sphinx::IndexBranchesStatus, HCE::sphinx::IndexBranchesInfo, HCE::sphinx::IndexPackDocData, HCE::sphinx::IndexDeleteDataFile, HCE::sphinx::IndexMergeTrunk, and HCE::sphinx::IndexMerge.

Definition at line 1297 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector<std::string>& HCE::sphinx::IndexRebuild::getBranches ( void  )
inline

Definition at line 213 of file SphinxAdminCommand.hpp.

std::string HCE::sphinx::IndexRebuild::getIndexName ( void  ) const
inline

Definition at line 210 of file SphinxAdminCommand.hpp.

bool HCE::sphinx::IndexRebuild::makeIndex ( const std::string &  sourceFile,
const std::string &  branchName,
const std::string &  configPath,
unsigned long long  maxDocId 
)
protected

Definition at line 1218 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::IndexRebuild::makeSource ( const std::string &  schemaFile,
const std::string &  branchName,
const std::string &  sourcePath,
const std::string &  configPath 
)
protected

Definition at line 1174 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::IndexRebuild::serialize ( std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 1096 of file SphinxAdminCommand.cpp.

void HCE::sphinx::IndexRebuild::setIndexName ( const std::string &  indexName_)
inline

Definition at line 209 of file SphinxAdminCommand.hpp.

Here is the caller graph for this function:

bool HCE::sphinx::IndexRebuild::unserialize ( const std::string &  json)
virtual

Implements HCE::IJsonSerializable.

Definition at line 1125 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Member Data Documentation

std::vector<std::string> HCE::sphinx::IndexRebuild::branches
protected

Definition at line 217 of file SphinxAdminCommand.hpp.

std::string HCE::sphinx::IndexRebuild::indexName
protected

Definition at line 216 of file SphinxAdminCommand.hpp.


The documentation for this class was generated from the following files: