Export (0) Print
Expand All

TeamFoundationDatabaseManagementService Class

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

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

[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

The TeamFoundationDatabaseManagementService type exposes the following members.

  NameDescription
Public methodAcquireDatabasePartitionAcquire an available database partition. If an existing database partition is unavailable, new database will be created on demand.
Public methodCopyDatabase(TeamFoundationRequestContext, Int32, String)
Public methodCopyDatabase(TeamFoundationRequestContext, Int32, String, TimeSpan)
Public methodCreateDatabaseCreates 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.
Public methodCreateDatabasePoolCreate a new database pool definition.
Public methodCreateDatabaseUsersForServiceAccounts
Public methodDeleteDatabasePool
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGenerateDatabaseName
Public methodGetDatabase
Public methodGetDatabasePoolGets specified database pool. DatabasePoolNotFoundException exception is thrown when the specified database pool not found.
Public methodGetDatabasePoolsToGrowReturns all the databases that are under their CreateThreshold.
Public methodGetDatabaseSizeProperties
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetNumberOfDatabasesGet the number of databases that are registered to a pool.
Public methodGetSplitDatabaseIssuesCall 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.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodIncrementTenantsPendingDeleteIndicate 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.
Public methodPerformDatabaseSplitAnalysisAnalyze 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
Public methodQueryDatabasePoolsQuery the database pools.
Public methodQueryDatabases(TeamFoundationRequestContext)Query all the databases managed by this service.
Public methodQueryDatabases(TeamFoundationRequestContext, TeamFoundationDatabaseType)Query databases with specified database type
Public methodQueryDatabases(TeamFoundationRequestContext, String)Query databases from the specified database pool.
Public methodQueryDatabaseUsage
Public methodRegisterDatabaseRegister a new database with the DatabaseManagementService.
Public methodReleaseDatabasePartitionDecrement 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.
Public methodRemoveDatabaseUnregister a database from database management. Delete and Detach operations must call this method to remove a database from tbl_Database.
Public methodSplitDatabaseSplits 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
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryGetDatabasePoolGets specified database pool. A return value indicates whether specified database pool exists.
Public methodTryGetDatabasePropertiesGet the database properties from a connection string.
Public methodUpdateDatabasePoolUpdate a pool definition.
Public methodUpdateDatabasePropertiesUpdate the service level of a database.
Top

  NameDescription
Explicit interface implemetationPrivate methodITeamFoundationService.ServiceEndEnd the service.
Explicit interface implemetationPrivate methodITeamFoundationService.ServiceStartStart the TeamFoundationDatabaseManagementService. This service can only be started at the deployment level service host.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft