NodeContext Class
- java.
lang. Object - system.
fabric. NodeContext
- system.
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. |
Node |
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:
Method Details
getIpAddressOrFQDN
public String getIpAddressOrFQDN()
Gets the IP address or the fully qualified domain name of the node.
Returns:
getNodeId
getNodeInstanceId
public BigInteger getNodeInstanceId()
Gets the node instance ID.
Returns:
getNodeName
public String getNodeName()
Gets the node name.
Returns:
getNodeType
public String getNodeType()
Gets the node type.
Returns:
toString
public String toString()
Prints nodeName, nodeId, nodeInstanceId, nodeType, ipAddressOrFQDN.
Applies to
Azure SDK for Java