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.
|
#include <CatalogClient.h>
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 |
Definition at line 33 of file CatalogClient.h.
pdb::CatalogClient::~CatalogClient | ( | ) |
pdb::CatalogClient::CatalogClient | ( | ) |
pdb::CatalogClient::CatalogClient | ( | int | port, |
std::string | address, | ||
PDBLoggerPtr | myLogger | ||
) |
pdb::CatalogClient::CatalogClient | ( | int | port, |
std::string | address, | ||
PDBLoggerPtr | myLogger, | ||
bool | pointsToCatalogManagerIn | ||
) |
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 | ||
) |
bool pdb::CatalogClient::createSet | ( | std::string | databaseName, |
std::string | setName, | ||
std::string & | errMsg | ||
) |
Definition at line 30 of file CatalogClientTemplates.cc.
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 bool pdb::CatalogClient::deleteGenericMetadata | ( | pdb::Handle< Type > | metadataItem, |
std::string & | errMsg | ||
) |
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.
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.
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.
string pdb::CatalogClient::listAllRegisteredMetadata | ( | std::string & | errMsg | ) |
string pdb::CatalogClient::listNodesInCluster | ( | std::string & | errMsg | ) |
string pdb::CatalogClient::listRegisteredDatabases | ( | std::string & | errMsg | ) |
string pdb::CatalogClient::listRegisteredSetsForADatabase | ( | std::string | databaseName, |
std::string & | errMsg | ||
) |
string pdb::CatalogClient::listUserDefinedTypes | ( | std::string & | errMsg | ) |
string pdb::CatalogClient::printCatalogMetadata | ( | pdb::Handle< pdb::CatalogPrintMetadata > | itemToSearch, |
std::string & | errMsg | ||
) |
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 bool pdb::CatalogClient::registerGenericMetadata | ( | pdb::Handle< Type > | metadataItem, |
std::string & | errMsg | ||
) |
|
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.
bool pdb::CatalogClient::removeNodeFromDB | ( | std::string | nodeIP, |
std::string | databaseName, | ||
std::string & | errMsg | ||
) |
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 | ) |
void pdb::CatalogClient::setPointsToManagerCatalog | ( | bool | pointsToManager | ) |
Definition at line 182 of file CatalogClient.cc.
bool pdb::CatalogClient::shutDownServer | ( | std::string & | errMsg | ) |
|
private |
Definition at line 229 of file CatalogClient.h.
|
private |
Definition at line 235 of file CatalogClient.h.
|
private |
Definition at line 226 of file CatalogClient.h.
|
private |
Definition at line 232 of file CatalogClient.h.
|
private |
Definition at line 238 of file CatalogClient.h.