Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Implmenet thread-safe mbean collector #123

Merged
merged 11 commits into from
Nov 30, 2021

Conversation

chia7712
Copy link
Contributor

這是用來示範如何將partitioner中最需要統一管理(因為效能和連線數的考量)的mbean集中化

@chia7712 chia7712 requested a review from wycccccc November 25, 2021 09:07
@chia7712 chia7712 self-assigned this Nov 25, 2021
.collect(Collectors.toList());
}

public Map<Map.Entry<String, Integer>, List<HasBeanObject>> objects() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@wycccccc 這邊的概念就是不管有多少的partitioner,都是共用一個BeanCollector,並且跟BeanCollector索取對應的server:port metrics。換言之,不管是要拿metrics來算分、排序或是做任何事情,他們都不需要再去直接面對MBeanClient

@chia7712 chia7712 mentioned this pull request Nov 25, 2021
@chia7712 chia7712 merged commit 21c67c1 into opensource4you:main Nov 30, 2021
@chia7712 chia7712 deleted the mbean_collector branch December 29, 2021 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant