Revision 1f571426 src/scheduler/include/VirtualMachinePoolXML.h

View differences:

src/scheduler/include/VirtualMachinePoolXML.h
85 85
    };
86 86

  
87 87
    /**
88
     *
89
     *
88
     *  Returns a vector of matched hosts
89
     */
90
    const vector<Resource *> get_vm_resources()
91
    {
92
        return vm_resources.get_resources();
93
    }
94

  
95
    /**
96
     *  Sort the VMs in the pool
90 97
     */
91
    void clear()
98
    void sort_vm_resources()
92 99
    {
93
        flush();
100
        vm_resources.sort_resources();
94 101
    }
95 102

  
96 103
protected:
......
110 117
     * Do live migrations to resched VMs
111 118
     */
112 119
    bool live_resched;
120

  
121
private:
122
    /**
123
     *  Stores the list of vms, and it associated user prioty vm_resources.
124
     */
125
    ResourceMatch vm_resources;
113 126
};
114 127

  
115 128
/* -------------------------------------------------------------------------- */

Also available in: Unified diff