Freigeben über


NumaNode-Klasse

The NumaNode object represents the settings for a NUMA node on an instance of SQL Server.

Vererbungshierarchie

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..NumaNode

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public NotInheritable Class NumaNode
'Usage
Dim instance As NumaNode
public sealed class NumaNode
public ref class NumaNode sealed
[<SealedAttribute>]
type NumaNode =  class end
public final class NumaNode

Der NumaNode-Typ macht folgende Elemente verfügbar.

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft AffinityMask Gets or sets the affinity type for the NUMA node represented by this NumaNode object.
Öffentliche Eigenschaft Cpus Gets a collection of Cpu objects that belong to this NumaNode object.
Öffentliche Eigenschaft GroupID Gets the GroupID that is assigned to this NUMA node.
Öffentliche Eigenschaft ID Gets the ID of the NUMA node that is represented by this NumaNode object.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Hinweise

Access to the NumaNode object is though the AffinityInfo object that is contained in the Server object.

Beispiele

The following example shows how to display all the NUMA nodes on the local instance of SQL Server and the CPUs that belong to each NUMA node.

using System;
using Microsoft.SqlServer.Management.Smo;

namespace samples
{
    class Program
    {
        static void Main(string[] args)
        {
            Server dbServer = new Server("(local)");
            dbServer.Refresh();
            foreach (NumaNode node in dbServer.AffinityInfo.NumaNodes)
            {
                //Display the AffinityMask, GroupID and ID of
                //each NUMA node.
                Console.WriteLine("AffinityMask: {0}\n" +
                                  "GroupID:      {1}\n" +
"ID:           {2}\n",
                    node.AffinityMask.ToString(),
                    node.GroupID, node.ID);
                //Display the ID of each CPU that belongs
                //to this NUMA node.
                Console.Write("CPUS          :");
                foreach(Cpu cpu in node.Cpus)
                    Console.Write("{0} ", cpu.ID);
            }
        }
    }
}

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.