Database operation interfaces of admin. More...
Public Member Functions | |
Sequoiadb () | |
Default Constructor. | |
Sequoiadb (string connString) | |
Constructor. | |
Sequoiadb (List< string > connStrings) | |
Constructor. | |
Sequoiadb (string host, int port) | |
Constructor. | |
void | Connect () |
Connect to remote Sequoiadb database server. | |
void | Connect (string username, string password) |
Connect to remote Sequoiadb database server Sequoiadb connection user name Sequoiadb connection password. | |
void | Connect (string username, string password, ConfigOptions options) |
Connect to remote Sequoiadb database server Sequoiadb connection user name Sequoiadb connection password The options for connection. | |
void | Disconnect () |
Disconnect the remote server. | |
bool | IsValid () |
Judge wether the connection is is valid or not. | |
void | CreateUser (string username, string password) |
Add an user in current database Sequoiadb connection user name Sequoiadb connection password. | |
void | RemoveUser (string username, string password) |
Remove the user from current database Sequoiadb connection user name Sequoiadb connection password. | |
void | TransactionBegin () |
Begin the database transaction. | |
void | TransactionCommit () |
Commit the database transaction. | |
void | TransactionRollback () |
Rollback the database transaction. | |
void | ChangeConnectionOptions (ConfigOptions opts) |
Change the connection options. | |
CollectionSpace | CreateCollectionSpace (string csName) |
Create the named collection space with default SDB_PAGESIZE_64K. | |
CollectionSpace | CreateCollectionSpace (string csName, int pageSize) |
Create the named collection space. | |
CollectionSpace | CreateCollectionSpace (string csName, BsonDocument options) |
Create the named collection space. | |
void | DropCollectionSpace (string csName) |
Remove the named collection space. | |
CollectionSpace | GetCollectionSpace (string csName) |
Get the named collection space. | |
CollectionSpace | GetCollecitonSpace (string csName) |
Get the named collection space. | |
bool | IsCollectionSpaceExist (string csName) |
Verify the existence of collection space. | |
DBCursor | ListCollectionSpaces () |
List all the collecion space. | |
DBCursor | ListCollections () |
List all the collecion space. | |
DBCursor | Exec (string sql) |
Executing SQL command. | |
void | ExecUpdate (string sql) |
Executing SQL command for updating. | |
DBCursor | GetSnapshot (int snapType, BsonDocument matcher, BsonDocument selector, BsonDocument orderBy) |
Get the snapshots of specified type. | |
DBCursor | GetSnapshot (int snapType, BsonDocument matcher, BsonDocument selector, BsonDocument orderBy, BsonDocument hint) |
Get the snapshots of specified type. | |
DBCursor | GetSnapshot (int snapType, BsonDocument matcher, BsonDocument selector, BsonDocument orderBy, BsonDocument hint, long skipRows, long returnRows) |
Get the snapshots of specified type. | |
DBCursor | GetList (int listType, BsonDocument matcher, BsonDocument selector, BsonDocument orderBy, BsonDocument hint, long skipRows, long returnRows) |
Get the informations of specified type. | |
DBCursor | GetList (int listType, BsonDocument matcher, BsonDocument selector, BsonDocument orderBy) |
Get the informations of specified type. | |
DBCursor | GetList (int listType) |
Get the informations of specified type. | |
void | ResetSnapshot (BsonDocument options) |
Reset the snapshot. | |
void | BackupOffline (BsonDocument options) |
Backup the whole database or specifed replica group. | |
void | Backup (BsonDocument options) |
Backup database. | |
DBCursor | ListBackup (BsonDocument options, BsonDocument matcher, BsonDocument selector, BsonDocument orderBy) |
List the backups. | |
void | RemoveBackup (BsonDocument options) |
Remove the backups. | |
DBCursor | ListTasks (BsonDocument matcher, BsonDocument selector, BsonDocument orderBy, BsonDocument hint) |
List the tasks. | |
void | WaitTasks (List< long > taskIDs) |
Wait the tasks to finish. | |
void | CancelTask (long taskID, bool isAsync) |
Cancel the specified task. | |
void | SetSessionAttr (BsonDocument options) |
Set the attributes of the session. | |
BsonDocument | GetSessionAttr () |
Get the attributes of the current session from the local cache if possible. | |
BsonDocument | GetSessionAttr (bool useCache) |
Get the attributes of the current session. | |
void | CloseAllCursors () |
Close all the cursors created in current connection, we can't use those cursors to get data from db engine again, but, there are some data cache in local. | |
void | Interrupt () |
Send an interrupt message to engine. | |
void | InterruptOperation () |
Send "INTERRUPT_SELF" message to engine to stop the current operation. When the current operation had finish, nothing happend, Otherwise, the current operation will be stop, and throw exception. | |
bool | IsDomainExist (string dmName) |
Verify the existence of domain in current database. | |
bool | IsReplicaGroupExist (string groupName) |
Verify the group in current database or not. | |
bool | IsReplicaGroupExist (int groupId) |
Verify the group in current database or not. | |
Domain | CreateDomain (string domainName, BsonDocument options) |
Create a domain. | |
void | DropDomain (string domainName) |
Drop a domain. | |
Domain | GetDomain (string domainName) |
Get the specified domain. | |
DBCursor | ListDomains (BsonDocument matcher, BsonDocument selector, BsonDocument orderBy, BsonDocument hint) |
List domains. | |
DBCursor | ListReplicaGroups () |
Get all the groups. | |
ReplicaGroup | GetReplicaGroup (string groupName) |
Get the ReplicaGroup by name. | |
ReplicaGroup | GetReplicaGroup (int groupID) |
Get the ReplicaGroup by ID. | |
ReplicaGroup | CreateReplicaGroup (string groupName) |
Create the ReplicaGroup with given name. | |
void | RemoveReplicaGroup (string groupName) |
Remove the ReplicaGroup with given name. | |
void | CreateReplicaCataGroup (string hostName, int port, string dbpath, BsonDocument configure) |
Create the Replica Catalog Group with given options. | |
ReplicaGroup | ActivateReplicaGroup (string groupName) |
Activate the ReplicaGroup with given name. | |
DataCenter | GetDC () |
Get data center. | |
void | Sync (BsonDocument options) |
Sync the current database. | |
void | Sync () |
Sync the current database. | |
void | Analyze (BsonDocument options) |
Analyze collection or index to collect statistics information. | |
void | Analyze () |
void | UpdateConfig (BsonDocument configs, BsonDocument options) |
Force the node to update configs online. | |
void | DeleteConfig (BsonDocument configs, BsonDocument options) |
Force the node to update configs online. | |
void | InvalidateCache (BsonDocument options) |
Clear the cache of the nodes (data/coord node). | |
void | RenameCollectionSpace (String oldName, String newName) |
Rename the collection space. | |
Static Public Member Functions | |
static void | InitClient (ClientOptions options) |
Initialize the configuration options for client. | |
Properties | |
IConnection | Connection [get] |
Return the connection object. | |
ServerAddress | ServerAddr [get, set] |
Return or group the remote server address. | |
Database operation interfaces of admin.
|
inline |
Default Constructor.
Server address "127.0.0.1 : 11810"
|
inline |
Constructor.
connString | Remote server address "IP : Port" or "IP"(port is 11810) |
|
inline |
Constructor.
connStrings | Remote server addresses "IP : Port" |
|
inline |
Constructor.
addr | IP address |
port | Port |
|
inline |
Activate the ReplicaGroup with given name.
groupName | The group name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Analyze collection or index to collect statistics information.
[in] | options | The control options: CollectionSpace : (String) Specify the collection space to be analyzed. Collection : (String) Specify the collection to be analyzed. Index : (String) Specify the index to be analyzed. Mode : (Int32) Specify the analyze mode (default is 1): Mode 1 will analyze with data samples. Mode 2 will analyze with full data. Mode 3 will generate default statistics. Mode 4 will reload statistics into memory cache. Mode 5 will clear statistics from memory cache. Other options : Some of other options are as below:(only take effect in coordinate nodes, please visit the official website to search "analyze" or "Location Elements" for more detail.) GroupID:INT32, GroupName:String, NodeID:INT32, HostName:String, svcname:String, ... |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
|
inline |
Backup database.
options | Contains a series of backup configuration infomations. Backup the whole cluster if null. The "options" contains 5 options as below. All the elements in options are optional. eg: {"GroupName":["rgName1", "rgName2"], "Path":"/opt/sequoiadb/backup", "Name":"backupName", "Description":description, "EnsureInc":true, "OverWrite":true}
|
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Backup the whole database or specifed replica group.
options | Contains a series of backup configuration infomations. Backup the whole cluster if null. The "options" contains 5 options as below. All the elements in options are optional. eg: {"GroupName":["rgName1", "rgName2"], "Path":"/opt/sequoiadb/backup", "Name":"backupName", "Description":description, "EnsureInc":true, "OverWrite":true}
|
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Cancel the specified task.
taskID | The task id |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Change the connection options.
opts | The connection options |
System.Exception |
|
inline |
Close all the cursors created in current connection, we can't use those cursors to get data from db engine again, but, there are some data cache in local.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Connect to remote Sequoiadb database server.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Connect to remote Sequoiadb database server Sequoiadb connection user name Sequoiadb connection password.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Connect to remote Sequoiadb database server Sequoiadb connection user name Sequoiadb connection password The options for connection.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Create the named collection space with default SDB_PAGESIZE_64K.
csName | The collection space name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Create the named collection space.
csName | The collection space name |
pageSize | The Page Size as below SDB_PAGESIZE_4K SDB_PAGESIZE_8K SDB_PAGESIZE_16K SDB_PAGESIZE_32K SDB_PAGESIZE_64K SDB_PAGESIZE_DEFAULT |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Create the named collection space.
csName | The collection space name |
options | The options specified by user, e.g. {"PageSize": 4096, "Domain": "mydomain"} PageSize : Assign the pagesize of the collection space Domain : Assign which domain does current collection space belong to |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Create a domain.
domainName | The name of the domain |
options | The options for the domain. The options are as below: Group: the list of replica groups' names which the domain is going to contain. eg: { "Group": [ "group1", "group2", "group3" ] } If this argument is not included, the domain will contain all replica groups in the cluster. AutoSplit: If this option is set to be true, while creating collection(ShardingType is "hash") in this domain, the data of this collection will be split(hash split) into all the groups in this domain automatically. However, it won't automatically split data into those groups which were add into this domain later. eg: { "Groups": [ "group1", "group2", "group3" ], "AutoSplit: true" } |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Create the Replica Catalog Group with given options.
hostName | The host name |
port | The port |
dbpath | The database path |
configure | The configure options |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Create the ReplicaGroup with given name.
groupName | The group name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Add an user in current database Sequoiadb connection user name Sequoiadb connection password.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Force the node to update configs online.
configs | the specific configuration parameters to update |
options | The control options:(Only take effect in coordinate nodes) GroupID:INT32, GroupName:String, NodeID:INT32, HostName:String, svcname:String, ... |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Disconnect the remote server.
System.Exception |
|
inline |
Remove the named collection space.
csName | The collection space name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Drop a domain.
domainName | The name of the domain |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Executing SQL command.
sql | SQL command |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Executing SQL command for updating.
sql | SQL command |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the named collection space.
csName | The collection space name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the named collection space.
csName | The collection space name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get data center.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the specified domain.
domainName | The name of the domain |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the informations of specified type.
listType | The specified type as below: SDBConst.SDB_LIST_CONTEXTS SDBConst.SDB_LIST_CONTEXTS_CURRENT SDBConst.SDB_LIST_SESSIONS SDBConst.SDB_LIST_SESSIONS_CURRENT SDBConst.SDB_LIST_COLLECTIONS SDBConst.SDB_LIST_COLLECTIONSPACES SDBConst.SDB_LIST_STORAGEUNITS SDBConst.SDB_LIST_GROUPS SDBConst.SDB_LIST_STOREPROCEDURES SDBConst.SDB_LIST_DOMAINS SDBConst.SDB_LIST_TASKS SDBConst.SDB_LIST_TRANSACTIONS SDBConst.SDB_LIST_TRANSACTIONS_CURRENT SDBConst.SDB_LIST_SVCTASKS SDBConst.SDB_LIST_SEQUENCES SDBConst.SDB_LIST_USERS SDBConst.SDB_LIST_BACKUPS |
matcher | The matching condition or null |
selector | The selective rule or null |
orderBy | The ordered rule or null |
hint | The options provided for specific list type. Reserved. |
skipRows | Skip the first skipRows documents. |
returnRows | Only return returnRows documents. -1 means return all matched results. |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the informations of specified type.
listType | The specified type as below: SDBConst.SDB_LIST_CONTEXTS SDBConst.SDB_LIST_CONTEXTS_CURRENT SDBConst.SDB_LIST_SESSIONS SDBConst.SDB_LIST_SESSIONS_CURRENT SDBConst.SDB_LIST_COLLECTIONS SDBConst.SDB_LIST_COLLECTIONSPACES SDBConst.SDB_LIST_STORAGEUNITS SDBConst.SDB_LIST_GROUPS SDBConst.SDB_LIST_STOREPROCEDURES SDBConst.SDB_LIST_DOMAINS SDBConst.SDB_LIST_TASKS SDBConst.SDB_LIST_TRANSACTIONS SDBConst.SDB_LIST_TRANSACTIONS_CURRENT SDBConst.SDB_LIST_SVCTASKS SDBConst.SDB_LIST_SEQUENCES SDBConst.SDB_LIST_USERS SDBConst.SDB_LIST_BACKUPS |
matcher | The matching condition or null |
selector | The selective rule or null |
orderBy | The ordered rule or null |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the informations of specified type.
listType | The specified type as below: SDBConst.SDB_LIST_CONTEXTS SDBConst.SDB_LIST_CONTEXTS_CURRENT SDBConst.SDB_LIST_SESSIONS SDBConst.SDB_LIST_SESSIONS_CURRENT SDBConst.SDB_LIST_COLLECTIONS SDBConst.SDB_LIST_COLLECTIONSPACES SDBConst.SDB_LIST_STORAGEUNITS SDBConst.SDB_LIST_GROUPS SDBConst.SDB_LIST_STOREPROCEDURES SDBConst.SDB_LIST_DOMAINS SDBConst.SDB_LIST_TASKS SDBConst.SDB_LIST_TRANSACTIONS SDBConst.SDB_LIST_TRANSACTIONS_CURRENT SDBConst.SDB_LIST_SVCTASKS SDBConst.SDB_LIST_SEQUENCES SDBConst.SDB_LIST_USERS SDBConst.SDB_LIST_BACKUPS |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the ReplicaGroup by name.
groupName | The group name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the ReplicaGroup by ID.
groupID | The group ID |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the attributes of the current session from the local cache if possible.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the attributes of the current session.
useCache | Whether to use cache in local. |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the snapshots of specified type.
snapType | The specified type as below: SDBConst.SDB_SNAP_CONTEXTS SDBConst.SDB_SNAP_CONTEXTS_CURRENT SDBConst.SDB_SNAP_SESSIONS SDBConst.SDB_SNAP_SESSIONS_CURRENT SDBConst.SDB_SNAP_COLLECTIONS SDBConst.SDB_SNAP_COLLECTIONSPACES SDBConst.SDB_SNAP_DATABASE SDBConst.SDB_SNAP_SYSTEM SDBConst.SDB_SNAP_CATALOG SDBConst.SDB_SNAP_TRANSACTIONS SDBConst.SDB_SNAP_TRANSACTIONS_CURRENT SDBConst.SDB_SNAP_ACCESSPLANS SDBConst.SDB_SNAP_HEALTH SDBConst.SDB_SNAP_CONFIGS SDBConst.SDB_SNAP_SVCTASKS SDBConst.SDB_SNAP_SEQUENCES SDBConst.SDB_SNAP_QUERIES SDBConst.SDB_SNAP_LATCHWAITS SDBConst.SDB_SNAP_LOCKWAITS |
matcher | The matching condition or null |
selector | The selective rule or null |
orderBy | The ordered rule or null |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the snapshots of specified type.
snapType | The specified type as below: SDBConst.SDB_SNAP_CONTEXTS SDBConst.SDB_SNAP_CONTEXTS_CURRENT SDBConst.SDB_SNAP_SESSIONS SDBConst.SDB_SNAP_SESSIONS_CURRENT SDBConst.SDB_SNAP_COLLECTIONS SDBConst.SDB_SNAP_COLLECTIONSPACES SDBConst.SDB_SNAP_DATABASE SDBConst.SDB_SNAP_SYSTEM SDBConst.SDB_SNAP_CATALOG SDBConst.SDB_SNAP_TRANSACTIONS SDBConst.SDB_SNAP_TRANSACTIONS_CURRENT SDBConst.SDB_SNAP_ACCESSPLANS SDBConst.SDB_SNAP_HEALTH SDBConst.SDB_SNAP_CONFIGS SDBConst.SDB_SNAP_SVCTASKS SDBConst.SDB_SNAP_SEQUENCES SDBConst.SDB_SNAP_QUERIES SDBConst.SDB_SNAP_LATCHWAITS SDBConst.SDB_SNAP_LOCKWAITS |
matcher | The matching condition or null |
selector | The selective rule or null |
orderBy | The ordered rule or null |
hint | The options provided for specific snapshot type or null, Format:{ '$Options': { <options> } } |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get the snapshots of specified type.
snapType | The specified type as below: SDBConst.SDB_SNAP_CONTEXTS SDBConst.SDB_SNAP_CONTEXTS_CURRENT SDBConst.SDB_SNAP_SESSIONS SDBConst.SDB_SNAP_SESSIONS_CURRENT SDBConst.SDB_SNAP_COLLECTIONS SDBConst.SDB_SNAP_COLLECTIONSPACES SDBConst.SDB_SNAP_DATABASE SDBConst.SDB_SNAP_SYSTEM SDBConst.SDB_SNAP_CATALOG SDBConst.SDB_SNAP_TRANSACTIONS SDBConst.SDB_SNAP_TRANSACTIONS_CURRENT SDBConst.SDB_SNAP_ACCESSPLANS SDBConst.SDB_SNAP_HEALTH SDBConst.SDB_SNAP_CONFIGS SDBConst.SDB_SNAP_SVCTASKS SDBConst.SDB_SNAP_SEQUENCES SDBConst.SDB_SNAP_QUERIES SDBConst.SDB_SNAP_LATCHWAITS SDBConst.SDB_SNAP_LOCKWAITS |
matcher | The matching condition or null |
selector | The selective rule or null |
orderBy | The ordered rule or null |
hint | The options provided for specific snapshot type or null, Format:{ '$Options': { <options> } } |
skipRows | Skip the first numToSkip documents, never skip if this parameter is 0 |
returnRows | Return the specified amount of documents, when returnRows is 0, return nothing, when returnRows is -1, return all the documents |
SequoiaDB.BaseException | |
System.Exception |
|
inlinestatic |
Initialize the configuration options for client.
options | The configuration options for client |
|
inline |
Send an interrupt message to engine.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Send "INTERRUPT_SELF" message to engine to stop the current operation. When the current operation had finish, nothing happend, Otherwise, the current operation will be stop, and throw exception.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Clear the cache of the nodes (data/coord node).
options | The control options:(Only take effect in coordinate nodes) Global(Bool): execute this command in global or not. While 'options' is null, it's equals to {Glocal: true}. GroupID(INT32 or INT32 Array): specified one or several groups by their group IDs. e.g. {GroupID:[1001, 1002]}. GroupName(String or String Array): specified one or several groups by their group names. e.g. {GroupID:"group1"}. ... |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Verify the existence of collection space.
csName | The collection space name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Verify the existence of domain in current database.
dmName | The domain name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Verify the group in current database or not.
groupName | The name of the group |
|
inline |
Verify the group in current database or not.
groupId | The id of the group |
|
inline |
Judge wether the connection is is valid or not.
|
inline |
List the backups.
options | Contains configuration information for listing backups, list all the backups in the default backup path if null. The "options" contains several options as below. All the elements in options are optional. eg: {"GroupName":["rgName1", "rgName2"], "Path":"/opt/sequoiadb/backup", "Name":"backupName"}
|
matcher | The matching rule, return all the documents if null |
selector | The selective rule, return the whole document if null |
orderBy | The ordered rule, never sort if null |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
List all the collecion space.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
List all the collecion space.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
List domains.
matcher | The matching rule, return all the documents if null |
selector | The selective rule, return the whole document if null |
orderBy | The ordered rule, never sort if null |
hint | Specified the index used to scan data. e.g. {"":"ageIndex"} means using index "ageIndex" to scan data(index scan); {"":null} means table scan. when hint is null, database automatically match the optimal index to scan data. |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Get all the groups.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
List the tasks.
matcher | The matching rule, return all the documents if null |
selector | The selective rule, return the whole document if null |
orderBy | The ordered rule, never sort if null |
hint | Specified the index used to scan data. e.g. {"":"ageIndex"} means using index "ageIndex" to scan data(index scan); {"":null} means table scan. when hint is null, database automatically match the optimal index to scan data. |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Remove the backups.
options | Contains configuration information for removing backups, remove all the backups in the default backup path if null. The "options" contains several options as below. All the elements in options are optional. eg: {"GroupName":["rgName1", "rgName2"], "Path":"/opt/sequoiadb/backup", "Name":"backupName"}
|
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Remove the ReplicaGroup with given name.
groupName | The group name |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Remove the user from current database Sequoiadb connection user name Sequoiadb connection password.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Rename the collection space.
oldName | The original name of current collection space. |
newName | The new name of current collection space. |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Reset the snapshot.
[in] | options | The control options: Type : (String) Specify the snapshot type to be reset(default is "all"): "sessions" "sessions current" "database" "health" "all" SessionID : (Int32) Specify the session ID to be reset. Other options : Some of other options are as below:(please visit the official website to search "Location Elements" for more detail.) GroupID:INT32, GroupName:String, NodeID:INT32, HostName:String, svcname:String, ... |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Set the attributes of the session.
options | The options for setting session attributes. Can not be NULL. While it's a empty options, the local session attributes cache will be cleanup. Please reference here for more detail. |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Sync the current database.
[in] | options | The control options: Deep: (INT32) Flush with deep mode or not. 1 in default. 0 for non-deep mode,1 for deep mode,-1 means use the configuration with server Block: (Bool) Flush with block mode or not. false in default. CollectionSpace: (String) Specify the collectionspace to sync. If not set, will sync all the collectionspaces and logs, otherwise, will only sync the collectionspace specified. Some of other options are as below:(only take effect in coordinate nodes, please visit the official website to search "sync" or "Location Elements" for more detail.) GroupID:INT32, GroupName:String, NodeID:INT32, HostName:String, svcname:String, ... |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Sync the current database.
Analyze all collections and indexes to collect statistics information.
SequoiaDB.BaseException | |
System.Exception |
|
inline |
|
inline |
|
inline |
|
inline |
Force the node to update configs online.
configs | the specific configuration parameters to update. Please reference here for more detail. |
options | The control options:(Only take effect in coordinate nodes). Please reference here for more detail. |
SequoiaDB.BaseException | |
System.Exception |
|
inline |
Wait the tasks to finish.
taskIDs | The list of task id |
SequoiaDB.BaseException | |
System.Exception |
|
get |
Return the connection object.
|
getset |
Return or group the remote server address.