Partager via


NodeContext Classe

  • java.lang.Object
    • system.fabric.NodeContext

public class NodeContext

Classe pour encapsuler un contexte de nœud.

Récapitulatif du constructeur

Constructeur Description
NodeContext(String nodeName, NodeId nodeId, BigInteger nodeInstanceId, String nodeType, String ipAddressOrFQDN)

Initialise une nouvelle instance de la classe system.fabric.NodeContext.

Résumé de la méthode

Modificateur et type Méthode et description
String getIpAddressOrFQDN()

Obtient l’adresse IP ou le nom de domaine complet du nœud.

NodeId getNodeId()

Obtient l’ID du nœud.

BigInteger getNodeInstanceId()

Obtient l’ID de instance du nœud.

String getNodeName()

Obtient le nom du nœud.

String getNodeType()

Obtient le type de nœud.

String toString()

Imprime nodeName, nodeId, nodeInstanceId, nodeType, ipAddressOrFQDN.

Détails du constructeur

NodeContext

public NodeContext(String nodeName, NodeId nodeId, BigInteger nodeInstanceId, String nodeType, String ipAddressOrFQDN)

Initialise une nouvelle instance de la classe system.fabric.NodeContext.

Paramètres:

nodeName - Nom du nœud.
nodeId - ID de nœud.
nodeInstanceId - ID instance nœud.
nodeType - Type de nœud.
ipAddressOrFQDN - Adresse IP ou nom de domaine complet du nœud.

Détails de la méthode

getIpAddressOrFQDN

public String getIpAddressOrFQDN()

Obtient l’adresse IP ou le nom de domaine complet du nœud.

Retours:

Renvoie String.

getNodeId

public NodeId getNodeId()

Obtient l’ID du nœud.

Retours:

Retourne NodeId.

getNodeInstanceId

public BigInteger getNodeInstanceId()

Obtient l’ID de instance du nœud.

Retours:

Retourne BigInteger.

getNodeName

public String getNodeName()

Obtient le nom du nœud.

Retours:

Renvoie String.

getNodeType

public String getNodeType()

Obtient le type de nœud.

Retours:

Renvoie String.

toString

public String toString()

Imprime nodeName, nodeId, nodeInstanceId, nodeType, ipAddressOrFQDN.

S’applique à