你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResolvedServiceEndpoint Class

  • java.lang.Object
    • system.fabric.ResolvedServiceEndpoint

public class ResolvedServiceEndpoint

Represents a resolved service endpoint, which contains information about service partition replica role and the address it listens to.

Method Summary

Modifier and Type Method and Description
String getAddress()

Gets the address for the endpoint. The service replica gives this string to Service Fabric to let users know where it can be reached.

ServiceEndpointRole getRole()

Gets the role of a service endpoint.

String toString()

Prints role and address of the service endpoint.

Method Details

getAddress

public String getAddress()

Gets the address for the endpoint. The service replica gives this string to Service Fabric to let users know where it can be reached.

Returns:

The address for the endpoint where the service replica or instance can be reached.

getRole

public ServiceEndpointRole getRole()

Gets the role of a service endpoint.

Returns:

The role of a service endpoint.

toString

public String toString()

Prints role and address of the service endpoint.

Applies to