Compartir vía


GatewayInformation Class

  • java.lang.Object
    • system.fabric.GatewayInformation

public class GatewayInformation

Contains information identifying a Service Fabric node in the cluster.

Constructor Summary

Constructor Description
GatewayInformation(String nodeAddress, NodeId nodeId, BigInteger nodeInstanceId, String nodeName)

Initializes a new instance of system.fabric.GatewayInformation.

Method Summary

Modifier and Type Method and Description
String getNodeAddress()

Gets the address that Service Fabric clients use when connecting to this node (as specified in the Cluster Manifest).

NodeId getNodeId()

The unique identifier used internally by Service Fabric to identify a node.

BigInteger getNodeInstanceId()

The instance of a Service Fabric node changes when the node is restarted.

String getNodeName()

The friendly name of the Service Fabric node (defined in the Cluster Manifest) used to generate the NodeId.

Constructor Details

GatewayInformation

public GatewayInformation(String nodeAddress, NodeId nodeId, BigInteger nodeInstanceId, String nodeName)

Initializes a new instance of system.fabric.GatewayInformation.

Parameters:

nodeAddress - The address that Service Fabric clients use when connecting to this node (as specified in the Cluster Manifest).
nodeId - The unique identifier used internally by Service Fabric to identify a node.
nodeInstanceId - The instance of a Service Fabric node changes when the node is restarted.
nodeName - The friendly name of the Service Fabric node (defined in the Cluster Manifest) used to generate the NodeId.

Method Details

getNodeAddress

public String getNodeAddress()

Gets the address that Service Fabric clients use when connecting to this node (as specified in the Cluster Manifest).

Returns:

The address that Service Fabric clients use when connecting to this node (as specified in the Cluster Manifest).

getNodeId

public NodeId getNodeId()

The unique identifier used internally by Service Fabric to identify a node.

Returns:

Returns NodeId.

getNodeInstanceId

public BigInteger getNodeInstanceId()

The instance of a Service Fabric node changes when the node is restarted.

Returns:

Returns java.math.BigInteger.

getNodeName

public String getNodeName()

The friendly name of the Service Fabric node (defined in the Cluster Manifest) used to generate the NodeId.

Returns:

Returns java.lang.String.

Applies to