|
|
@ -30,7 +30,6 @@ import com.tencent.polaris.client.api.SDKContext;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.cloud.client.DefaultServiceInstance;
|
|
|
|
import org.springframework.cloud.client.DefaultServiceInstance;
|
|
|
|
import org.springframework.cloud.client.ServiceInstance;
|
|
|
|
|
|
|
|
import org.springframework.cloud.client.serviceregistry.Registration;
|
|
|
|
import org.springframework.cloud.client.serviceregistry.Registration;
|
|
|
|
import org.springframework.lang.Nullable;
|
|
|
|
import org.springframework.lang.Nullable;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
@ -40,7 +39,7 @@ import org.springframework.util.CollectionUtils;
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @author Haotian Zhang, Andrew Shan, Jie Cheng, Palmer.Xu
|
|
|
|
* @author Haotian Zhang, Andrew Shan, Jie Cheng, Palmer.Xu
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class PolarisRegistration implements Registration, ServiceInstance {
|
|
|
|
public class PolarisRegistration implements Registration {
|
|
|
|
|
|
|
|
|
|
|
|
private final static String METADATA_KEY_IP = "internal-ip";
|
|
|
|
private final static String METADATA_KEY_IP = "internal-ip";
|
|
|
|
|
|
|
|
|
|
|
|