A platform for high-performance distributed tool and library development written in C++. It can be deployed in two different cluster modes: standalone or distributed. API for v0.5.0, released on June 13, 2018.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
pdb::CatalogClient Class Reference

#include <CatalogClient.h>

+ Inheritance diagram for pdb::CatalogClient:
+ Collaboration diagram for pdb::CatalogClient:

Public Member Functions

 ~CatalogClient ()
 
 CatalogClient ()
 
 CatalogClient (int port, std::string address, PDBLoggerPtr myLogger)
 
 CatalogClient (int port, std::string address, PDBLoggerPtr myLogger, bool pointsToCatalogManagerIn)
 
virtual void registerHandlers (PDBServer &forMe) override
 
int16_t searchForObjectTypeName (std::string objectTypeName)
 
bool getSharedLibrary (int16_t identifier, std::string sharedLibraryFileName)
 
bool getSharedLibraryByTypeName (int16_t identifier, std::string &typeName, std::string sharedLibraryFileName, Handle< CatalogUserTypeMetadata > &typeMetadata, string &sharedLibraryBytes, std::string &errMsg)
 
bool registerType (std::string fileContainingSharedLib, std::string &errMsg)
 
bool shutDownServer (std::string &errMsg)
 
std::string getObjectType (std::string databaseName, std::string setName, std::string &errMsg)
 
bool createDatabase (std::string databaseName, std::string &errMsg)
 
bool registerDatabaseMetadata (std::string databaseName, std::string &errMsg)
 
bool registerNodeMetadata (pdb::Handle< pdb::CatalogNodeMetadata > nodeData, std::string &errMsg)
 
template<class Type >
bool registerGenericMetadata (pdb::Handle< Type > metadataItem, std::string &errMsg)
 
template<class Type >
bool deleteGenericMetadata (pdb::Handle< Type > metadataItem, std::string &errMsg)
 
template<class DataType >
bool createSet (std::string databaseName, std::string setName, std::string &errMsg)
 
bool createSet (int16_t identifier, std::string databaseName, std::string setName, std::string &errMsg)
 
bool deleteDatabase (std::string databaseName, std::string &errMsg)
 
bool deleteSet (std::string databaseName, std::string setName, std::string &errMsg)
 
bool addNodeToSet (std::string nodeIP, std::string databaseName, std::string setName, std::string &errMsg)
 
bool addNodeToDB (std::string nodeIP, std::string databaseName, std::string &errMsg)
 
bool removeNodeFromSet (std::string nodeIP, std::string databaseName, std::string setName, std::string &errMsg)
 
bool removeNodeFromDB (std::string nodeIP, std::string databaseName, std::string &errMsg)
 
string printCatalogMetadata (pdb::Handle< pdb::CatalogPrintMetadata > itemToSearch, std::string &errMsg)
 
string printCatalogMetadata (std::string &categoryToPrint, std::string &errMsg)
 
bool getPointsToManagerCatalog ()
 
void setPointsToManagerCatalog (bool pointsToManager)
 
bool closeCatalogSQLite (std::string &errMsg)
 
string listAllRegisteredMetadata (std::string &errMsg)
 
string listRegisteredDatabases (std::string &errMsg)
 
string listRegisteredSetsForADatabase (std::string databaseName, std::string &errMsg)
 
string listNodesInCluster (std::string &errMsg)
 
string listUserDefinedTypes (std::string &errMsg)
 
- Public Member Functions inherited from pdb::ServerFunctionality
virtual void cleanup ()
 
template<class Functionality >
Functionality & getFunctionality ()
 
void recordServer (PDBServer &recordMe)
 
PDBWorkerPtr getWorker ()
 
PDBLoggerPtr getLogger ()
 

Private Attributes

bool pointsToCatalogManager
 
std::string address
 
int port
 
PDBLoggerPtr myLogger
 
pthread_mutex_t workingMutex
 

Detailed Description

Definition at line 33 of file CatalogClient.h.

Constructor & Destructor Documentation

pdb::CatalogClient::~CatalogClient ( )

Definition at line 84 of file CatalogClient.cc.

+ Here is the call graph for this function:

pdb::CatalogClient::CatalogClient ( )

Definition at line 62 of file CatalogClient.cc.

+ Here is the caller graph for this function:

pdb::CatalogClient::CatalogClient ( int  port,
std::string  address,
PDBLoggerPtr  myLogger 
)

Definition at line 65 of file CatalogClient.cc.

+ Here is the call graph for this function:

pdb::CatalogClient::CatalogClient ( int  port,
std::string  address,
PDBLoggerPtr  myLogger,
bool  pointsToCatalogManagerIn 
)

Definition at line 54 of file CatalogClient.cc.

+ Here is the call graph for this function:

Member Function Documentation

bool pdb::CatalogClient::addNodeToDB ( std::string  nodeIP,
std::string  databaseName,
std::string &  errMsg 
)

Definition at line 444 of file CatalogClient.cc.

bool pdb::CatalogClient::addNodeToSet ( std::string  nodeIP,
std::string  databaseName,
std::string  setName,
std::string &  errMsg 
)

Definition at line 422 of file CatalogClient.cc.

bool pdb::CatalogClient::closeCatalogSQLite ( std::string &  errMsg)

Definition at line 636 of file CatalogClient.cc.

bool pdb::CatalogClient::createDatabase ( std::string  databaseName,
std::string &  errMsg 
)

Definition at line 354 of file CatalogClient.cc.

+ Here is the caller graph for this function:

template<class DataType >
bool pdb::CatalogClient::createSet ( std::string  databaseName,
std::string  setName,
std::string &  errMsg 
)

