예제 #1
0
        internal static bool IsFabricInstalled(string machineName)
        {
            bool result = true;

            try
            {
                if (NodeConfiguration.GetNodeConfiguration(machineName) == null &&
                    !FabricDeployerServiceController.ServiceExists(System.Fabric.FabricDeployer.Constants.FabricHostServiceName, machineName))
                {
                    SFDeployerTrace.WriteNoise(StringResources.Info_BPAFabricNotInstalledOnMachine, machineName);
                    result = false;
                }
            }
            catch (System.Fabric.FabricException ex)
            {
                SFDeployerTrace.WriteNoise(StringResources.Info_BPAFabricInstalledHitFabricException_Formatted, machineName, ex);
                result = false;
            }
            catch (System.InvalidOperationException ex /*Internal exception: System.Xml.Schema.InvalidOperationException*/)
            {
                SFDeployerTrace.WriteNoise(StringResources.Info_BPAFabricInstalledHitIOX_Formatted, machineName, ex);
                result = false;
            }

            SFDeployerTrace.WriteNoise(StringResources.Info_BPAFabricInstalledOnMachine, machineName, result);

            return(result);
        }
예제 #2
0
        protected override void ProcessRecord()
        {
            var clusterManifestType = NodeConfiguration.GetNodeConfiguration();

            if (clusterManifestType == null)
            {
                this.WriteWarning("Node is not configured.");
            }

            this.WriteObject(clusterManifestType);
        }