/
SimpleStorageService.cpp
630 lines (526 loc) · 30.9 KB
/
SimpleStorageService.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
/**
* Copyright (c) 2017. The WRENCH Team.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*/
#include <climits>
#include "wrench/services/storage/simple/SimpleStorageService.h"
#include "wrench/services/ServiceMessage.h"
#include "services/storage/StorageServiceMessage.h"
#include "wrench/simgrid_S4U_util/S4U_Mailbox.h"
#include "wrench/logging/TerminalOutput.h"
#include "wrench/simgrid_S4U_util/S4U_Simulation.h"
#include "wrench/workflow/WorkflowFile.h"
#include "wrench/exceptions/WorkflowExecutionException.h"
#include "wrench/services/storage/simple/NetworkConnectionManager.h"
#include "wrench/simulation/SimulationTimestampTypes.h"
WRENCH_LOG_NEW_DEFAULT_CATEGORY(simple_storage_service, "Log category for Simple Storage Service");
namespace wrench {
/**
* @brief Generate a unique number
*
* @return a unique number
*/
unsigned long SimpleStorageService::getNewUniqueNumber() {
static unsigned long sequence_number = 0;
return (sequence_number++);
}
/**
* @brief Destructor
*/
SimpleStorageService::~SimpleStorageService() {
this->default_property_values.clear();
}
void SimpleStorageService::cleanup(bool has_returned_from_main, int return_value) {
// Do nothing. It's fine to die and we'll just autorestart with our previous state
}
/**
* @brief Public constructor
*
* @param hostname: the name of the host on which to start the service
* @param capacity: the storage capacity in bytes
* @param property_list: a property list ({} means "use all defaults")
* @param messagepayload_list: a message payload list ({} means "use all defaults")
*/
SimpleStorageService::SimpleStorageService(std::string hostname,
double capacity,
std::map<std::string, std::string> property_list,
std::map<std::string, double> messagepayload_list
) :
SimpleStorageService(std::move(hostname), capacity, property_list, messagepayload_list,
"_" + std::to_string(getNewUniqueNumber())) {
if (this->getPropertyValueAsString("MAX_NUM_CONCURRENT_DATA_CONNECTIONS") == "infinity") {
this->num_concurrent_connections = ULONG_MAX;
} else {
this->num_concurrent_connections = (unsigned long) (this->getPropertyValueAsDouble(
"MAX_NUM_CONCURRENT_DATA_CONNECTIONS"));
}
}
/**
* @brief Private constructor
*
* @param hostname: the name of the host on which to start the service
* @param capacity: the storage capacity in bytes
* @param property_list: the property list
* @param suffix: the suffix (for the service name)
*
* @throw std::invalid_argument
*/
SimpleStorageService::SimpleStorageService(
std::string hostname,
double capacity,
std::map<std::string, std::string> property_list,
std::map<std::string, double> messagepayload_list,
std::string suffix) :
StorageService(std::move(hostname), "simple_storage" + suffix, "simple_storage" + suffix, capacity) {
this->setProperties(this->default_property_values, property_list);
this->setMessagePayloads(this->default_messagepayload_values, messagepayload_list);
}
/**
* @brief Main method of the daemon
*
* @return 0 on termination
*/
int SimpleStorageService::main() {
TerminalOutput::setThisProcessLoggingColor(TerminalOutput::COLOR_CYAN);
// Create a new network connection manager
this->network_connection_manager = std::unique_ptr<NetworkConnectionManager>(
new NetworkConnectionManager(this->num_concurrent_connections));
// number of files staged
unsigned long num_stored_files = 0;
for (auto partition : this->stored_files) {
num_stored_files += partition.second.size();
}
WRENCH_INFO("Simple Storage Service %s starting on host %s (capacity: %lf, holding %ld files, listening on %s)",
this->getName().c_str(),
S4U_Simulation::getHostName().c_str(),
this->capacity,
num_stored_files,
this->mailbox_name.c_str());
/** Main loop **/
bool should_add_incoming_control_connection = true;
bool should_continue = true;
while (should_continue) {
// WRENCH_INFO("NUM FILES: %lu", this->stored_files.size());
// for (auto const &part : this->stored_files) {
// WRENCH_INFO("PARTITION: %s", part.first.c_str());
// for (auto const &f : part.second) {
// WRENCH_INFO("----> %s", f->getID().c_str());
// }
// }
// Post a recv on my standard mailbox_name in case there is none pending
if (should_add_incoming_control_connection) {
this->network_connection_manager->addConnection(std::unique_ptr<NetworkConnection>(
new NetworkConnection(NetworkConnection::INCOMING_CONTROL, nullptr, "/", this->mailbox_name, "")
));
should_add_incoming_control_connection = false;
}
// Wait for a connection
std::pair<std::unique_ptr<NetworkConnection>, bool> finished_connection;
finished_connection = this->network_connection_manager->waitForNetworkConnection();
if (std::get<0>(finished_connection)->type == NetworkConnection::INCOMING_CONTROL) {
should_continue = processControlMessage(std::move(std::get<0>(finished_connection)));
should_add_incoming_control_connection = true;
} else {
should_continue = processDataConnection(std::move(std::move(std::get<0>(finished_connection))));
}
}
//
// //probably we have to remove everything leftover on the pending communications
// std::vector<std::unique_ptr<S4U_PendingCommunication>>::iterator it;
// for (it = this->pending_incoming_communications.begin();
// it != this->pending_incoming_communications.end(); it++) {
// if (it->get() != nullptr) {
// it->reset();
// }
// }
WRENCH_INFO("Simple Storage Service %s on host %s cleanly terminating!",
this->getName().c_str(),
S4U_Simulation::getHostName().c_str());
return 0;
}
/**
* @brief Process a received control message
*
* @param comm: the pending communication
* @return false if the daemon should terminate
*/
bool SimpleStorageService::processControlMessage(std::unique_ptr<NetworkConnection> connection) {
S4U_Simulation::computeZeroFlop();
// Get the message
std::shared_ptr<SimulationMessage> message;
try {
message = connection->comm->wait();
} catch (std::shared_ptr<NetworkError> &cause) {
WRENCH_INFO("Network error while receiving a control message... ignoring");
return true;
}
if (message == nullptr) {
WRENCH_INFO("Got a NULL message. This likely means that we're all done...Aborting!");
return false;
}
WRENCH_DEBUG("Got a [%s] message", message->getName().c_str());
if (auto msg = std::dynamic_pointer_cast<ServiceStopDaemonMessage>(message)) {
try {
S4U_Mailbox::putMessage(msg->ack_mailbox,
new ServiceDaemonStoppedMessage(this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::DAEMON_STOPPED_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return false;
}
return false;
} else if (auto msg = std::dynamic_pointer_cast<StorageServiceFreeSpaceRequestMessage>(message)) {
double free_space = this->capacity - this->occupied_space;
try {
S4U_Mailbox::dputMessage(msg->answer_mailbox,
new StorageServiceFreeSpaceAnswerMessage(free_space,
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FREE_SPACE_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return false;
}
return true;
} else if (auto msg = std::dynamic_pointer_cast<StorageServiceFileDeleteRequestMessage>(message)) {
bool success = true;
std::shared_ptr<FailureCause> failure_cause = nullptr;
if (this->stored_files.find(msg->dst_partition) != this->stored_files.end()) {
std::set<WorkflowFile *> files = this->stored_files[msg->dst_partition];
if (files.find(msg->file) == files.end()) {
success = false;
failure_cause = std::shared_ptr<FailureCause>(
new FileNotFound(msg->file, this->getSharedPtr<SimpleStorageService>()));
} else {
this->removeFileFromStorage(msg->file, msg->dst_partition);
}
} else {
success = false;
failure_cause = std::shared_ptr<FailureCause>(
new FileNotFound(msg->file, this->getSharedPtr<SimpleStorageService>()));
}
// Send an asynchronous reply
try {
S4U_Mailbox::dputMessage(msg->answer_mailbox,
new StorageServiceFileDeleteAnswerMessage(msg->file,
this->getSharedPtr<SimpleStorageService>(),
success,
failure_cause,
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_DELETE_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
return true;
} else if (auto msg = std::dynamic_pointer_cast<StorageServiceFileLookupRequestMessage>(message)) {
std::set<WorkflowFile *> files = this->stored_files[msg->dst_partition];
bool file_found = (files.find(msg->file) != files.end());
try {
S4U_Mailbox::dputMessage(msg->answer_mailbox,
new StorageServiceFileLookupAnswerMessage(msg->file, file_found,
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_LOOKUP_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
return true;
} else if (auto msg = std::dynamic_pointer_cast<StorageServiceFileWriteRequestMessage>(message)) {
return processFileWriteRequest(msg->file, msg->dst_partition, msg->answer_mailbox);
} else if (auto msg = std::dynamic_pointer_cast<StorageServiceFileReadRequestMessage>(message)) {
return processFileReadRequest(msg->file, msg->src_partition, msg->answer_mailbox,
msg->mailbox_to_receive_the_file_content);
} else if (auto msg = std::dynamic_pointer_cast<StorageServiceFileCopyRequestMessage>(message)) {
return processFileCopyRequest(msg->file, msg->src, msg->src_partition, msg->dst_partition,
msg->answer_mailbox, msg->start_timestamp);
} else {
throw std::runtime_error(
"SimpleStorageService::processControlMessage(): Unexpected [" + message->getName() + "] message");
}
}
/**
* @brief Handle a file write request
*
* @param file: the file to write
* @param dst_partition: the file partition to write the file to
* @param answer_mailbox: the mailbox to which the reply should be sent
* @return true if this process should keep running
*/
bool SimpleStorageService::processFileWriteRequest(WorkflowFile *file, std::string dst_partition,
std::string answer_mailbox) {
// If the file is not already there, do a capacity check/update
// (If the file is already there, then there will just be an overwrite. Note that
// if the overwrite fails, then the file will disappear, which is expected)
if (this->stored_files.find(file->getID()) == this->stored_files.end()) {
// Check the file size and capacity, and reply "no" if not enough space
if (file->getSize() > (this->capacity - this->occupied_space)) {
try {
S4U_Mailbox::putMessage(answer_mailbox,
new StorageServiceFileWriteAnswerMessage(file,
this->getSharedPtr<SimpleStorageService>(),
false,
std::shared_ptr<FailureCause>(
new StorageServiceNotEnoughSpace(
file,
this->getSharedPtr<SimpleStorageService>())),
"none",
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_WRITE_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
return true;
}
// Update occupied space, in advance (will have to be decreased later in case of failure)
this->occupied_space += file->getSize();
}
// Generate a mailbox_name name on which to receive the file
std::string file_reception_mailbox = S4U_Mailbox::generateUniqueMailboxName("file_reception");
// Reply with a "go ahead, send me the file" message
try {
S4U_Mailbox::dputMessage(answer_mailbox,
new StorageServiceFileWriteAnswerMessage(file,
this->getSharedPtr<SimpleStorageService>(),
true,
nullptr,
file_reception_mailbox,
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_WRITE_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
this->network_connection_manager->addConnection(std::unique_ptr<NetworkConnection>(
new NetworkConnection(NetworkConnection::INCOMING_DATA, file, dst_partition, file_reception_mailbox,
"")));
return true;
}
/**
* @brief Handle a file read request
* @param file: the file
* @param src_partition: the file partition to read the file from
* @param answer_mailbox: the mailbox to which the answer should be sent
* @param mailbox_to_receive_the_file_content: the mailbox to which the file will be sent
* @return
*/
bool SimpleStorageService::processFileReadRequest(WorkflowFile *file, std::string src_partition,
std::string answer_mailbox,
std::string mailbox_to_receive_the_file_content) {
// Figure out whether this succeeds or not
bool success = true;
std::shared_ptr<FailureCause> failure_cause = nullptr;
if (this->stored_files.find(src_partition) != this->stored_files.end()) {
std::set<WorkflowFile *> files = this->stored_files[src_partition];
if (files.find(file) == files.end()) {
WRENCH_INFO("Received a a read request for a file I don't have (%s)", this->getName().c_str());
success = false;
failure_cause = std::shared_ptr<FailureCause>(
new FileNotFound(file, this->getSharedPtr<SimpleStorageService>()));
}
} else {
success = false;
failure_cause = std::shared_ptr<FailureCause>(
new FileNotFound(file, this->getSharedPtr<SimpleStorageService>()));
}
// Send back the corresponding ack, asynchronously and in a "fire and forget" fashion
try {
S4U_Mailbox::dputMessage(answer_mailbox,
new StorageServiceFileReadAnswerMessage(file,
this->getSharedPtr<SimpleStorageService>(),
success, failure_cause,
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_READ_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
// If success, then follow up with sending the file (ASYNCHRONOUSLY!)
if (success) {
this->network_connection_manager->addConnection(std::unique_ptr<NetworkConnection>(
new NetworkConnection(NetworkConnection::OUTGOING_DATA, file, src_partition,
mailbox_to_receive_the_file_content, "")
));
}
return true;
}
/**
* @brief Handle a file copy request
* @param file: the file
* @param src: the storage service that holds the file
* @param src_partition: the file partition from where the file will be copied
* @param dst_partition: the fie partition to where the file will be copied
* @param answer_mailbox: the mailbox to which the answer should be sent
* @return
*/
bool
SimpleStorageService::processFileCopyRequest(WorkflowFile *file, std::shared_ptr<StorageService> src,
std::string src_partition, std::string dst_partition,
std::string answer_mailbox,
SimulationTimestampFileCopyStart *start_timestamp) {
// Do a capacity check/update
// If the file is already there, then there will just be an overwrite. Note that
// if the overwrite fails, then the file will disappear, just like in the real world.
if (file->getSize() > this->capacity - this->occupied_space) {
WRENCH_INFO("Cannot perform file copy due to lack of space");
this->simulation->getOutput().addTimestamp<SimulationTimestampFileCopyFailure>(
new SimulationTimestampFileCopyFailure(start_timestamp));
try {
S4U_Mailbox::putMessage(answer_mailbox,
new StorageServiceFileCopyAnswerMessage(file,
this->getSharedPtr<StorageService>(),
dst_partition, nullptr, false,
false,
std::shared_ptr<FailureCause>(
new StorageServiceNotEnoughSpace(
file,
this->getSharedPtr<SimpleStorageService>())),
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_COPY_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
return true;
}
this->occupied_space += file->getSize();
WRENCH_INFO("Asynchronously copying file %s from storage service %s",
file->getID().c_str(),
src->getName().c_str());
// Create a unique mailbox_name on which to receive the file
std::string file_reception_mailbox = S4U_Mailbox::generateUniqueMailboxName("file_reception");
// Initiate an ASYNCHRONOUS file read from the source
try {
if (src.get() == this) {
//if the src and the destination are the same in a copy, then we try to simulate a
// particular time based on the SELF_CONNECTION_DELAY property value
// TODO: When S4U has a disk thingy, we'll have to revise this to simulate I/O normally
wrench::S4U_Simulation::sleep(
this->getPropertyValueAsDouble(SimpleStorageServiceProperty::SELF_CONNECTION_DELAY));
//Also, we don't have to simulate the read, because right now it just takes 0 time to read
//But, below we send/receive INCOMING DATA/OUTGOING DATA, and update my stored files map
} else {
src->initiateFileRead(file_reception_mailbox, file, src_partition);
}
} catch (WorkflowExecutionException &e) {
try {
S4U_Mailbox::putMessage(answer_mailbox,
new StorageServiceFileCopyAnswerMessage(file,
this->getSharedPtr<StorageService>(),
dst_partition, nullptr, false,
false, e.getCause(),
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_COPY_ANSWER_MESSAGE_PAYLOAD)));
this->simulation->getOutput().addTimestamp<SimulationTimestampFileCopyFailure>(
new SimulationTimestampFileCopyFailure(start_timestamp));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
return true;
}
if (src.get() == this) {
// add a (bogus) connection since technically we are sending data (to oneself)
this->network_connection_manager->addConnection(std::unique_ptr<NetworkConnection>(
new NetworkConnection(NetworkConnection::OUTGOING_DATA, file, src_partition, file_reception_mailbox,
"")
));
}
this->network_connection_manager->addConnection(std::unique_ptr<NetworkConnection>(
new NetworkConnection(NetworkConnection::INCOMING_DATA, file, dst_partition, file_reception_mailbox,
answer_mailbox, start_timestamp)
));
return true;
}
/**
* @brief Process a completed data connection
*
* @param connection: the completed data connection
* @return false if the daemon should terminate
*
* @throw std::runtime_error
*/
bool SimpleStorageService::processDataConnection(std::unique_ptr<NetworkConnection> connection) {
S4U_Simulation::computeZeroFlop();
if (connection->type == NetworkConnection::INCOMING_DATA) {
return processIncomingDataConnection(std::move(connection));
} else if (connection->type == NetworkConnection::OUTGOING_DATA) {
return processOutgoingDataConnection(std::move(connection));
} else {
throw std::invalid_argument("SimpleStorageService::processDataConnection(): invalid connection type");
}
}
bool SimpleStorageService::processIncomingDataConnection(std::unique_ptr<NetworkConnection> connection) {
// Get the message
std::shared_ptr<SimulationMessage> message = connection->getMessage();
if (message == nullptr) {
WRENCH_INFO("SimpleStorageService::processDataConnection(): Communication failure when receiving file '%s",
connection->file->getID().c_str());
// Process the failure, meaning, just re-decrease the occupied space
this->occupied_space -= connection->file->getSize();
// And if this was an overwrite, now we lost the file!!!
this->stored_files[connection->file_partition].erase(connection->file);
// If there is a start timestamp for the connection, then this was a file copy... so we have to
// record an end timestamp for the filure. Otherwise, it's a file read or write, and this is
// considered part of a task execution, so there will just be a task failure timestamp
if (connection->start_timestamp) {
this->simulation->getOutput().addTimestamp<SimulationTimestampFileCopyFailure>(
new SimulationTimestampFileCopyFailure(connection->start_timestamp));
}
try {
S4U_Mailbox::dputMessage(connection->ack_mailbox,
new StorageServiceFileCopyAnswerMessage(connection->file,
this->getSharedPtr<SimpleStorageService>(),
connection->file_partition, nullptr,
false,
false, connection->failure_cause,
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_COPY_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
return true;
}
return true;
}
WRENCH_DEBUG("Got a [%s] message", message->getName().c_str());
if (auto msg = std::dynamic_pointer_cast<StorageServiceFileContentMessage>(message)) {
if (msg->file != connection->file) {
throw std::runtime_error(
"SimpleStorageService::processDataConnection(): Mismatch between received file and expected file... a bug in SimpleStorageService");
}
// Add the file to my storage (this will not add a duplicate in case of an overwrite, because it's a set)
this->stored_files[connection->file_partition].insert(connection->file);
if (connection->start_timestamp != nullptr) {
this->simulation->getOutput().addTimestamp<SimulationTimestampFileCopyCompletion>(
new SimulationTimestampFileCopyCompletion(
connection->start_timestamp
));
}
// Send back the corresponding ack?
if (not connection->ack_mailbox.empty()) {
WRENCH_INFO(
"Sending back an ack since this was a file copy and some client is waiting for me to say something");
try {
S4U_Mailbox::dputMessage(connection->ack_mailbox,
new StorageServiceFileCopyAnswerMessage(connection->file,
this->getSharedPtr<SimpleStorageService>(),
connection->file_partition,
nullptr,
false,
true,
nullptr,
this->getMessagePayloadValue(
SimpleStorageServiceMessagePayload::FILE_COPY_ANSWER_MESSAGE_PAYLOAD)));
} catch (std::shared_ptr<NetworkError> &cause) {
// do nothing
}
// // finally, add the timestamp. the 'send ack' may have failed but the file copy itself is complete
// this->simulation->getOutput().addTimestamp<SimulationTimestampFileCopyCompletion>(new SimulationTimestampFileCopyCompletion(
// connection->start_timestamp
// ));
}
return true;
} else {
throw std::runtime_error(
"SimpleStorageService::processControlMessage(): Unexpected [" + message->getName() + "] message");
}
}
bool SimpleStorageService::processOutgoingDataConnection(std::unique_ptr<NetworkConnection> connection) {
// Nothing to do
return true;
}
};