mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kapil Arya (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MESOS-7467) Update Module interface to accept master/agent flags and return a managed pointer.
Date Sat, 06 May 2017 21:40:04 GMT

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

Kapil Arya updated MESOS-7467:
------------------------------
    Description: 
Currently, the module create signature looks like
{code}
T* create(const Parameters&);
{code};

The proposal is to change the signature to look like:

{code}
struct ModuleInfo {
  Option<Parameters> parameters;
  Option<master::Flags> masterFlags;
  Option<slave::Flags> slaveFlags;
};

shared_ptr<T> create(const ModuleInfo&);
{code}

As a side effect, it would require us to expose master/agent flags in public headers.

> Update Module interface to accept master/agent flags and return a managed pointer.
> ----------------------------------------------------------------------------------
>
>                 Key: MESOS-7467
>                 URL: https://issues.apache.org/jira/browse/MESOS-7467
>             Project: Mesos
>          Issue Type: Task
>          Components: modules
>            Reporter: Kapil Arya
>            Assignee: Kapil Arya
>
> Currently, the module create signature looks like
> {code}
> T* create(const Parameters&);
> {code};
> The proposal is to change the signature to look like:
> {code}
> struct ModuleInfo {
>   Option<Parameters> parameters;
>   Option<master::Flags> masterFlags;
>   Option<slave::Flags> slaveFlags;
> };
> shared_ptr<T> create(const ModuleInfo&);
> {code}
> As a side effect, it would require us to expose master/agent flags in public headers.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message