Revision a7394113 include/VirtualMachine.h

View differences:

include/VirtualMachine.h
141 141
        BOOT_UNDEPLOY       = 32,
142 142
        HOTPLUG_PROLOG_POWEROFF = 33,
143 143
        HOTPLUG_EPILOG_POWEROFF = 34,
144
        BOOT_MIGRATE        = 35,
145
        BOOT_FAILURE        = 36,
146
        BOOT_MIGRATE_FAILURE= 37
144
        BOOT_MIGRATE            = 35,
145
        BOOT_FAILURE            = 36,
146
        BOOT_MIGRATE_FAILURE    = 37,
147
        PROLOG_MIGRATE_FAILURE  = 38
147 148
    };
148 149

  
149 150
    static int lcm_state_from_str(string& st, LcmState& state)
......
188 189
        else if ( st == "BOOT_MIGRATE") { state = BOOT_MIGRATE; }
189 190
        else if ( st == "BOOT_FAILURE") { state = BOOT_FAILURE; }
190 191
        else if ( st == "BOOT_MIGRATE_FAILURE") { state = BOOT_MIGRATE_FAILURE; }
192
        else if ( st == "PROLOG_MIGRATE_FAILURE") { state = PROLOG_MIGRATE_FAILURE; }
191 193
        else {return -1;}
192 194

  
193 195
        return 0;
......
235 237
            case BOOT_MIGRATE: st = "BOOT_MIGRATE"; break;
236 238
            case BOOT_FAILURE: st = "BOOT_FAILURE"; break;
237 239
            case BOOT_MIGRATE_FAILURE: st = "BOOT_MIGRATE_FAILURE"; break;
240
            case PROLOG_MIGRATE_FAILURE: st = "PROLOG_MIGRATE_FAILURE"; break;
238 241
        }
239 242

  
240 243
        return st;
......
803 806
    };
804 807

  
805 808
    /**
809
     *  Sets end time of VM prolog state in the previous host.
810
     *    @param _etime time when the running state finished
811
     */
812
    void set_previous_prolog_etime(time_t _etime)
813
    {
814
        previous_history->prolog_etime=_etime;
815
    };
816

  
817
    /**
806 818
     *  Sets start time of VM epilog.
807 819
     *    @param _stime time when the epilog started
808 820
     */

Also available in: Unified diff