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

[Improve]Optimize the resource manager logic #3467

Closed
wants to merge 6 commits into from

Conversation

monrg
Copy link
Contributor

@monrg monrg commented Jan 8, 2024

What changes were proposed in this pull request

Optimize the resource manager logic
Issue Number: close #3466

Brief change log

Optimize the resource manager logic, use the policy mode to cluster the resource processing logic into a specific class, and decouple from ResourceServiceImpl to improve the extensibility of the code

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:
Manually verified the change by testing locally.

Does this pull request potentially affect one of the following parts

  • Dependencies (does it add or upgrade a dependency): (yes / no)
    no


public class ResourceTypeHandleFactory {

public static ResourceHandle getResourceHandle(
Copy link
Member

Choose a reason for hiding this comment

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

ResourceServiceImpl? I think using interfaces ResourceService would be better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your feedback, it is better to use the interface, I will rethink the design later

@caicancai
Copy link
Member

caicancai commented Jan 8, 2024

@monrg
Hello , excuse me
[improve]Optimize the resource manager logic, pr title change to [Improve]Optimize the resource manager logic

@monrg monrg changed the title [improve]Optimize the resource manager logic, [Improve]Optimize the resource manager logic Jan 8, 2024
@monrg monrg closed this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Optimize the resource manager logic
3 participants