Eureka客户端 -- 接口

com.netflix.discovery
public interface EurekaClient

/*常用方法*/

// 获取某个应用
Application getApplication(String appName);

// 获取所有应用
Applications getApplications();

Eureka客户端 -- 实现类

com.netflix.discovery
public class DiscoveryClient implements EurekaClient

应用

com.netflix.discovery.shared
public class Application

/*常用方法*/

// 添加实例
public void addInstance(InstanceInfo i)

// 删除实例
public void removeInstance(InstanceInfo i)

// 查看所有的实例
public List<InstanceInfo> getInstances()

实例

com.netflix.appinfo
public class InstanceInfo

/*常用方法*/

// 获取应用名
public String getAppName()

// 获取原始的实例ID
public String getInstanceId()

// 获取首页地址
public String getHomePageUrl()

相关文章:

  • 2022-12-23
  • 2021-09-09
  • 2021-06-05
  • 2021-06-01
  • 2021-12-16
  • 2021-11-15
  • 2021-06-30
  • 2021-07-17
猜你喜欢
  • 2021-06-11
  • 2022-01-03
  • 2021-04-12
  • 2021-11-26
  • 2021-09-06
  • 2021-08-28
相关资源
相似解决方案