You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Bhuvan Arumugam (JIRA)" <ji...@apache.org> on 2014/09/17 01:31:35 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 ]
Bhuvan Arumugam updated MESOS-1643:
-----------------------------------
Target Version/s: 0.20.1
Fix Version/s: (was: 0.21.0)
0.20.1
trivial enough to accomodate in 0.20.1.
> 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.20.1
>
>
> 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)