MSSQL on Windows 复制: 分发数据库可用性数据源

Microsoft.SQLServer.Replication.Windows.DataSource.DistributorAvailabilityFromSubscriber (DataSourceModuleType)

分发数据库的可用性数据源。

Element properties:

TypeDataSourceModuleType
IsolationAny
AccessibilityInternal
RunAsDefault
OutputTypeSystem.PropertyBagData

Member Modules:

ID Module Type TypeId RunAs 
Trigger DataSource System.Scheduler Default
Probe ProbeAction Microsoft.SQLServer.Replication.Windows.ProbeAction.DistributorAvailabilityFromSubscriber Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
Subscriberstring$Config/Subscriber$订阅服务器名称应用作检查源的订阅服务器的名称列表,以 "|" 符号分隔
Transportstring$Config/Transport$传输访问 wsman 服务的协议的前缀
Prefixstring$Config/Prefix$前缀wsman 服务名称
Portint$Config/Port$端口wsman 服务端口
DatabaseNamesstring$Config/DatabaseNames$数据库名称应检查的数据库名称列表,以 "," 符号分隔
CredSspEnabledbool$Config/CredSspEnabled$CredSsp 已启用表示在运行此工作流之前已启用 CredSsp。将在运行后使之保持启用状态
IntervalSecondsint$Config/IntervalSeconds$间隔(秒)运行工作流的重复间隔时间(秒)。
SqlTimeoutSecondsint$Config/SqlTimeoutSeconds$数据库连接超时(秒)如果在指定期间无法访问数据库,工作流将失败并注册一个事件。
SyncTimestring$Config/SyncTime$同步时间同步时间
TimeoutSecondsint$Config/TimeoutSeconds$超时(秒)指定允许工作流在被关闭并标记为失败之前运行的时间。

Source Code:

<DataSourceModuleType ID="Microsoft.SQLServer.Replication.Windows.DataSource.DistributorAvailabilityFromSubscriber" Accessibility="Internal" Batching="false">
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Distributor" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Subscriber" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Domain" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="User" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Pass" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Transport" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Prefix" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Port" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="DatabaseNames" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="CredSspEnabled" type="xsd:boolean"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:int"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SqlTimeoutSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SyncTime" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeoutSeconds" type="xsd:integer"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Subscriber" ParameterType="string" Selector="$Config/Subscriber$"/>
<OverrideableParameter ID="Transport" ParameterType="string" Selector="$Config/Transport$"/>
<OverrideableParameter ID="Prefix" ParameterType="string" Selector="$Config/Prefix$"/>
<OverrideableParameter ID="Port" ParameterType="int" Selector="$Config/Port$"/>
<OverrideableParameter ID="DatabaseNames" ParameterType="string" Selector="$Config/DatabaseNames$"/>
<OverrideableParameter ID="CredSspEnabled" ParameterType="bool" Selector="$Config/CredSspEnabled$"/>
<OverrideableParameter ID="IntervalSeconds" ParameterType="int" Selector="$Config/IntervalSeconds$"/>
<OverrideableParameter ID="SqlTimeoutSeconds" ParameterType="int" Selector="$Config/SqlTimeoutSeconds$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
<OverrideableParameter ID="TimeoutSeconds" ParameterType="int" Selector="$Config/TimeoutSeconds$"/>
</OverrideableParameters>
<ModuleImplementation>
<Composite>
<MemberModules>
<DataSource ID="Trigger" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval>$Config/IntervalSeconds$</Interval>
<SyncTime>$Config/SyncTime$</SyncTime>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
<ProbeAction ID="Probe" TypeID="Microsoft.SQLServer.Replication.Windows.ProbeAction.DistributorAvailabilityFromSubscriber">
<Distributor>$Config/Distributor$</Distributor>
<Subscriber>$Config/Subscriber$</Subscriber>
<DatabaseNames>$Config/DatabaseNames$</DatabaseNames>
<Domain>$Config/Domain$</Domain>
<User>$Config/User$</User>
<Pass>$Config/Pass$</Pass>
<Transport>$Config/Transport$</Transport>
<Port>$Config/Port$</Port>
<Prefix>$Config/Prefix$</Prefix>
<CredSspEnabled>$Config/CredSspEnabled$</CredSspEnabled>
<SqlTimeoutSeconds>$Config/SqlTimeoutSeconds$</SqlTimeoutSeconds>
<TimeoutSeconds>$Config/TimeoutSeconds$</TimeoutSeconds>
<Publisher>SQLReplicationMonitoringWindows</Publisher>
<ManagementGroupName>$Target/ManagementGroup/Name$</ManagementGroupName>
</ProbeAction>
</MemberModules>
<Composition>
<Node ID="Probe">
<Node ID="Trigger"/>
</Node>
</Composition>
</Composite>
</ModuleImplementation>
<OutputType>System!System.PropertyBagData</OutputType>
</DataSourceModuleType>