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::SphinxAdminCommand Class Reference

#include <SphinxAdminCommand.hpp>

Inheritance diagram for HCE::sphinx::SphinxAdminCommand:
Collaboration diagram for HCE::sphinx::SphinxAdminCommand:

Public Member Functions

 SphinxAdminCommand (SphinxFunctionalObject &fObj_)
virtual ~SphinxAdminCommand (void)
void setResultData (const std::string &resultData_)
std::string getResultData (void) const
virtual bool execute (void)=0
- Public Member Functions inherited from HCE::IJsonSerializable
 IJsonSerializable (void)
virtual ~IJsonSerializable (void)
virtual bool serialize (std::string &json)=0
virtual bool unserialize (const std::string &json)=0
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 IJsonSerializable inherited

Protected Member Functions

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

SphinxFunctionalObjectfObj
std::string resultData
CustomMessagemessage
- Protected Attributes inherited from HCE::IJsonSerializable
std::string errorMsg
unsigned int errorCode
bool _isError

Detailed Description

Definition at line 63 of file SphinxAdminCommand.hpp.

Member Typedef Documentation

Constructor & Destructor Documentation

HCE::sphinx::SphinxAdminCommand::SphinxAdminCommand ( SphinxFunctionalObject fObj_)
explicit

Definition at line 35 of file SphinxAdminCommand.cpp.

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

Definition at line 67 of file SphinxAdminCommand.hpp.

Member Function Documentation

bool HCE::sphinx::SphinxAdminCommand::cleanDir ( const std::string &  path)
protected

Definition at line 64 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::copyFile ( const std::string &  srcFile,
const std::string &  dstFile 
)
protected

Definition at line 131 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::copyIndexFiles ( const std::string &  indexFileName,
const std::string &  srcPath,
const std::string &  dstPath 
)
protected

Definition at line 236 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxAdminCommand::getConfigFileName ( const std::string &  indexPath,
const std::string &  branchName 
)
protected

Definition at line 545 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::getFileList ( const std::string &  path,
std::vector< std::string > &  vFiles,
const std::string &  ext 
)
protected

Definition at line 320 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::getFreeAllowedPort ( unsigned int &  res)
protected

Definition at line 401 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::getIndexList ( const std::string &  path,
std::vector< std::string > &  vIndexes 
)
protected

Definition at line 357 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxAdminCommand::getPropertyFileName ( const std::string &  indexPath,
const std::string &  branchName 
)
protected

Definition at line 540 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

std::string HCE::sphinx::SphinxAdminCommand::getResultData ( void  ) const
inline

Definition at line 70 of file SphinxAdminCommand.hpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::isAllowedString ( const std::string &  str)
protected

Definition at line 126 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::isExistDir ( const std::string &  path)
protected

Definition at line 99 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::isExistError ( const std::string &  shellExecMsg)
protected

Definition at line 534 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::isExistFile ( const std::string &  file)
protected

Definition at line 121 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::makeDir ( const std::string &  path)
protected

Definition at line 40 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::makeTrunkConfig ( const std::string &  trunkName,
const std::string &  indexName,
const std::string &  indexFileName,
SphinxConfigOptions configOptions 
)
protected

Definition at line 471 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::moveFile ( const std::string &  srcFile,
const std::string &  dstFile 
)
protected

Definition at line 160 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::moveIndexFiles ( const std::string &  indexFileName,
const std::string &  srcPath,
const std::string &  dstPath 
)
protected

Definition at line 202 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::removeFile ( const std::string &  file)
protected

Definition at line 189 of file SphinxAdminCommand.cpp.

Here is the caller graph for this function:

bool HCE::sphinx::SphinxAdminCommand::removeIndexFile ( const std::string &  indexFileName,
const std::string &  path 
)
protected

Definition at line 270 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::sphinx::SphinxAdminCommand::setResultData ( const std::string &  resultData_)
inline

Definition at line 69 of file SphinxAdminCommand.hpp.

void HCE::sphinx::SphinxAdminCommand::writePropertyOptions ( SphinxConfigCreator configCreator,
const SphinxConfigOptions configOptions 
)
protected

Definition at line 550 of file SphinxAdminCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

SphinxFunctionalObject& HCE::sphinx::SphinxAdminCommand::fObj
protected

Definition at line 98 of file SphinxAdminCommand.hpp.

CustomMessage& HCE::sphinx::SphinxAdminCommand::message
protected

Definition at line 101 of file SphinxAdminCommand.hpp.

std::string HCE::sphinx::SphinxAdminCommand::resultData
protected

Definition at line 99 of file SphinxAdminCommand.hpp.


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