C# Класс CSMongo.MongoAdminDatabase

Creates a connection to the administrative database for the Mongo instance
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
CheckOpLogging ( ) : MethodResult

Checks the status of the database for the oplogging value

CopyDatabase ( string from, string targetConnectionString ) : MethodResult

Handles copying a database to another location

CopyDatabase ( string from, string to, string host ) : MethodResult

Handles copying a database to another location

CopyDatabase ( string from, string to, string host, int port, string username, string password ) : MethodResult

Handles copying a database to another location

CopyDatabase ( string from, string to, string host, string username, string password ) : MethodResult

Handles copying a database to another location

Dispose ( ) : void

Handles cleaning up this database connection

FSync ( ) : FSyncResult

Performs an FSync command against the database

FSync ( bool async ) : FSyncResult

Performs an FSync command against the database

ForceError ( ) : ForceErrorResult

Causes an error on the server -- Uh... wut?

GetBuildInfo ( ) : BuildInfoResult

Returns the build info for the current database

GetDatabases ( ) : ListDatabasesResult

Gets a list of all databases available

GetLastError ( ) : GetLastErrorResult

Returns the most recent error from the server

GetOpTime ( ) : GetOpTimeResult

Returns the OpTime value from the server

GetPreviousError ( ) : GetPreviousErrorResult

Returns a previous error message from the server

Logout ( ) : void

Sends the log out request to the server

MongoAdminDatabase ( string connectionString ) : System

Creates access to the admin database using the provided information

MongoAdminDatabase ( string host, bool autoConnect ) : System

Creates access to the admin database using the provided information

MongoAdminDatabase ( string host, int port ) : System

Creates access to the admin database using the provided information

MongoAdminDatabase ( string host, int port, bool autoConnect ) : System

Creates access to the admin database using the provided information

MongoAdminDatabase ( string host, int port, string username, string password, bool autoConnect ) : System

Creates access to the admin database using the provided information

MongoAdminDatabase ( string host, string username, string password ) : System

Creates access to the admin database using the provided information

ResetErrors ( ) : MethodResult

Clears any errors from the server

RunCommand ( BsonObject arguments ) : MethodResult

Manually invokes a command against the database

RunCommand ( BsonObject arguments, bool expectResponse ) : MethodResult

Manually invokes a command against the database

RunCommand ( object arguments ) : MethodResult

Manually invokes a command against the database

RunCommand ( object arguments, bool expectResponse ) : MethodResult

Manually invokes a command against the database

Shutdown ( ) : void

Sends the shutdown signal to the database

Описание методов

CheckOpLogging() публичный Метод

Checks the status of the database for the oplogging value
public CheckOpLogging ( ) : MethodResult
Результат CSMongo.Results.MethodResult

CopyDatabase() публичный Метод

Handles copying a database to another location
public CopyDatabase ( string from, string targetConnectionString ) : MethodResult
from string
targetConnectionString string
Результат CSMongo.Results.MethodResult

CopyDatabase() публичный Метод

Handles copying a database to another location
public CopyDatabase ( string from, string to, string host ) : MethodResult
from string
to string
host string
Результат CSMongo.Results.MethodResult

CopyDatabase() публичный Метод

Handles copying a database to another location
public CopyDatabase ( string from, string to, string host, int port, string username, string password ) : MethodResult
from string
to string
host string
port int
username string
password string
Результат CSMongo.Results.MethodResult

CopyDatabase() публичный Метод

Handles copying a database to another location
public CopyDatabase ( string from, string to, string host, string username, string password ) : MethodResult
from string
to string
host string
username string
password string
Результат CSMongo.Results.MethodResult

Dispose() публичный Метод

Handles cleaning up this database connection
public Dispose ( ) : void
Результат void

FSync() публичный Метод

Performs an FSync command against the database
public FSync ( ) : FSyncResult
Результат CSMongo.Results.FSyncResult

FSync() публичный Метод

Performs an FSync command against the database
public FSync ( bool async ) : FSyncResult
async bool
Результат CSMongo.Results.FSyncResult

ForceError() публичный Метод

Causes an error on the server -- Uh... wut?
public ForceError ( ) : ForceErrorResult
Результат CSMongo.Results.ForceErrorResult

GetBuildInfo() публичный Метод

Returns the build info for the current database
public GetBuildInfo ( ) : BuildInfoResult
Результат CSMongo.Results.BuildInfoResult

GetDatabases() публичный Метод

Gets a list of all databases available
public GetDatabases ( ) : ListDatabasesResult
Результат ListDatabasesResult

GetLastError() публичный Метод

Returns the most recent error from the server
public GetLastError ( ) : GetLastErrorResult
Результат GetLastErrorResult

GetOpTime() публичный Метод

Returns the OpTime value from the server
public GetOpTime ( ) : GetOpTimeResult
Результат CSMongo.Results.GetOpTimeResult

GetPreviousError() публичный Метод

Returns a previous error message from the server
public GetPreviousError ( ) : GetPreviousErrorResult
Результат CSMongo.Results.GetPreviousErrorResult

Logout() публичный Метод

Sends the log out request to the server
public Logout ( ) : void
Результат void

MongoAdminDatabase() публичный Метод

Creates access to the admin database using the provided information
public MongoAdminDatabase ( string connectionString ) : System
connectionString string
Результат System

MongoAdminDatabase() публичный Метод

Creates access to the admin database using the provided information
public MongoAdminDatabase ( string host, bool autoConnect ) : System
host string
autoConnect bool
Результат System

MongoAdminDatabase() публичный Метод

Creates access to the admin database using the provided information
public MongoAdminDatabase ( string host, int port ) : System
host string
port int
Результат System

MongoAdminDatabase() публичный Метод

Creates access to the admin database using the provided information
public MongoAdminDatabase ( string host, int port, bool autoConnect ) : System
host string
port int
autoConnect bool
Результат System

MongoAdminDatabase() публичный Метод

Creates access to the admin database using the provided information
public MongoAdminDatabase ( string host, int port, string username, string password, bool autoConnect ) : System
host string
port int
username string
password string
autoConnect bool
Результат System

MongoAdminDatabase() публичный Метод

Creates access to the admin database using the provided information
public MongoAdminDatabase ( string host, string username, string password ) : System
host string
username string
password string
Результат System

ResetErrors() публичный Метод

Clears any errors from the server
public ResetErrors ( ) : MethodResult
Результат CSMongo.Results.MethodResult

RunCommand() публичный Метод

Manually invokes a command against the database
public RunCommand ( BsonObject arguments ) : MethodResult
arguments BsonObject
Результат CSMongo.Results.MethodResult

RunCommand() публичный Метод

Manually invokes a command against the database
public RunCommand ( BsonObject arguments, bool expectResponse ) : MethodResult
arguments BsonObject
expectResponse bool
Результат CSMongo.Results.MethodResult

RunCommand() публичный Метод

Manually invokes a command against the database
public RunCommand ( object arguments ) : MethodResult
arguments object
Результат CSMongo.Results.MethodResult

RunCommand() публичный Метод

Manually invokes a command against the database
public RunCommand ( object arguments, bool expectResponse ) : MethodResult
arguments object
expectResponse bool
Результат CSMongo.Results.MethodResult

Shutdown() публичный Метод

Sends the shutdown signal to the database
public Shutdown ( ) : void
Результат void