[ https://issues.apache.org/jira/browse/YARN-7316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16226124#comment-16226124 ]
Sunil G commented on YARN-7316: ------------------------------- I think it was mainly because of a readability and to go with a common approach similar to other apis. Some of the apis in Resources class doesnt need calculator also. This gives a common view that any ops on Resource objects could be done via static methods in Resources class. Other than that there is no other reasons to me. > Cleaning up the usage of Resources and ResourceCalculator > --------------------------------------------------------- > > Key: YARN-7316 > URL: https://issues.apache.org/jira/browse/YARN-7316 > Project: Hadoop YARN > Issue Type: Sub-task > Affects Versions: 3.1.0 > Reporter: lovekesh bansal > Assignee: lovekesh bansal > Priority: Minor > Fix For: 3.1.0 > > Attachments: YARN-7316_trunk.001.patch > > > Cleaning up and Uniformizing the usage the usage of Resources and > ResourceCalculator. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org