public interface ServiceInstances extends ServiceMetadata
| Modifier and Type | Method and Description |
|---|---|
Instance |
getInstance(Node node)
get instance by host and port
|
Instance |
getInstance(String id)
get instance by id
|
List<Instance> |
getInstances()
获取服务实例列表
|
String |
getRevision()
获取唯一标识信息
|
ServiceKey |
getServiceKey()
获取服务标识
|
int |
getTotalWeight()
获取服务实例总权重值
|
boolean |
isInitialized()
服务实例列表是否已经加载
|
getMetadatagetNamespace, getServiceServiceKey getServiceKey()
int getTotalWeight()
boolean isInitialized()
String getRevision()
Instance getInstance(Node node)
node - host and portCopyright © 2024. All rights reserved.