GreenCloud Simulator
vmmigration.h
Go to the documentation of this file.
1 /*
2  * vmmigration.h
3  *
4  * @date Nov 13, 2013
5  * @author Guzek:Mateusz
6  */
7 
8 #ifndef VMMIGRATION_H_
9 #define VMMIGRATION_H_
10 
11 #include <tclcl.h>
12 
13 #include "tcp.h"
14 #include "vmmigrationsink.h"
15 #include "vm.h"
16 
17 class VmMigration : public ResourceConsumer, public TclObject{
18 public:
19  VmMigration();
20  void initalizeMigration(VM* vm,ResourceProvider* target);
21  virtual ~VmMigration();
22  virtual int command(int argc, const char*const* argv);
23  void finalizeMigration();
24  void startMigration();
25 
26 private:
31  int id_;
32 };
33 
34 #endif /* VMMIGRATION_H_ */
TcpAgent * vm_migration_sender_
Definition: vmmigration.h:30
VmMigrationSink * vm_migration_sink_
Definition: vmmigration.h:29
void finalizeMigration()
Definition: vmmigration.cc:96
void startMigration()
Definition: vmmigration.cc:77
virtual int command(int argc, const char *const *argv)
Definition: vmmigration.cc:147
void initalizeMigration(VM *vm, ResourceProvider *target)
Definition: vmmigration.cc:22
VM * migrated_vm_
Definition: vmmigration.h:27
virtual ~VmMigration()
Definition: vmmigration.cc:70
Definition: vm.h:29
ResourceProvider * target_
Definition: vmmigration.h:28