Meng Zhu created MESOS-9608:
-------------------------------

             Summary: Refactor and Improve `class ResourceQuantity`.
                 Key: MESOS-9608
                 URL: https://issues.apache.org/jira/browse/MESOS-9608
             Project: Mesos
          Issue Type: Improvement
            Reporter: Meng Zhu


Currently, the `ResourceQuantity` only provides a minimal map interface with no 
built-in arithmetic and contains operations. This makes it unwieldy.

The intention was to avoid the ambiguities between "absent-means-zero" 
(guarantee like semantic) and "absent-means-infinite" (limits like semantic). 
Instead of only providing a minimal interface and leave the rest to the caller, 
we should provide two classes for each semantic:

- "ResourceQuantities" will have "absent-means-zero" semantic
- "ResourceLimits" will  have "absent-means-infinite" semantic

We can have both classes derived from the current class (rename to 
"ResourceMap") to save some common logic.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to