Database operation interfaces of data center. More...
Public Member Functions | |
| BsonDocument | GetDetail () |
| Get the detail of data center. | |
| void | ActivateDC () |
| Activate data center. | |
| void | DeactivateDC () |
| Deactivate data center. | |
| void | EnableReadOnly (bool isReadOnly) |
| Set data center to be read-only or not. | |
| void | CreateImage (string cataAddrList) |
| Create image in data center. | |
| void | RemoveImage () |
| Remove image in data center. | |
| void | EnableImage () |
| Enable image in data center. | |
| void | DisableImage () |
| Disable image in data center. | |
| void | AttachGroups (BsonDocument info) |
| Attach specified groups to data center. | |
| void | DetachGroups (BsonDocument info) |
| Detach specified groups from data center. | |
Properties | |
| string | Name [get] |
| Return the name of current data center. | |
| Sequoiadb | SequoiaDB [get] |
| Return the Sequoiadb handle of current data center. | |
Database operation interfaces of data center.
|
inline |
|
inline |
Attach specified groups to data center.
| [in] | info | The information of groups to attach, e.g. {Groups:[["a", "a"], ["b", "b"]]} |
| SequoiaDB.BaseException | |
| System.Exception |
|
inline |
Create image in data center.
| [in] | cataAddrList | Catalog address list of remote data center, e.g. "192.168.20.165:30003", "192.168.20.165:30003,192.168.20.166:30003" |
| SequoiaDB.BaseException | |
| System.Exception |
|
inline |
|
inline |
Detach specified groups from data center.
| [in] | info | The information of groups to attach, e.g. {Groups:[["a", "a"], ["b", "b"]]} |
| SequoiaDB.BaseException | |
| System.Exception |
|
inline |
|
inline |
|
inline |
Set data center to be read-only or not.
| [in] | isReadOnly | To set data center to be read-only or not |
| SequoiaDB.BaseException | |
| System.Exception |
|
inline |
|
inline |
|
get |
Return the name of current data center.
|
get |
1.8.2