Database operation interfaces of data center.
More...
#include <client.hpp>
|
|
| sdbDataCenter () |
| | Default constructor.
|
| |
|
| ~sdbDataCenter () |
| | Destructor.
|
| |
| const CHAR * | getName () |
| | Get the name of current data center.
|
| |
| INT32 | getDetail (bson::BSONObj &retInfo) |
| | Get the detail of current data center.
|
| |
| INT32 | activateDC () |
| | Activate the data center.
|
| |
| INT32 | deactivateDC () |
| | Deactivate the data center.
|
| |
| INT32 | enableReadOnly (BOOLEAN isReadOnly) |
| | Enable data center works in readonly mode or not.
|
| |
| INT32 | createImage (const CHAR *pCataAddrList) |
| | Create image in data center.
|
| |
| INT32 | removeImage () |
| | Remove image in data center.
|
| |
| INT32 | enableImage () |
| | Enable image in data center.
|
| |
| INT32 | disableImage () |
| | Disable image in data center.
|
| |
| INT32 | attachGroups (const bson::BSONObj &info) |
| | Attach specified groups to data center.
|
| |
| INT32 | detachGroups (const bson::BSONObj &info) |
| | Detach specified groups from data center.
|
| |
Database operation interfaces of data center.
| INT32 sdbclient::sdbDataCenter::activateDC |
( |
| ) |
|
|
inline |
Activate the data center.
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::attachGroups |
( |
const bson::BSONObj & |
info | ) |
|
|
inline |
Attach specified groups to data center.
- Parameters
-
| [in] | info | The information of groups to attach, e.g. {Groups:[["a", "a"], ["b", "b"]]} |
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::createImage |
( |
const CHAR * |
pCataAddrList | ) |
|
|
inline |
Create image in data center.
- Parameters
-
| [in] | pCataAddrList | Catalog address list of remote data center, e.g. "192.168.20.165:30003", "192.168.20.165:30003,192.168.20.166:30003" |
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::deactivateDC |
( |
| ) |
|
|
inline |
Deactivate the data center.
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::detachGroups |
( |
const bson::BSONObj & |
info | ) |
|
|
inline |
Detach specified groups from data center.
- Parameters
-
| [in] | info | The information of groups to detach, e.g. {Groups:[["a", "a"], ["b", "b"]]} |
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::disableImage |
( |
| ) |
|
|
inline |
Disable image in data center.
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::enableImage |
( |
| ) |
|
|
inline |
Enable image in data center.
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::enableReadOnly |
( |
BOOLEAN |
isReadOnly | ) |
|
|
inline |
Enable data center works in readonly mode or not.
- Parameters
-
| [in] | isReadOnly | Whether to use readonly mode or not |
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| INT32 sdbclient::sdbDataCenter::getDetail |
( |
bson::BSONObj & |
retInfo | ) |
|
|
inline |
Get the detail of current data center.
- Parameters
-
| [out] | retInfo | The detail of data center |
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| const CHAR * sdbclient::sdbDataCenter::getName |
( |
| ) |
|
|
inline |
Get the name of current data center.
- Return values
-
| The | name of current data center or null if fail |
| INT32 sdbclient::sdbDataCenter::removeImage |
( |
| ) |
|
|
inline |
Remove image in data center.
- Return values
-
| SDB_OK | Operation Success |
| Others | Operation Fail |
| sdbclient::sdbDataCenter::pDC |
The documentation for this class was generated from the following file: