ddc
Functions | Variables
Corpora.cpp File Reference
#include "../ConcordDmnLib/Corpora.h"
#include "../ConcordDmnLib/LeafServer.h"
#include "../ConcordDmnLib/BranchServer.h"
Include dependency graph for Corpora.cpp:

Functions

bool CheckDaemonAlive ()
 
void LoadLocalCorpora (string ConfigFile, const CDDCServerOptions &Options)
 
static bool isServerLabel (const string &CorpusName)
 
void LoadDDCServer (string ServerConfigFile, const CDDCServerOptions &Options)
 
void UnloadLocalCorporaAndServer ()
 
void ShutdownDDCServer ()
 
void ShutdownLocalCorpora ()
 

Variables

vector< CDDCLeafServerLocalCorpora
 
CDDCBranchServerRootServer = NULL
 
map< string, CDDCBranchServer * > BServers
 
pthread_mutex_t UnloadMutex = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

◆ CheckDaemonAlive()

bool CheckDaemonAlive ( )

References BServers, CHost::IsListening(), and LocalCorpora.

Referenced by do_start().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadLocalCorpora()

void LoadLocalCorpora ( string  ConfigFile,
const CDDCServerOptions Options 
)

◆ isServerLabel()

static bool isServerLabel ( const string &  CorpusName)
inlinestatic

Referenced by LoadDDCServer().

Here is the caller graph for this function:

◆ LoadDDCServer()

void LoadDDCServer ( string  ServerConfigFile,
const CDDCServerOptions Options 
)

◆ UnloadLocalCorporaAndServer()

void UnloadLocalCorporaAndServer ( )

References BServers, LocalCorpora, RootServer, and UnloadMutex.

Referenced by UnloadData().

Here is the caller graph for this function:

◆ ShutdownDDCServer()

void ShutdownDDCServer ( )

References CDDCBranchServer::Shutdown(), and UnloadMutex.

Referenced by ShutdownServerSockets().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ShutdownLocalCorpora()

void ShutdownLocalCorpora ( )

References LocalCorpora, and UnloadMutex.

Referenced by ShutdownServerSockets().

Here is the caller graph for this function:

Variable Documentation

◆ LocalCorpora

vector<CDDCLeafServer> LocalCorpora

◆ RootServer

CDDCBranchServer* RootServer = NULL

◆ BServers

map<string,CDDCBranchServer*> BServers

◆ UnloadMutex

pthread_mutex_t UnloadMutex = PTHREAD_MUTEX_INITIALIZER