NumaNode 클래스
The NumaNode object represents the settings for a NUMA node on an instance of SQL Server.
상속 계층
System.Object
Microsoft.SqlServer.Management.Smo.NumaNode
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)
구문
‘선언
Public NotInheritable Class NumaNode
‘사용 방법
Dim instance As NumaNode
public sealed class NumaNode
public ref class NumaNode sealed
[<SealedAttribute>]
type NumaNode = class end
public final class NumaNode
NumaNode 유형에서 다음 멤버를 표시합니다.
속성
이름 | 설명 | |
---|---|---|
![]() |
AffinityMask | Gets or sets the affinity type for the NUMA node represented by this NumaNode object. |
![]() |
Cpus | Gets a collection of Cpu objects that belong to this NumaNode object. |
![]() |
GroupID | Gets the GroupID that is assigned to this NUMA node. |
![]() |
ID | Gets the ID of the NUMA node that is represented by this NumaNode object. |
맨 위로 이동
메서드
이름 | 설명 | |
---|---|---|
![]() |
Equals | (Object에서 상속됨) |
![]() |
GetHashCode | (Object에서 상속됨) |
![]() |
GetType | (Object에서 상속됨) |
![]() |
ToString | (Object에서 상속됨) |
맨 위로 이동
주의
Access to the NumaNode object is though the AffinityInfo object that is contained in the Server object.
예
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);
}
}
}
}
스레드 보안
이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.