C# 클래스 CSMongo.MongoAdminDatabase

Creates a connection to the administrative database for the Mongo instance
상속: IDisposable
파일 보기 프로젝트 열기: hugoware/CSMongo

공개 메소드들

메소드 설명
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