protected FabricSettingsGeneratorBase CreateFabricSettingsGenerator( IUserConfig inputTargetUserConfig, IAdminConfig inputTargetAdminConfig, ClusterManifestGeneratorSettings inputClusterManifestGeneratorSettings, FabricSettingsMetadata currentFabricSettingsMetadata, ClusterManifestType existingClusterManifest) { if (this.TargetCsmConfig.IsLinuxVM) { return(this.FabricSettingsActivator.CreateLinuxSettingsGenerator(inputTargetUserConfig, inputTargetAdminConfig, currentFabricSettingsMetadata, existingClusterManifest, inputClusterManifestGeneratorSettings, this.TraceLogger)); } else { return(this.FabricSettingsActivator.CreateWindowsSettingsGenerator(inputTargetUserConfig, inputTargetAdminConfig, currentFabricSettingsMetadata, existingClusterManifest, inputClusterManifestGeneratorSettings, this.TraceLogger)); } }
public SettingsValidator( IUserConfig clusterProperties, FabricSettingsMetadata fabricSettingsMetadata, IDictionary <string, HashSet <string> > requiredParameters, ClusterManifestGeneratorSettings clusterManifestGeneratorSettings) { clusterProperties.MustNotBeNull("clusterProperties"); requiredParameters.MustNotBeNull("fabricSettingsMetadata"); requiredParameters.MustNotBeNull("requiredParameters"); this.clusterProperties = clusterProperties; this.fabricSettingsMetadata = fabricSettingsMetadata; this.clusterManifestGeneratorSettings = clusterManifestGeneratorSettings; this.requiredParameters = new Dictionary <string, HashSet <string> >( requiredParameters, StringComparer.OrdinalIgnoreCase); }
protected ClusterManifestBuilder( IClusterTopology topology, SeedNodeSelector seedNodeSelector, IUserConfig targetCsmConfig, IAdminConfig targetWrpConfig, ClusterNodeConfig targetNodeConfig, IManifestVersionGenerator versionGenerator, IFabricSettingsActivator fabricSettingsActivator, ClusterManifestGeneratorSettings clusterManifestGeneratorSettings, ITraceLogger traceLogger) { this.Topology = topology; this.SeedNodeSelector = seedNodeSelector; this.TargetCsmConfig = targetCsmConfig; this.TargetWrpConfig = targetWrpConfig; this.TargetNodeConfig = targetNodeConfig; this.VersionGenerator = versionGenerator; this.FabricSettingsActivator = fabricSettingsActivator; this.ClusterManifestGeneratorSettings = clusterManifestGeneratorSettings; this.TraceLogger = traceLogger; }