[ 
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)

Reply via email to