CDDCServerListenHost::CDDCServerListenHost | ( | bool | bDoubleMessage, | |
ProtocolDensityEnum | pdProtocolDensity | |||
) |
References CHost::m_LogFunction, m_pReloadedCorpusHolder, and m_ReloadCorpusNo.
CDDCServerListenHost::~CDDCServerListenHost | ( | ) | [virtual] |
string CDDCServerListenHost::ProcessSocketString | ( | const string & | S, | |
int | rConnectedSocket | |||
) | [virtual] |
Reimplemented from CHost.
References concord_daemon_log(), CConcHolder::DDC_ResultJson, Format(), GetParadigm(), CConcHolder::GetResultFormatByString(), Lemmatize(), CHost::m_CorporaName, ReloadCorpusProcessSignal(), ReplaceHolderIfNeeded(), RunDistributed(), and Trim().
void CDDCServerListenHost::GetFirstHitsFromCorpora | ( | const DwordVector & | PossibleHosts, | |
const string | Query, | |||
const DWORD | ResultLimit, | |||
const int | TimeOut, | |||
CFirstHitsQueryResult & | Result | |||
) |
References concord_daemon_log(), CHost::CreateAndConnectSocket(), CriticalTokenLength, ErrorMessage(), Format(), CHost::GetAddressStr(), CDDCServerListenHost::CFirstHitsQueryResult::m_AllHitsCount, CDDCServerListenHost::CFirstHitsQueryResult::m_AllRelevantDocsCount, CDDCServerListenHost::CFirstHitsQueryResult::m_bSort, CHitToSort::m_HitNo, CDDCServerListenHost::CFirstHitsQueryResult::m_Hits, CDDCServerListenHost::CFirstHitsQueryResult::m_HitsDistributionStr, CHitToSort::m_HostNo, m_Hosts, CDDCServerListenHost::CFirstHitsQueryResult::m_InternalError, CDDCServerListenHost::CFirstHitsQueryResult::m_NetworkError, CHitToSort::m_OrderId, CHitToSort::m_OrderStrId, CDDCServerListenHost::CFirstHitsQueryResult::m_RelevantDocsDistributionStr, CDDCServerListenHost::CFirstHitsQueryResult::m_Sockets, neSuccess, RecieveString(), and SendString().
Referenced by RunDistributed().
NetworkErrorsEnum CDDCServerListenHost::GetHitStringsFromOneCorpora | ( | CHost & | Host, | |
const string & | ResultType, | |||
DWORD | StartHitNo, | |||
DWORD | ResultLimit, | |||
int | TimeOut, | |||
int & | CorpusSocket, | |||
int & | InternalError, | |||
string & | Result | |||
) |
References CloseSocket(), concord_daemon_log(), ErrorMessage(), Format(), CHost::GetAddressStr(), neSuccess, RecieveString(), and SendString().
Referenced by RunDistributed().
NetworkErrorsEnum CDDCServerListenHost::RunDistributed | ( | string | Query, | |
const string & | ResultType, | |||
DWORD | StartHitNo, | |||
DWORD | ResultLimit, | |||
int & | iInternalError, | |||
DWORD & | EndHitNo, | |||
DWORD & | HitsCount, | |||
int | TimeOut, | |||
string & | ResultString, | |||
DWORD & | RelevantDocsCount | |||
) |
References AdditionalHitDelimeter, CDDCServerListenHost::CFirstHitsQueryResult::CloseSockets(), CConcHolder::DDC_ResultText, CConcHolder::DecorateQueryResults(), GetFirstHitsFromCorpora(), GetHitStringsFromOneCorpora(), CConcHolder::GetResultFormatByString(), CDDCServerListenHost::CFirstHitsQueryResult::HasErrors(), CDDCServerListenHost::CFirstHitsQueryResult::m_AllHitsCount, CDDCServerListenHost::CFirstHitsQueryResult::m_AllRelevantDocsCount, CDDCServerListenHost::CFirstHitsQueryResult::m_bSort, CDDCServerListenHost::CFirstHitsQueryResult::m_Hits, CDDCServerListenHost::CFirstHitsQueryResult::m_HitsDistributionStr, m_Hosts, CDDCServerListenHost::CFirstHitsQueryResult::m_InternalError, CDDCServerListenHost::CFirstHitsQueryResult::m_NetworkError, CDDCServerListenHost::CFirstHitsQueryResult::m_RelevantDocsDistributionStr, CDDCServerListenHost::CFirstHitsQueryResult::m_Sockets, and ReadPossibleHosts().
Referenced by ProcessSocketString().
bool CDDCServerListenHost::ReadPossibleHosts | ( | const string & | InputQuery, | |
string & | CleanQuery, | |||
DwordVector & | PossibleHosts | |||
) | const |
References is_english_alpha(), CHost::m_CorporaName, m_Hosts, and Trim().
Referenced by RunDistributed().
string CDDCServerListenHost::ReloadCorpusProcessSignal | ( | const string & | Query | ) |
References concord_daemon_log(), Format(), LocalCorpora, CHost::m_CorporaName, m_pReloadedCorpusHolder, m_ReloadCorpusNo, and ReloadCorpus().
Referenced by ProcessSocketString().
void CDDCServerListenHost::ReplaceHolderIfNeeded | ( | ) |
References concord_daemon_log(), Format(), LocalCorpora, CHost::m_CorporaName, m_pReloadedCorpusHolder, and m_ReloadCorpusNo.
Referenced by ProcessSocketString().
map<string, CQueryStatistics> CDDCServerListenHost::m_QueryToStatis |
vector<CHost> CDDCServerListenHost::m_Hosts |
Referenced by GetFirstHitsFromCorpora(), LoadDDCServer(), ReadPossibleHosts(), and RunDistributed().
Referenced by CDDCServerListenHost(), ReloadCorpus(), ReloadCorpusProcessSignal(), and ReplaceHolderIfNeeded().
Referenced by CDDCServerListenHost(), ReloadCorpus(), ReloadCorpusProcessSignal(), and ReplaceHolderIfNeeded().