Lue englanniksi

Jaa


Microsoft.SqlServer.Management.HadrModel Namespace

Classes

AddDatabaseToExistingAgScenarioProvider

Add a database to an existing Availability Group scenario provider

AddDatabaseToExistingAvailabilityGroupTask

Task that adds a database to an existing availability group.

AddDBCredentialTask

Prevision the password for database master key on a Secondary server. Depends on the succesful backup of the log on the primary.

AddNewAvailabilityGroupListenerTask

The Task for creating a new availability group listener

AddReplicaDatabaseExistenceValidator

Validates that databases existing in an AvailabilityGroup when adding a replica to an AvailabiltyGroup do not exist on the secondary replica

AddReplicaDatabaseFileCompatibilityValidator

Validates that the folders needed for database-files of the databases that exist in the AvailabilityGroup when adding a replica to AvailabiltyGroup exist on the secondary.

AddReplicaDatabaseFileExistenceValidator

Validates that the database-files that will be created on secondary as part of Add Replica Scenario does not already exist on the secondary.

AddReplicasToExistingAvailabilityGroupScenarioProvider

This class implements the add database to existing availability group scenario provider

AddReplicaTask

Task to Add replicas to the existing availability group

AvailabilityGroupNotJoinedOnReplicaException

This exception is thrown when Availability Group is not joined on the secondary replica

AvailabilityGroupQuorumValidationTask

Validates the quorum vote configuration of the given availability group. Nodes participating in an AG should only have a quroum vote if they can host the primary replica or if the can host a automatic secondary partnered with the primary. Note the use of 'can' is due to the potential presence of FCIs. Although this task is like a validator but it must be derived from task to fit into the task provider

AvailabilityGroupQuorumValidationTaskException

This exception is thrown when AvailabilityGroupQuorumValidator fail

AvailabilityModeIncompatibleException

This exception is thrown when one of the secondary replicas has an availabilitymode of Synchronous Commit, when the primary's availabilitymode is not Synchronous.

AvailabilityModeValidator

Validates that the folders needed for database-files of the databases being added to the AvailabilityGroup when creating an AvailabiltyGroup exist on the secondary.

BackupDatabaseTask

Task to back up a database

BackupDatabaseTaskException

This exception is thrown when BackupDatabaseTask fail

BackupLocationValidator

This class validates that the backup location provided can be used by the wizard to take backups and restore on the secondaries.

BackupLogTask

Backup the log on the primary server. Requires that the backup database was successful.

BackupLogTaskException

This exception is thrown when BackupLogTask fail

BasicAvailabilityGroupIncompatibleException

Class for generating a HadrValidationErrorException related to an invalid set of configuration options for creating or altering a BASIC Availability Group.

BasicAvailabilityGroupValidator
CompatibleEncryptionValidator

This class implements a validator for ensuring that the encryption (includes encryption algorithms) for all the replicas are compatible.

ConfigureEndpointsTask

Task to configure endpoints on a replica

CreateAvailabilityGroupDatabaseExistenceValidator

Validates that databases being added to the AvailabilityGroup when creating an AvailabiltyGroup do not exist on the secondary replica

CreateAvailabilityGroupDatabaseFileCompatibilityValidator

Validates that the folders needed for database-files of the databases being added to the AvailabilityGroup when creating an AvailabiltyGroup exist on the secondary.

CreateAvailabilityGroupDatabaseFileExistenceValidator

Validates that the database-files that will be created on secondary as part of Create Availability Group Scenario does not already exist on the secondary.

CreateAvailabilityGroupListenerTask

Task to add Availability Group Listener to an Availability Group

CreateAvailabilityGroupScenarioProvider

Create a new availability group scenario provider

CreateAvailabilityGroupTask

Task to create an Availability Group

CreateLoginTask

Task to create a login on the sql-server secondary

DatabaseAlreadyExistsException

This exception is thrown when a database being added to the AG already exists on one of the replicas.

DatabaseExistenceValidator

Validates that databases being added to the AvailabilityGroup do not exist on the secondary replica

DatabaseFileAlreadyExistsOnReplicaException

This exception is thrown when a database-file that is necessary to create a database already exists on the secondary.

DatabaseFileCompatibilityValidator

Validates that the folders needed for database-files of the databases exist on the secondary.

DatabaseFileExistenceValidator
DatabaseFileLocationMissingOnReplicaException

This exception is thrown when a folder that is necessary to create a database on the secondary is missing.

DatabaseFileNotInDefaultDirectoryException

This exception is thrown when any of the source databases' files is not in the default directory

DatabaseMasterKeyValidator

Class for validating the password of database master key

DriveNotFoundOnReplicaException

This exception is thrown when a drive in which one of the database files are stored on primary is not found in the secondary replica

EditExistingAvailabilityGroupListenerTask

The Task for editing a existing availability group listener

EncryptionAlgorithmMismatchException

EncryptionAlgorithmMismatchException is thrown if the encryption algorithm of any replica is does not match the others in the Availability Group

EncryptionMismatchException

EncryptionMismatchException is thrown if the encryption of any replica is does not match the others in the Availability Group

EndpointAuthenticationValidationException
EndpointAuthenticationValidator

Validate whether the on-premise endpoints use Certificate authentication.

FailoverQuorumVoteConfigurationValidator

Task to Validater Quorum Vote Configuration

FailoverScenarioProvider

Failover from secondary scenario provider

FailoverTask

Task to Execute Failover Action

