다음을 통해 공유


NodeContext Class

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

public class NodeContext

Class to encapsulate a node context.

Constructor Summary

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

Initializes a new instance of the system.fabric.NodeContext class.

Method Summary

Modifier and Type Method and Description
String getIpAddressOrFQDN()

Gets the IP address or the fully qualified domain name of the node.

NodeId getNodeId()

Gets the node ID.

BigInteger getNodeInstanceId()

Gets the node instance ID.

String getNodeName()

Gets the node name.

String getNodeType()

Gets the node type.

String toString()

Prints nodeName, nodeId, nodeInstanceId, nodeType, ipAddressOrFQDN.

Constructor Details

NodeContext

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

Initializes a new instance of the system.fabric.NodeContext class.

Parameters:

nodeName - The node name.
nodeId - The node id.
nodeInstanceId - The node instance id.
nodeType - The node type.
ipAddressOrFQDN - The IP address or FQDN of the node.

Method Details

getIpAddressOrFQDN

public String getIpAddressOrFQDN()

Gets the IP address or the fully qualified domain name of the node.

Returns:

Returns String.

getNodeId

public NodeId getNodeId()

Gets the node ID.

Returns:

Returns NodeId.

getNodeInstanceId

public BigInteger getNodeInstanceId()

Gets the node instance ID.

Returns:

Returns BigInteger.

getNodeName

public String getNodeName()

Gets the node name.

Returns:

Returns String.

getNodeType

public String getNodeType()

Gets the node type.

Returns:

Returns String.

toString

public String toString()

Prints nodeName, nodeId, nodeInstanceId, nodeType, ipAddressOrFQDN.

Applies to