Definition at line 30 of file CatalogClientTemplates.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool pdb::CatalogClient::createSet ( int16_t  identifier,
std::string  databaseName,
std::string  setName,
std::string &  errMsg 
)

Definition at line 328 of file CatalogClient.cc.

bool pdb::CatalogClient::deleteDatabase ( std::string  databaseName,
std::string &  errMsg 
)

Definition at line 399 of file CatalogClient.cc.

template<class Type >
template bool pdb::CatalogClient::deleteGenericMetadata ( pdb::Handle< Type >  metadataItem,
std::string &  errMsg 
)

Definition at line 683 of file CatalogClient.cc.

+ Here is the caller graph for this function:

bool pdb::CatalogClient::deleteSet ( std::string  databaseName,
std::string  setName,
std::string &  errMsg 
)

Definition at line 377 of file CatalogClient.cc.

std::string pdb::CatalogClient::getObjectType ( std::string  databaseName,
std::string  setName,
std::string &  errMsg 
)

Definition at line 305 of file CatalogClient.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool pdb::CatalogClient::getPointsToManagerCatalog ( )

Definition at line 176 of file CatalogClient.cc.

bool pdb::CatalogClient::getSharedLibrary ( int16_t  identifier,
std::string  sharedLibraryFileName 
)

Definition at line 206 of file CatalogClient.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool pdb::CatalogClient::getSharedLibraryByTypeName ( int16_t  identifier,
std::string &  typeName,
std::string  sharedLibraryFileName,
Handle< CatalogUserTypeMetadata > &  typeMetadata,
string &  sharedLibraryBytes,
std::string &  errMsg 
)

Definition at line 229 of file CatalogClient.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

string pdb::CatalogClient::listAllRegisteredMetadata ( std::string &  errMsg)

Definition at line 629 of file CatalogClient.cc.

+ Here is the call graph for this function:

string pdb::CatalogClient::listNodesInCluster ( std::string &  errMsg)

Definition at line 617 of file CatalogClient.cc.

+ Here is the call graph for this function:

string pdb::CatalogClient::listRegisteredDatabases ( std::string &  errMsg)

Definition at line 604 of file CatalogClient.cc.

+ Here is the call graph for this function:

string pdb::CatalogClient::listRegisteredSetsForADatabase ( std::string  databaseName,
std::string &  errMsg 
)

Definition at line 610 of file CatalogClient.cc.

+ Here is the call graph for this function:

string pdb::CatalogClient::listUserDefinedTypes ( std::string &  errMsg)

Definition at line 623 of file CatalogClient.cc.

+ Here is the call graph for this function:

string pdb::CatalogClient::printCatalogMetadata ( pdb::Handle< pdb::CatalogPrintMetadata itemToSearch,
std::string &  errMsg 
)

Definition at line 564 of file CatalogClient.cc.

+ Here is the caller graph for this function:

string pdb::CatalogClient::printCatalogMetadata ( std::string &  categoryToPrint,
std::string &  errMsg 
)

Definition at line 585 of file CatalogClient.cc.

bool pdb::CatalogClient::registerDatabaseMetadata ( std::string  databaseName,
std::string &  errMsg 
)

Definition at line 515 of file CatalogClient.cc.

template<class Type >
template bool pdb::CatalogClient::registerGenericMetadata ( pdb::Handle< Type >  metadataItem,
std::string &  errMsg 
)

Definition at line 658 of file CatalogClient.cc.

+ Here is the caller graph for this function:

void pdb::CatalogClient::registerHandlers ( PDBServer forMe)
overridevirtual

Implements pdb::ServerFunctionality.

Definition at line 94 of file CatalogClient.cc.

bool pdb::CatalogClient::registerNodeMetadata ( pdb::Handle< pdb::CatalogNodeMetadata nodeData,
std::string &  errMsg 
)

Definition at line 538 of file CatalogClient.cc.

bool pdb::CatalogClient::registerType ( std::string  fileContainingSharedLib,
std::string &  errMsg 
)

Definition at line 98 of file CatalogClient.cc.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool pdb::CatalogClient::removeNodeFromDB ( std::string  nodeIP,
std::string  databaseName,
std::string &  errMsg 
)

Definition at line 491 of file CatalogClient.cc.

+ Here is the call graph for this function:

bool pdb::CatalogClient::removeNodeFromSet ( std::string  nodeIP,
std::string  databaseName,
std::string  setName,
std::string &  errMsg 
)

Definition at line 467 of file CatalogClient.cc.

int16_t pdb::CatalogClient::searchForObjectTypeName ( std::string  objectTypeName)

Definition at line 187 of file CatalogClient.cc.

+ Here is the caller graph for this function:

void pdb::CatalogClient::setPointsToManagerCatalog ( bool  pointsToManager)

Definition at line 182 of file CatalogClient.cc.

bool pdb::CatalogClient::shutDownServer ( std::string &  errMsg)

Definition at line 155 of file CatalogClient.cc.

+ Here is the caller graph for this function:

Member Data Documentation

std::string pdb::CatalogClient::address
private

Definition at line 229 of file CatalogClient.h.

PDBLoggerPtr pdb::CatalogClient::myLogger
private

Definition at line 235 of file CatalogClient.h.

bool pdb::CatalogClient::pointsToCatalogManager
private

Definition at line 226 of file CatalogClient.h.

int pdb::CatalogClient::port
private

Definition at line 232 of file CatalogClient.h.

pthread_mutex_t pdb::CatalogClient::workingMutex
private

Definition at line 238 of file CatalogClient.h.


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