public class ServiceCallResult extends Object implements InstanceGauge
| Constructor and Description |
|---|
ServiceCallResult() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCallerIp()
获取主调节点的IP信息
|
Service |
getCallerService()
获取主调服务信息
|
Long |
getDelay()
获取服务调用时延
|
String |
getHost()
获取节点信息
|
Instance |
getInstance()
获取实例
|
String |
getInstanceId()
获取服务实例ID
|
String |
getLabels()
Deprecated.
|
String |
getMethod()
获取方法名
|
String |
getNamespace()
获取名字空间
|
int |
getPort()
获取端口信息
|
Integer |
getRetCode()
服务调用返回码
|
RetStatus |
getRetStatus()
获取服务调用状态
|
String |
getRuleName()
当 RetStatus 为 flow_control 或者 reject 时,需要设置生效的规则名称
|
String |
getService()
获取服务名
|
String |
getSubset()
获取实例分组
|
Map<String,com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> |
getSubsetMetadata()
获取服务实例分组的过滤标签
|
void |
setCallerIp(String callerIp) |
void |
setCallerService(Service callerService) |
void |
setDelay(long delay) |
void |
setHost(String host) |
void |
setInstance(Instance instance)
设置实例信息
|
void |
setLabels(String labels)
Deprecated.
|
void |
setMethod(String method) |
void |
setNamespace(String namespace) |
void |
setPort(int port) |
void |
setRetCode(int retCode) |
void |
setRetStatus(RetStatus retStatus) |
void |
setRuleName(String ruleName) |
void |
setService(String service) |
void |
setSubset(String subset) |
void |
setSubsetMetadata(Map<String,com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> subsetMetadata) |
String |
toString() |
public String getHost()
InstanceGaugegetHost in interface InstanceGaugepublic void setHost(String host)
public int getPort()
InstanceGaugegetPort in interface InstanceGaugepublic void setPort(int port)
public RetStatus getRetStatus()
InstanceGaugegetRetStatus in interface InstanceGaugepublic void setRetStatus(RetStatus retStatus)
public String getNamespace()
ServicegetNamespace in interface Servicepublic void setNamespace(String namespace)
public String getService()
ServicegetService in interface Servicepublic void setService(String service)
public String getInstanceId()
InstanceGaugegetInstanceId in interface InstanceGaugepublic Integer getRetCode()
InstanceGaugegetRetCode in interface InstanceGaugepublic void setRetCode(int retCode)
public Long getDelay()
InstanceGaugegetDelay in interface InstanceGaugepublic void setDelay(long delay)
public Instance getInstance()
InstanceGaugegetInstance in interface InstanceGaugepublic void setInstance(Instance instance)
InstanceGaugesetInstance in interface InstanceGaugeinstance - 实例数据@Deprecated public String getLabels()
InstanceGaugegetLabels in interface InstanceGauge@Deprecated public void setLabels(String labels)
labels - labelspublic String getSubset()
InstanceGaugegetSubset in interface InstanceGaugepublic void setSubset(String subset)
public String getMethod()
InstanceGaugegetMethod in interface InstanceGaugepublic void setMethod(String method)
public Service getCallerService()
InstanceGaugegetCallerService in interface InstanceGaugepublic void setCallerService(Service callerService)
public String getCallerIp()
InstanceGaugegetCallerIp in interface InstanceGaugepublic void setCallerIp(String callerIp)
public Map<String,com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> getSubsetMetadata()
InstanceGaugegetSubsetMetadata in interface InstanceGaugepublic void setSubsetMetadata(Map<String,com.tencent.polaris.specification.api.v1.model.ModelProto.MatchString> subsetMetadata)
public String getRuleName()
InstanceGaugegetRuleName in interface InstanceGaugepublic void setRuleName(String ruleName)
Copyright © 2023. All rights reserved.