[ 
https://issues.apache.org/jira/browse/MESOS-3955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15023812#comment-15023812
 ] 

Guangya Liu edited comment on MESOS-3955 at 1/3/16 9:13 AM:
------------------------------------------------------------

https://reviews.apache.org/r/40529/


was (Author: gyliu):
https://reviews.apache.org/r/40524/
https://reviews.apache.org/r/40529/

> Add helper function to get stateless resources.
> -----------------------------------------------
>
>                 Key: MESOS-3955
>                 URL: https://issues.apache.org/jira/browse/MESOS-3955
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: Guangya Liu
>            Assignee: Guangya Liu
>
> Stateless are {{No Persistent Volume}} resources, it’s used by allocator to 
> calculate optimised resources (reserved().stateless() -allocated()).
> {code}
> class Resources {
>   ...
>  // Tests if the given Resource object has no stateful elements.
>  static bool isStateless(const Resource& resource);
>  ...
>  // Returns the resources that do not have stateful elements.
>  Resources stateless() const;
>  ...
> }
> {code}



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

Reply via email to