public HDInsightOverrideHandlers(IVersionFinderClient versionFinder,
                                  IHDInsightManagementRestUriBuilder uriBuilder,
                                  IPayloadConverter payloadConverter)
 {
     this.VersionFinder    = versionFinder;
     this.UriBuilder       = uriBuilder;
     this.PayloadConverter = payloadConverter;
 }
 public HDInsightOverrideHandlers(IVersionFinderClient versionFinder, 
                                  IHDInsightManagementRestUriBuilder uriBuilder, 
                                  IPayloadConverter payloadConverter)
 {
     this.VersionFinder = versionFinder;
     this.UriBuilder = uriBuilder;
     this.PayloadConverter = payloadConverter;
 }
Beispiel #3
0
        private void AssertSupportedVersion(Version hdinsightClusterVersion, IVersionFinderClient versionFinderClient)
        {
            switch (versionFinderClient.GetVersionStatus(hdinsightClusterVersion))
            {
            case VersionStatus.Obsolete:
                throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, HDInsightConstants.ClusterVersionTooLowForJobSubmissionOperations, hdinsightClusterVersion.ToString(), HDInsightSDKSupportedVersions.MinVersion, HDInsightSDKSupportedVersions.MaxVersion));

            case VersionStatus.ToolsUpgradeRequired:
                throw new NotSupportedException(string.Format(CultureInfo.CurrentCulture, HDInsightConstants.ClusterVersionTooHighForJobSubmissionOperations, hdinsightClusterVersion.ToString(), HDInsightSDKSupportedVersions.MinVersion, HDInsightSDKSupportedVersions.MaxVersion));
            }
        }