Revision 4697f1ee src/scheduler/include/VirtualMachineXML.h

View differences:

src/scheduler/include/VirtualMachineXML.h
116 116
        return ds_requirements;
117 117
    }
118 118

  
119
    const string& get_cluster_requirements()
120
    {
121
        return cluster_requirements;
122
    };
123

  
119 124
    void get_requirements (int& cpu, int& memory, long long& disk,
120 125
        vector<VectorAttribute *> &pci);
121 126

  
......
156 161
    }
157 162

  
158 163
    /**
164
     *  Adds a matching cluster
165
     *    @param oid of the cluster
166
     */
167
    void add_match_cluster(int oid)
168
    {
169
        match_clusters.insert(oid);
170
    }
171

  
172
    /**
159 173
     *  Returns a vector of matched hosts
160 174
     */
161 175
    const vector<Resource *> get_match_hosts()
......
172 186
    }
173 187

  
174 188
    /**
189
     *  Returns a vector of matched hosts
190
     */
191
    const set<int>& get_match_clusters()
192
    {
193
        return match_clusters;
194
    }
195

  
196
    /**
175 197
     *  Sort the matched hosts for the VM
176 198
     */
177 199
    void sort_match_hosts()
......
329 351

  
330 352
    ResourceMatch match_datastores;
331 353

  
354
    set<int> match_clusters;
355

  
332 356
    bool only_public_cloud;
333 357

  
334 358
    /* ----------------------- VIRTUAL MACHINE ATTRIBUTES ------------------- */
......
357 381
    string ds_requirements;
358 382
    string ds_rank;
359 383

  
384
    string cluster_requirements;
385

  
360 386
    VirtualMachineTemplate * vm_template;   /**< The VM template */
361 387
    VirtualMachineTemplate * user_template; /**< The VM user template */
362 388
};

Also available in: Unified diff