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

[METRICS] Implementation of fixed receiver #1795

Merged

Conversation

garyparrot
Copy link
Collaborator

Resolve #1710

這個 PR 實作一個新的 Metric Store receiver Receiver#fixed(Map<Integer, Collection<BeanObject>)

這個 Receiver 只會在第一次呼叫 receive 時回傳建立時提供的 Beans,然後就不再回傳任何新的 Beans。後面這個會和 #1769 的序列化功能搭配,從檔案系統將 BeanObjects 還原回 Map<Integer, Collection<BeanObject>,然後把這個東西當做輸入給 Receiver 的輸出使用,而後從 MetricStore#clusterBean 取得最後的 ClusterBean 物件。

這個大致上是後面 benchmark 的 ClusterBean 還原方法。

@garyparrot garyparrot self-assigned this May 30, 2023
@garyparrot garyparrot changed the title [METRICS] Add fixed receiver [METRICS] Implementation of fixed receiver May 30, 2023
Copy link
Contributor

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM

這個手法簡單巧妙,很棒

@garyparrot garyparrot merged commit baea43d into opensource4you:main May 30, 2023
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.

[SERIALIZATION] ClusterBean Serialization
2 participants