你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ResolvedServicePartition Class
- java.
lang. Object - system.
fabric. ResolvedServicePartition
- system.
public class ResolvedServicePartition
Represents a data structure that contains information on the partitioning and set of endpoints to which the specified Service partition listens.
Field Summary
Modifier and Type | Field and Description |
---|---|
long | resolvedServicePartitionResultNative |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
compareVersion(ResolvedServicePartition other)
Compares two resolved service partitions and identifies which is newer. |
Resolved |
getEndpoint()
Gets the endpoints of the service partition. |
List<Resolved |
getEndpoints()
Returns a single endpoint, instead of a collection of all endpoints.
Remarks:Many times, you only need a single endpoint instead of all the endpoints. If the service is stateless, it returns a random endpoint. If the service is a stateful service, than it returns the endpoint to which the Primary replica of the service partition listens. Note that if the Primary replica currently does not exist, it throws FabricException. |
URI |
getServiceName()
Gets the name of the service instance. |
Service |
getServicePartitionInfo()
Gets information about the partition of the service that was resolved. |
String |
toString()
Get the system.fabric.ResolvedServicePartition instance values as a String. |
Field Details
resolvedServicePartitionResultNative
public long resolvedServicePartitionResultNative
Method Details
compareVersion
public int compareVersion(ResolvedServicePartition other)
Compares two resolved service partitions and identifies which is newer.
Parameters:
Returns:
getEndpoint
public ResolvedServiceEndpoint getEndpoint()
Gets the endpoints of the service partition.
Returns:
getEndpoints
public List
Returns a single endpoint, instead of a collection of all endpoints.
Remarks:Many times, you only need a single endpoint instead of all the endpoints. If the service is stateless, it returns a random endpoint. If the service is a stateful service, than it returns the endpoint to which the Primary replica of the service partition listens. Note that if the Primary replica currently does not exist, it throws FabricException.
Returns:
getServiceName
public URI getServiceName()
Gets the name of the service instance.
Returns:
getServicePartitionInfo
public ServicePartitionInformation getServicePartitionInfo()
Gets information about the partition of the service that was resolved.
Returns:
toString
public String toString()
Get the system.fabric.ResolvedServicePartition instance values as a String.
Returns: