|
|
|
@ -24,11 +24,14 @@ import org.springframework.cloud.client.ServiceInstance;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author xiaojing
|
|
|
|
|
* @author changjin wei(魏昌进)
|
|
|
|
|
*/
|
|
|
|
|
public class NacosServiceInstance implements ServiceInstance {
|
|
|
|
|
|
|
|
|
|
private String serviceId;
|
|
|
|
|
|
|
|
|
|
private String instanceId;
|
|
|
|
|
|
|
|
|
|
private String host;
|
|
|
|
|
|
|
|
|
|
private int port;
|
|
|
|
@ -42,6 +45,11 @@ public class NacosServiceInstance implements ServiceInstance {
|
|
|
|
|
return serviceId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getInstanceId() {
|
|
|
|
|
return instanceId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getHost() {
|
|
|
|
|
return host;
|
|
|
|
@ -71,6 +79,10 @@ public class NacosServiceInstance implements ServiceInstance {
|
|
|
|
|
this.serviceId = serviceId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setInstanceId(String instanceId) {
|
|
|
|
|
this.instanceId = instanceId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setHost(String host) {
|
|
|
|
|
this.host = host;
|
|
|
|
|
}
|
|
|
|
|