Compartilhar via


Classe NumaNode

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

Hierarquia de herança

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

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

Sintaxe

'Declaração
Public NotInheritable Class NumaNode
'Uso
Dim instance As NumaNode
public sealed class NumaNode
public ref class NumaNode sealed
[<SealedAttribute>]
type NumaNode =  class end
public final class NumaNode

O tipo NumaNode expõe os membros a seguir.

Propriedades

  Nome Descrição
Propriedade pública AffinityMask Gets or sets the affinity type for the NUMA node represented by this NumaNode object.
Propriedade pública Cpus Gets a collection of Cpu objects that belong to this NumaNode object.
Propriedade pública GroupID Gets the GroupID that is assigned to this NUMA node.
Propriedade pública ID Gets the ID of the NUMA node that is represented by this NumaNode object.

Início

Métodos

  Nome Descrição
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString (Herdado de Object.)

Início

Comentários

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

Exemplos

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);
            }
        }
    }
}

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.

Consulte também

Referência