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

Vinod Kone resolved MESOS-1643.
-------------------------------
       Resolution: Fixed
    Fix Version/s: 0.21.0

commit 18344e03e4bcfde6157997e28265084e2e10d971
Author: Zuyu Zhang <hit...@gmail.com>
Date:   Tue Sep 2 21:38:06 2014 -0700

    Added Resources support to return the port range for the given number of 
ports.
    
    Review: https://reviews.apache.org/r/24810


> 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