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

#include <StorageClient.h>

+ Inheritance diagram for pdb::StorageClient:
+ Collaboration diagram for pdb::StorageClient:

Public Member Functions

 StorageClient (int port, std::string address, PDBLoggerPtr myLogger, bool usePangea=false)
 
virtual void registerHandlers (PDBServer &forMe) override
 
bool registerType (std::string fileContainingSharedLib, std::string &errMsg)
 
std::string getObjectType (std::string databaseName, std::string setName, std::string &errMsg)
 
bool createDatabase (std::string databaseName, std::string &errMsg)
 
bool shutDownServer (std::string &errMsg)
 
bool flushData (std::string &errMsg)
 
template<class DataType >
bool createSet (std::string databaseName, std::string setName, std::string &errMsg)
 
template<class DataType >
bool removeSet (std::string databaseName, std::string setName, std::string &errMsg)
 
template<class DataType >
bool storeData (Handle< Vector< Handle< DataType >>> data, std::string databaseName, std::string setName, std::string &errMsg, bool typeCheck=true)
 
bool storeData (Handle< Vector< Handle< Object >>> data, std::string databaseName, std::string setName, std::string typeName, std::string &errMsg)
 
template<class DataType >
bool retrieveData (std::string databaseName, std::string setName, std::string &errMsg)
 
template<class DataType >
bool scanData (std::string databaseName, std::string setName, std::string &errMsg)
 
template<class DataType >
bool copyData (std::string srcDatabaseName, std::string srcSetName, std::string destDatabaseName, std::string destSetName, 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

CatalogClient myHelper
 
int port
 
std::string address
 
PDBLoggerPtr myLogger
 
bool usePangea
 

Detailed Description

Definition at line 37 of file StorageClient.h.

Constructor & Destructor Documentation

pdb::StorageClient::StorageClient ( int  port,
std::string  address,
PDBLoggerPtr  myLogger,
bool  usePangea = false 
)

Definition at line 27 of file StorageClient.cc.

Member Function Documentation

template<class DataType >
bool pdb::StorageClient::copyData ( std::string  srcDatabaseName,
std::string  srcSetName,
std::string  destDatabaseName,
std::string  destSetName,
std::string &  errMsg 
)

Definition at line 229 of file StorageClientTemplate.cc.

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

Definition at line 71 of file StorageClient.cc.

+ Here is the call graph for this function:

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

Definition at line 69 of file StorageClientTemplate.cc.

+ Here is the call graph for this function:

bool pdb::StorageClient::flushData ( std::string &  errMsg)

Definition at line 52 of file StorageClient.cc.

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

Definition at line 124 of file StorageClient.cc.

+ Here is the call graph for this function:

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

Implements pdb::ServerFunctionality.

Definition at line 40 of file StorageClient.cc.

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

Definition at line 43 of file StorageClient.cc.

+ Here is the call graph for this function:

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

Definition at line 101 of file StorageClientTemplate.cc.

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

Definition at line 137 of file StorageClientTemplate.cc.

+ Here is the call graph for this function:

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

Definition at line 199 of file StorageClientTemplate.cc.

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

Definition at line 47 of file StorageClient.cc.

+ Here is the call graph for this function:

template<class DataType >
bool pdb::StorageClient::storeData ( Handle< Vector< Handle< DataType >>>  data,
std::string  databaseName,
std::string  setName,
std::string &  errMsg,
bool  typeCheck = true 
)

Definition at line 42 of file StorageClientTemplate.cc.

+ Here is the caller graph for this function:

bool pdb::StorageClient::storeData ( Handle< Vector< Handle< Object >>>  data,
std::string  databaseName,
std::string  setName,
std::string  typeName,
std::string &  errMsg 
)

Definition at line 97 of file StorageClient.cc.

Member Data Documentation

std::string pdb::StorageClient::address
private

Definition at line 107 of file StorageClient.h.

CatalogClient pdb::StorageClient::myHelper
private

Definition at line 104 of file StorageClient.h.

PDBLoggerPtr pdb::StorageClient::myLogger
private

Definition at line 108 of file StorageClient.h.

int pdb::StorageClient::port
private

Definition at line 106 of file StorageClient.h.

bool pdb::StorageClient::usePangea
private

Definition at line 110 of file StorageClient.h.


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