SequoiaDB
 All Classes Namespaces Files Functions Variables Enumerations Properties Pages
Public Member Functions | Properties | List of all members
SequoiaDB.DataCenter Class Reference

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.
 

Detailed Description

Database operation interfaces of data center.

Member Function Documentation

void SequoiaDB.DataCenter.ActivateDC ( )
inline

Activate data center.

Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.AttachGroups ( BsonDocument  info)
inline

Attach specified groups to data center.

Parameters
[in]infoThe information of groups to attach, e.g. {Groups:[["a", "a"], ["b", "b"]]}
Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.CreateImage ( string  cataAddrList)
inline

Create image in data center.

Parameters
[in]cataAddrListCatalog address list of remote data center, e.g. "192.168.20.165:30003", "192.168.20.165:30003,192.168.20.166:30003"
Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.DeactivateDC ( )
inline

Deactivate data center.

Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.DetachGroups ( BsonDocument  info)
inline

Detach specified groups from data center.

Parameters
[in]infoThe information of groups to attach, e.g. {Groups:[["a", "a"], ["b", "b"]]}
Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.DisableImage ( )
inline

Disable image in data center.

Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.EnableImage ( )
inline

Enable image in data center.

Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.EnableReadOnly ( bool  isReadOnly)
inline

Set data center to be read-only or not.

Parameters
[in]isReadOnlyTo set data center to be read-only or not
Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
BsonDocument SequoiaDB.DataCenter.GetDetail ( )
inline

Get the detail of data center.

Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception
void SequoiaDB.DataCenter.RemoveImage ( )
inline

Remove image in data center.

Returns
void
Exceptions
SequoiaDB.BaseException
System.Exception

Property Documentation

SequoiaDB.DataCenter.Name
get

Return the name of current data center.

Returns
The data center's name
SequoiaDB.DataCenter.SequoiaDB
get

Return the Sequoiadb handle of current data center.

Returns
Sequoiadb object

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