Skip to content

Commit 1b1d403

Browse files
committed
Fixed stupid conflicts
1 parent 8dfeee0 commit 1b1d403

File tree

2 files changed

+0
-57
lines changed

2 files changed

+0
-57
lines changed

tools/wrench/wrench-daemon/include/SimulationController.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -138,27 +138,12 @@ namespace wrench {
138138
BlockingQueue<std::pair<std::shared_ptr<DataFile>, std::shared_ptr<StorageService>>> file_to_lookup;
139139
BlockingQueue<std::tuple<bool, bool, std::string>> file_looked_up;
140140

141-
<<<<<<< HEAD
142-
=======
143-
// BlockingQueue<std::pair<std::string, std::shared_ptr<ComputeService>>> vm_to_running;
144-
// BlockingQueue<std::pair<bool, std::string>> vm_running;
145-
146-
// BlockingQueue<std::pair<std::string, std::shared_ptr<ComputeService>>> vm_to_down;
147-
// BlockingQueue<std::pair<bool, std::string>> vm_down;
148-
149-
>>>>>>> f9d806cdbadd50e6e8df6da790010e874a465454
150141
BlockingQueue<std::pair<std::string, std::shared_ptr<ComputeService>>> vm_to_suspend;
151142
BlockingQueue<std::pair<bool, std::string>> vm_suspended;
152143

153144
BlockingQueue<std::pair<std::string, std::shared_ptr<ComputeService>>> vm_to_resume;
154145
BlockingQueue<std::pair<bool, std::string>> vm_resumed;
155146

156-
<<<<<<< HEAD
157-
=======
158-
// BlockingQueue<std::pair<std::string, std::shared_ptr<ComputeService>>> is_vm_to_suspend;
159-
// BlockingQueue<std::pair<bool, std::string>> is_vm_suspended;
160-
161-
>>>>>>> f9d806cdbadd50e6e8df6da790010e874a465454
162147
// The two managers
163148
std::shared_ptr<JobManager> job_manager;
164149
std::shared_ptr<DataMovementManager> data_movement_manager;

tools/wrench/wrench-daemon/src/SimulationController.cpp

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -152,31 +152,6 @@ namespace wrench {
152152
this->file_looked_up.push(std::tuple(false, false, e.what()));
153153
}
154154

155-
<<<<<<< HEAD
156-
=======
157-
// } else if (this->vm_to_running.tryPop(vm_id)) {
158-
//
159-
// auto cloud_cs = std::dynamic_pointer_cast<CloudComputeService>(vm_id.second);
160-
// auto vm_name = vm_id.first;
161-
// try {
162-
// cloud_cs->isVMRunning(vm_name);
163-
// this->vm_running.push(std::pair(true, vm_name));
164-
// } catch (std::invalid_argument &e) {
165-
// this->vm_running.push(std::pair(false, e.what()));
166-
// }
167-
//
168-
// } else if (this->vm_to_down.tryPop(vm_id)) {
169-
//
170-
// auto cloud_cs = std::dynamic_pointer_cast<CloudComputeService>(vm_id.second);
171-
// auto vm_name = vm_id.first;
172-
// try {
173-
// cloud_cs->isVMDown(vm_name);
174-
// this->vm_down.push(std::pair(true, vm_name));
175-
// } catch (std::invalid_argument &e) {
176-
// this->vm_down.push(std::pair(false, e.what()));
177-
// }
178-
179-
>>>>>>> f9d806cdbadd50e6e8df6da790010e874a465454
180155
} else if (this->vm_to_suspend.tryPop(vm_id)) {
181156

182157
auto cloud_cs = std::dynamic_pointer_cast<CloudComputeService>(vm_id.second);
@@ -199,19 +174,6 @@ namespace wrench {
199174
this->vm_resumed.push(std::pair(false, e.what()));
200175
}
201176

202-
<<<<<<< HEAD
203-
=======
204-
// } else if (this->is_vm_to_suspend.tryPop(vm_id)) {
205-
//
206-
// auto cloud_cs = std::dynamic_pointer_cast<CloudComputeService>(vm_id.second);
207-
// auto vm_name = vm_id.first;
208-
// try {
209-
// cloud_cs->isVMDown(vm_name);
210-
// this->is_vm_suspended.push(std::pair(true, vm_name));
211-
// } catch (std::invalid_argument &e) {
212-
// this->is_vm_suspended.push(std::pair(false, e.what()));
213-
// }
214-
>>>>>>> f9d806cdbadd50e6e8df6da790010e874a465454
215177
} else {
216178
break;
217179
}
@@ -1035,16 +997,12 @@ namespace wrench {
1035997
return answer;
1036998
}
1037999

1038-
<<<<<<< HEAD
10391000
/**
10401001
* REST API Handler
10411002
* @param data JSON input
10421003
* @return JSON output
10431004
*/
10441005
json SimulationController::isVMRunning(json data) {
1045-
=======
1046-
json SimulationController::isVMRunning(json data) {
1047-
>>>>>>> f9d806cdbadd50e6e8df6da790010e874a465454
10481006
std::string cs_name = data["compute_service_name"];
10491007
std::string vm_name = data["vm_name"];
10501008

0 commit comments

Comments
 (0)