You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Dominic Hamon (JIRA)" <ji...@apache.org> on 2014/08/04 20:50:11 UTC

[jira] [Updated] (MESOS-1643) Provide APIs to return port resource for a given role

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

Dominic Hamon updated MESOS-1643:
---------------------------------

    Shepherd: Vinod Kone
    Assignee: Zuyu Zhang

> 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
>
> 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.2#6252)