Revision 64b4f0d5 include/VirtualMachinePool.h

View differences:

include/VirtualMachinePool.h
37 37
                       const string&                hook_location,
38 38
                       const string&                remotes_location,
39 39
                       vector<const Attribute *>&   restricted_attrs,
40
                       time_t                       expire_time);
40
                       time_t                       expire_time,
41
                       bool                         on_hold);
41 42

  
42 43
    ~VirtualMachinePool(){};
43 44

  
......
48 49
     *    @param vm_template a VM Template object describing the VM
49 50
     *    @param oid the id assigned to the VM (output)
50 51
     *    @param error_str Returns the error reason, if any
51
     *    @param on_hold flag to submit on hold
52 52
     *    @return oid on success, -1 error inserting in DB or -2 error parsing
53 53
     *  the template
54 54
     */
......
59 59
        const string&            gname,
60 60
        VirtualMachineTemplate * vm_template,
61 61
        int *                    oid,
62
        string&                  error_str,
63
        bool                     on_hold = false);
62
        string&                  error_str);
64 63

  
65 64
    /**
66 65
     *  Function to get a VM from the pool, if the object is not in memory
......
255 254
     * Size, in seconds, of the historical monitoring information
256 255
     */
257 256
    static time_t _monitor_expiration;
257

  
258
    /**
259
     * True or false whether to submit new VM on HOLD or not
260
     */
261
    static bool _submit_on_hold;
258 262
};
259 263

  
260 264
#endif /*VIRTUAL_MACHINE_POOL_H_*/

Also available in: Unified diff