FailoverValidationException
FailoverValidator

Task to Execute Failover Action

FailoverWaitRoleChangeValidator

Task to Validater Role Change After Failing Over

FixedRetryCountPolicy

The class implements a retry execution policy with a fixed retry backoff interval

FixedTimeoutRetryPolicy

Fixed retry timeout is an execution policy that allow task execution and retry based on a timeout rather a retry count. A fixed wait interval is used beteween retries.

FreeDiskSpaceValidator

This class validates if the availabe disk-space in the replica can accomodate the data and log files of the databases present in the primary server.

HadrModelUtilities

This static class provides utilities for all HadrModel

HadrTask

HADR task class

HadrTaskBaseException

The Base Validation Exception For HADRTask Model

HadrTaskErrorException

The Base Task Error Exception For HADRTask Model

HadrValidationBaseException

The Base Validation Exception For HADRTask Model

HadrValidationErrorException

The Validation Error Exception For HADRTask Model

HadrValidationWarningException

The Validation Warning Exception For HADRTask Model

InSufficientFreeSpaceForDatabaseFilesException

This exception is thrown when FreeDiskSpaceValidator determines that there is not sufficient space to accomodate the database data files in the data-drive of the replica

InvalidAvailabilityGroupException

This exception is thrown when an availbility group with the specified name is not found on the server.

JoinDatabaseToAvailabilityGroupException

This exception is thrown when database fails to join the availability group

JoinDatabaseToAvailabilityGroupTask

Task to join a database in the secondary to the availability group

JoinSecondariesTask

Join secondaries to the availability group

ListenerConfigurationException

This exception is thrown when there is no Listener defined for the AG.

ListenerConfigurationValidator

Validates that the folders needed for database-files of the databases being added to the AvailabilityGroup when creating an AvailabiltyGroup exist on the secondary.

MaxHostedServicesException

This excpetion will be thrown if we reach the max of Hosted Service Count

PercentCompleteHandler
PrimaryCannotWriteToLocationException

PrimaryCannotWriteToLocationException is thrown when the backup location cannot be written to by the Primary Server.

QuorumHelperException

This exception is thrown from QuorumHelper

RestartSqlServerException

Restart SQL Server Exception Thrown from AddDomainUserInSQLAdminTask.RestartSqlServer method

RestoreDatabaseTask

Restore a database on the secondary server. Requires that the backup was successful. Will not move database device files, and so requires that the the directory layout on the secondary is compatible with the primary. Will not run if the database already exists on the secondary

RestoreDatabaseTaskException

This exception is thrown when RestoreDatabaseTask.perform fail

RestoreLogTask

Restore the log on a Secondary server. Depends on the succesful backup of the log on the primary.

RestoreLogTaskException

This exception is thrown when RestoreLogTask.perform fail

RunOncePolicy

Execution policy for running a task once

ScenarioProvider<IValidatorProvider,ITasksProvider>

Every HADR scenarion e.g. Add Replica to existing AG must provide a list of sceanrio tasks and validators.

The list of validator ensure all required state is present to complete the scenario

THe list of tasks ensure the scenario is completed

SecondaryCannotReadLocationException

SecondaryCannotReadLocationException is thrown when the backup location cannot be ready by the Secondary Server.

ServiceOperationStatusException

Service Operation Status Exception For CheckServiceOperationStatus operation in many validators

ShareValidationException

ShareValidationException is thrown when the backup location cannot be accessed by the user.

SqlServerConnectionException

Add Domain User In AdminGroup Task Exception

StartAlwaysOnXeventSessionTask

Task that configures AlwaysOn_health Xevent session to autostart

StringExtensionMethods
TaskEventArgs

This event argument for validator progress status update

UpdateAvailabilityGroupListenerTask

Task to add Availability Group Listener to an Availability Group

Validator

The abstract class represents the base validator class later will be inheranted to different validators with different rules

ValidatorEventArgs

This event argument for validator progress status update

WaitForAvailabilityGroupOnlineTask

Task to wait for an Availability Group to come online

Interfaces

IExecutionPolicy

An interface for task execution policy basic function. An exection policy mainly dictates if execution should resume if how long to wait before retries. The implemetnation of this interface may have different flavors: time based policy, count baed, never expires execution etc...

IScriptableTask

Interface to be implemented by tasks that support scripting.

Scripting is implemented by changing the ConnectionMode of the connection to CaptureSql instead of ExecuteSql.

For this to be done by the UI, the task needs to expose the connections on which it does work.

ITasksProvider

Tasks providers interface. A scenario list of tasks to complete

IValidatorProvider

The interface represents the base validator provider class which consists of a list of Validator The provider will provide a sequence of validation rules with certain input parameter, eg. a list of WAVM validator with WAVM configuration data object or a WA subscription info validator with WA subscription data

Enums

ClusterNodeState

Matching MSCluster_Node definition http://msdn.microsoft.com/en-us/library/aa371446(v=vs.85).aspx

FeatureInstallationState

Used by WHIHelper for the Feature Installation State

GroupUserMembership

Used by WHIHelper for the Group User Membership

TaskEventStatus

Delegates

ScenarioTaskHandler

Scenario task delete. The delegate is used to override a taks implementation

ScenarioValidatorHandler

Scenario validator delegate. The delegate is used to override a validator implementation

TaskUpdateEventHandler

Task update event handler. The event is sent during task for progress update

ValidatorUpdateEventHandler

Validator update event handler. The event is sent during validation for progress update