Home Previous Up Next Index

memoryx::CommonStorageInterface

Overview

interface CommonStorageInterface

Operation Index

getMongoHostAndPort
getDBNames
getCollectionNames
isConnected
reconnect
authDB
requestDatabase
releaseDatabase
requestCollection
releaseCollection
dropCollection
storeFile
storeTextFile
storeBinaryFile
getFileProxyById
getFileProxyByName
releaseFileProxy
getTextFileById
getBinaryFileById
getTextFileByName
getBinaryFileByName
removeFileById
removeFileByName
getFileNameList
getFileIdList

Operations

string getMongoHostAndPort()

NameList getDBNames()

NameList getCollectionNames(string dbName)

bool isConnected()

bool reconnect(string hostAndPort, string userName, string password)

bool authDB(string dbName, string userName, string password)

DatabaseInterface* requestDatabase(string dbName) throws MongoAuthenticationException

void releaseDatabase(DatabaseInterface* db)

CollectionInterface* requestCollection(string collectionNS) throws DBNotSpecifiedException, MongoAuthenticationException

void releaseCollection(CollectionInterface* coll)

void dropCollection(string collectionNS) throws MongoAuthenticationException

string storeFile(string dbName, string fileName, string gridFSName) throws FileNotFoundException

string storeTextFile(string dbName, string bufferToStore, string gridFSName)

string storeBinaryFile(string dbName, Blob bufferToStore, string gridFSName)

GridFileInterface* getFileProxyById(string dbName, string fileId)

GridFileInterface* getFileProxyByName(string dbName, string gridFSName)

void releaseFileProxy(GridFileInterface* fileProxy)

bool getTextFileById(string dbName, string fileId, out string buffer)

bool getBinaryFileById(string dbName, string fileId, out Blob buffer)

bool getTextFileByName(string dbName, string gridFSName, out string buffer)

bool getBinaryFileByName(string dbName, string gridFSName, out Blob buffer)

bool removeFileById(string dbName, string fileId)

bool removeFileByName(string dbName, string gridFSName)

NameList getFileNameList(string dbName)

NameList getFileIdList(string dbName)


Home Previous Up Next Index