TeamFoundationDatabaseManagementService 類別

繼承階層架構

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseManagementService

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
<TeamFoundationServiceDependency(GetType(TeamFoundationJobService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationLockingService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationRegistryService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationServicingService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationHostManagementService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationCollationService))> _
<TeamFoundationServiceDependency(GetType(IdentityService))> _
Public NotInheritable Class TeamFoundationDatabaseManagementService _
    Implements ITeamFoundationService
[TeamFoundationServiceDependency(typeof(TeamFoundationJobService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationServicingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationHostManagementService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationCollationService))]
[TeamFoundationServiceDependency(typeof(IdentityService))]
public sealed class TeamFoundationDatabaseManagementService : ITeamFoundationService

TeamFoundationDatabaseManagementService 類型會公開下列成員。

方法

  名稱 描述
公用方法 AcquireDatabasePartition 取得可用的資料庫分割。如果現有資料庫分割無法使用,新的資料庫將集合都是視需要。
公用方法 CopyDatabase(TeamFoundationRequestContext, Int32, String)
公用方法 CopyDatabase(TeamFoundationRequestContext, Int32, String, TimeSpan)
公用方法 CreateDatabase 建立指定資料層的實體資料庫與指定的順序。如果項目是空字串,或 emptry 伺服器將會使用預設定序。
公用方法 CreateDatabasePool 建立新的資料庫集區定義。
公用方法 CreateDatabaseUsersForServiceAccounts
公用方法 DeleteDatabasePool
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GenerateDatabaseName
公用方法 GetDatabase
公用方法 GetDatabasePool 取得指定的資料庫集區。DatabasePoolNotFoundException 例外狀況,當指定的資料庫集區找不到。
公用方法 GetDatabasePoolsToGrow 傳回在其 CreateThreshold 下的所有資料庫。
公用方法 GetDatabaseSizeProperties
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetNumberOfDatabases 取得註冊到集區資料庫數目。
公用方法 GetSplitDatabaseIssues 呼叫,在早期提供互動式回應在潛在問題並避免的分割佇列最後前將失敗的工作, SplitDatabase 也會呼叫這個方法時,所要執行的工作。如果有項目的問題 (空等等) 將會擲回。如果不會檢查的環境問題,它將成功傳回問題清單。它不應該擲回。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 IncrementTenantsPendingDelete 表示目前租登錄至這個資料庫是暫止的刪除動作。租暫止刪除編號會 provieded tenantCount 增加。當刪除實際處理,租計數會遞減。
公用方法 PerformDatabaseSplitAnalysis 分析特定資料庫的租用法並傳回應該分割根據特定方法租主機 ID 的清單
公用方法 QueryDatabasePools 查詢資料庫集區。
公用方法 QueryDatabases(TeamFoundationRequestContext) 由這個服務查詢任何資料庫 Managed。
公用方法 QueryDatabases(TeamFoundationRequestContext, TeamFoundationDatabaseType) 使用指定的資料庫型別的查詢資料庫
公用方法 QueryDatabases(TeamFoundationRequestContext, String) 從指定的資料庫集區的查詢資料庫。
公用方法 QueryDatabaseUsage
公用方法 RegisterDatabase 向 DatabaseManagementService 的新資料庫。
公用方法 ReleaseDatabasePartition 會在資料庫中目前租計數。應該進行呼叫,如果 AcquireDatabase succefully 之前呼叫,不過,呼叫端失敗或不再需要資料庫。
公用方法 RemoveDatabase 移除註冊資料庫管理的資料庫。刪除和中斷連結作業必須呼叫這個方法會從 tbl_Database 移除資料庫。
公用方法 SplitDatabase 分割集合主機清單從資料庫成新的資料庫並傳回 desitination 資料庫 id.只有在這個呼叫之前的 GetSplitDatabaseIssues 檢查問題。在有問題的情況下,這個呼叫,則會擲回與問題的詳細清單的 AdminValidationException。已啟動的主機,在分割在分割之後才會啟動。在問題,這個方法會擲回 AdminValidationException 或 TeamFoundationDatabaseSplitException
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 TryGetDatabasePool 取得指定的資料庫集區。傳回值表示指定的資料庫集區是否存在。
公用方法 TryGetDatabaseProperties 從連接字串取得資料庫屬性。
公用方法 UpdateDatabasePool 更新集定義。
公用方法 UpdateDatabaseProperties 更新資料庫的服務等級。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 ITeamFoundationService.ServiceEnd 關閉服務。
明確介面實作私用方法 ITeamFoundationService.ServiceStart 開始 TeamFoundationDatabaseManagementService。這個服務只能啟動在部署應用程式層級服務主機。

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.Framework.Server 命名空間