[ 
https://issues.apache.org/jira/browse/MESOS-1643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinod Kone updated MESOS-1643:
------------------------------
    Fix Version/s:     (was: 0.20.1)
                   0.21.0

> Provide APIs to return port resource for a given role
> -----------------------------------------------------
>
>                 Key: MESOS-1643
>                 URL: https://issues.apache.org/jira/browse/MESOS-1643
>             Project: Mesos
>          Issue Type: Improvement
>            Reporter: Zuyu Zhang
>            Assignee: Zuyu Zhang
>            Priority: Trivial
>             Fix For: 0.21.0
>
>
> It makes more sense to return port resource for a given role, rather than all 
> ports in Resources.
> In mesos/resource.hpp:
> Option<Value::Ranges> Resources::ports(const string& role = "*");
> // Check whether Resources have the given number (num_port) of ports, and 
> return the begin number of the port range.
> Option<long> Resources::getPorts(long num_port, const string& role = "*");



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to