Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor registry for support setting service available #11

Merged
merged 1 commit into from
Apr 25, 2016

Conversation

qdaxb
Copy link
Collaborator

@qdaxb qdaxb commented Apr 25, 2016

#11

  • 增加switcher listener支持
  • 重构registry,增加对服务可用性的控制接口

@qdaxb qdaxb force-pushed the support_setting_service_avaiable branch from 380e949 to 946ee4d Compare April 25, 2016 13:19
@half-dead half-dead merged commit 4cc538f into weibocom:master Apr 25, 2016
@qdaxb qdaxb deleted the support_setting_service_avaiable branch April 25, 2016 15:25
ConsulService service = buildService(url);
client.registerService(service);
heartbeatManager.addHeartbeatServcieId(service.getId());
registeredUrls.putIfAbsent(url, client);
getRegisteredServiceUrls().add(url);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ConsulRegistry里的add和remove操作是不是和AbstractRegistry里的重复了

@qichangyu qichangyu mentioned this pull request Aug 23, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants