Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7467

Update Module interface to accept master/agent flags and return a managed pointer.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Accepted
    • Major
    • Resolution: Unresolved
    • None
    • None
    • modules

    Description

      Currently, the module create signature looks like

      T* create(const Parameters&);
      

      The proposal is to change the signature to look like:

      struct ModuleInfo {
        Option<Parameters> parameters;
        Option<master::Flags> masterFlags;
        Option<slave::Flags> slaveFlags;
      };
      
      shared_ptr<T> create(const ModuleInfo&);
      

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

      Attachments

        Activity

          People

            karya Kapil Arya
            karya Kapil Arya
            Till Toenshoff Till Toenshoff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: