| Package | Description |
|---|---|
| com.tencent.polaris.api.pojo | |
| com.tencent.polaris.api.rpc | |
| com.tencent.polaris.client.pojo | |
| com.tencent.polaris.client.util |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultInstance |
| Modifier and Type | Method and Description |
|---|---|
static Instance |
Instance.createDefaultInstance(String instId,
String namespace,
String service,
String host,
int port) |
Instance |
ServiceChangeEvent.OneInstanceUpdate.getAfter() |
Instance |
ServiceChangeEvent.OneInstanceUpdate.getBefore() |
Instance |
InstanceGauge.getInstance()
获取实例
|
Instance |
DefaultServiceInstances.getInstance(Node node) |
Instance |
ServiceInstances.getInstance(Node node)
get instance by host and port
|
Instance |
ServiceInstancesWrap.getInstance(Node node) |
Instance |
DefaultServiceInstances.getInstance(String id) |
Instance |
ServiceInstances.getInstance(String id)
get instance by id
|
Instance |
ServiceInstancesWrap.getInstance(String id) |
| Modifier and Type | Method and Description |
|---|---|
List<Instance> |
ServiceChangeEvent.getAddInstances() |
List<Instance> |
ServiceChangeEvent.getAllInstances() |
List<Instance> |
ServiceInstancesWrap.getAllInstances() |
List<Instance> |
ServiceChangeEvent.getDeleteInstances() |
List<Instance> |
DefaultServiceInstances.getInstances() |
List<Instance> |
ServiceInstances.getInstances()
获取服务实例列表
|
List<Instance> |
ServiceInstancesWrap.getInstances() |
| Modifier and Type | Method and Description |
|---|---|
int |
DefaultInstance.compareTo(Instance instance) |
void |
InstanceGauge.setInstance(Instance instance)
设置实例信息
|
| Modifier and Type | Method and Description |
|---|---|
ServiceChangeEvent.ServiceEventBuilder |
ServiceChangeEvent.ServiceEventBuilder.addInstances(List<Instance> addInstances) |
ServiceChangeEvent.ServiceEventBuilder |
ServiceChangeEvent.ServiceEventBuilder.allInstances(List<Instance> allInstances) |
ServiceChangeEvent.ServiceEventBuilder |
ServiceChangeEvent.ServiceEventBuilder.deleteInstances(List<Instance> deleteInstances) |
void |
ServiceInstancesWrap.setInstances(List<Instance> instances) |
| Constructor and Description |
|---|
OneInstanceUpdate(Instance before,
Instance after) |
| Constructor and Description |
|---|
DefaultServiceInstances(ServiceKey serviceKey,
List<Instance> instances) |
ServiceInstancesWrap(ServiceInstances serviceInstances,
List<Instance> instances,
int totalWeight) |
| Modifier and Type | Method and Description |
|---|---|
Instance |
ServiceCallResult.getInstance() |
| Modifier and Type | Method and Description |
|---|---|
void |
ServiceCallResult.setInstance(Instance instance) |
| Modifier and Type | Class and Description |
|---|---|
class |
InstanceByProto
通过PB对象封装的实例信息
|
| Modifier and Type | Method and Description |
|---|---|
List<Instance> |
ServiceInstancesByProto.getInstances() |
| Modifier and Type | Method and Description |
|---|---|
int |
InstanceByProto.compareTo(Instance instance) |
| Modifier and Type | Method and Description |
|---|---|
static List<Instance> |
Utils.checkAddInstances(ServiceInstancesByProto oldVal,
ServiceInstancesByProto newVal) |
static List<Instance> |
Utils.checkDeleteInstances(ServiceInstancesByProto oldVal,
ServiceInstancesByProto newVal) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Utils.isHealthyInstance(Instance instance) |
Copyright © 2024. All rights reserved.