类 ResourcesResponse

java.lang.Object
com.tencent.polaris.client.flow.ResourcesResponse

public class ResourcesResponse
extends java.lang.Object
Response for resources query request.
作者:
andrewshan
  • 构造器详细资料

    • ResourcesResponse

      public ResourcesResponse()
  • 方法详细资料

    • addServiceInstances

      public void addServiceInstances​(ServiceEventKey svcEventKey, ServiceInstances instances)
      添加服务实例应答
      参数:
      svcEventKey - 服务标识
      instances - 实例列表
    • addServices

      public void addServices​(ServiceEventKey svcEventKey, Services services)
      添加服务应答
      参数:
      svcEventKey - 服务标识
      services - 服务列表
    • getServiceInstances

      public ServiceInstances getServiceInstances​(ServiceEventKey svcEventKey)
      获取服务实例应答对象
      参数:
      svcEventKey - 服务标识
      返回:
      ServiceRuleResponse
    • getAllServiceInstances

      public java.util.Map<ServiceEventKey,​ServiceInstances> getAllServiceInstances()
      获取所有的实例应答缓存
      返回:
      services
    • getAllServiceRules

      public java.util.Map<ServiceEventKey,​ServiceRule> getAllServiceRules()
      获取所有的规则缓应答缓存
      返回:
      rules
    • addServiceRule

      public void addServiceRule​(ServiceEventKey svcEventKey, ServiceRule rule)
      添加规则应答
      参数:
      svcEventKey - 服务标识
      rule - 规则数据
    • getServiceRule

      public ServiceRule getServiceRule​(ServiceEventKey svcEventKey)
      获取规则应答对象
      参数:
      svcEventKey - 服务标识
      返回:
      ServiceRuleResponse
    • getServices

      public Services getServices​(ServiceEventKey svcEventKey)
      获取服务列表应答对象
      参数:
      svcEventKey - 服务标识
      返回:
      Services 服务列表
    • addError

      public void addError​(ServiceEventKey svcEventKey, java.lang.Throwable error)
      添加错误信息
      参数:
      svcEventKey - 服务标识
      error - 异常信息
    • getErrors

      public java.util.Map<ServiceEventKey,​java.lang.Throwable> getErrors()
      返回所有的错误
      返回:
      错我列表