TeamFoundationDatabaseManagementService Class
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Framework.Server.TeamFoundationDatabaseManagementService
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
<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
[TeamFoundationServiceDependency(typeof(TeamFoundationJobService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationServicingService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationHostManagementService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationCollationService))]
[TeamFoundationServiceDependency(typeof(IdentityService))]
public ref class TeamFoundationDatabaseManagementService sealed : ITeamFoundationService
[<Sealed>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationJobService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationLockingService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationServicingService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationHostManagementService))>]
[<TeamFoundationServiceDependency(typeof(TeamFoundationCollationService))>]
[<TeamFoundationServiceDependency(typeof(IdentityService))>]
type TeamFoundationDatabaseManagementService =
class
interface ITeamFoundationService
end
public final class TeamFoundationDatabaseManagementService implements ITeamFoundationService
The TeamFoundationDatabaseManagementService type exposes the following members.
Methods
Name | Description | |
---|---|---|
AcquireDatabasePartition | Acquire an available database partition. If an existing database partition is unavailable, new database will be created on demand. | |
CopyDatabase(TeamFoundationRequestContext, Int32, String) | ||
CopyDatabase(TeamFoundationRequestContext, Int32, String, TimeSpan) | ||
CreateDatabase | Creates a physical database on the specified data tier with specified collation. If collation is null or emptry string, server's default collation will be used. | |
CreateDatabasePool | Create a new database pool definition. | |
CreateDatabaseUsersForServiceAccounts | ||
DeleteDatabasePool | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GenerateDatabaseName | ||
GetDatabase | ||
GetDatabasePool | Gets specified database pool. DatabasePoolNotFoundException exception is thrown when the specified database pool not found. | |
GetDatabasePoolsToGrow | Returns all the databases that are under their CreateThreshold. | |
GetDatabaseSizeProperties | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetNumberOfDatabases | Get the number of databases that are registered to a pool. | |
GetSplitDatabaseIssues | Call before split to provide interactive feedback on potential issues earlier and avoid queueing a job which will fail Ultimately, SplitDatabase will also call this method when the job runs. If there are input issues (null etc...) it will throw. If there are environmental issues that are being checked, it will successfully return a list of the issues. It should not throw. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IncrementTenantsPendingDelete | Indicate that current tenants registered to this database are pending deletion. The number of tenants pending delete will be incremented by the provieded tenantCount. The tenant count will be decremented when the delete is actually processed. | |
PerformDatabaseSplitAnalysis | Analyze the tenant usage of the given database and return a list of the tenant hostIds which should be split out based on the given method | |
QueryDatabasePools | Query the database pools. | |
QueryDatabases(TeamFoundationRequestContext) | Query all the databases managed by this service. | |
QueryDatabases(TeamFoundationRequestContext, TeamFoundationDatabaseType) | Query databases with specified database type | |
QueryDatabases(TeamFoundationRequestContext, String) | Query databases from the specified database pool. | |
QueryDatabaseUsage | ||
RegisterDatabase | Register a new database with the DatabaseManagementService. | |
ReleaseDatabasePartition | Decrement the current tenant count on a database. This call should be made if AcquireDatabase was succefully called previously, but the caller either failed or no longer needs the database. | |
RemoveDatabase | Unregister a database from database management. Delete and Detach operations must call this method to remove a database from tbl_Database. | |
SplitDatabase | Splits a list of collection hosts out of a database into a new database and returns the desitination database id. Issues should be checked by GetSplitDatabaseIssues ahead of this call. In the event that there are issues when this is called, it will throw AdminValidationException with the detailed list of issues. Only the hosts that were started before the split will be started after the split. On issues, this method throws AdminValidationException or TeamFoundationDatabaseSplitException | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetDatabasePool | Gets specified database pool. A return value indicates whether specified database pool exists. | |
TryGetDatabaseProperties | Get the database properties from a connection string. | |
UpdateDatabasePool | Update a pool definition. | |
UpdateDatabaseProperties | Update the service level of a database. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
ITeamFoundationService.ServiceEnd | End the service. | |
ITeamFoundationService.ServiceStart | Start the TeamFoundationDatabaseManagementService. This service can only be started at the deployment level service host. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.