Commit Graph

566 Commits

Author SHA1 Message Date
babic_a 770674aae8 Throw exception if starting to write before starting to receive 2020-04-08 15:42:21 +02:00
babic_a 9512dd1522 Add is_receiving function to ZmqRecvModule 2020-04-08 15:38:27 +02:00
babic_a c06310fe0e Add test for clearing buffer 2020-04-08 15:27:26 +02:00
babic_a 9bcd559fae Implement start and stop writing logic 2020-04-08 15:17:58 +02:00
babic_a f9b222a3e6 Add buffer clearing to stop_saving procedure 2020-04-08 15:16:09 +02:00
babic_a a6cea76fb5 No memory relax order 2020-04-08 15:12:26 +02:00
babic_a 311a58a46d Add thread wait parameter for ms sleep 2020-04-08 15:12:15 +02:00
babic_a 9518f03deb Revert "Add counter for frames to save instead of just flag"
This reverts commit 16612a2d
2020-04-08 15:04:56 +02:00
babic_a 2e9568da8d Revert "Add counter for frames to save instead of just flag"
This reverts commit 16612a2d
2020-04-08 15:04:33 +02:00
babic_a 16612a2d72 Add counter for frames to save instead of just flag 2020-04-08 14:09:49 +02:00
babic_a d1964cae3b Add diagrams from drawio 2020-04-08 12:28:30 +02:00
babic_a 70f8218bcd Make receiver code more readable 2020-04-08 10:39:20 +02:00
babic_a 5e5dab461e Add debug output to ProcessManager 2020-04-08 10:30:35 +02:00
babic_a 596893bcf9 Improve debug text in RingBuffer 2020-04-08 10:18:41 +02:00
babic_a 5d1811b650 Change RingBuffer to use function instead of direct flag call 2020-04-08 10:17:35 +02:00
babic_a f7ba7916b5 Implement basic operations on ProcessManager 2020-04-08 09:02:56 +02:00
babic_a 3503e6c754 Check for n_receiving_threads parameter 2020-04-08 08:59:33 +02:00
babic_a b872bb7510 Wrap entire thread in try-catch for ZmqReceiverModule as well 2020-04-08 08:48:45 +02:00
babic_a 934cf9e0c4 Wrap entire thread in try-catch 2020-04-08 08:43:34 +02:00
babic_a 01bb292d40 Change n_frames to size_t 2020-04-07 17:18:31 +02:00
babic_a 9fc3e49bc0 Add is_writing retrieval flag 2020-04-07 16:16:56 +02:00
babic_a 38a8b2363b Add setting uid and gid and creating destination folder 2020-04-07 16:13:05 +02:00
babic_a d1ba7b0b43 Revert back changes to setting the effective user id 2020-04-07 16:07:58 +02:00
babic_a 21e70bc7cd Rename FS ID setting function 2020-04-07 16:01:40 +02:00
babic_a a3c3d3e59d Remove unused variable 2020-04-07 15:56:14 +02:00
babic_a 4a3dd11d69 Add move to test dataset 2020-04-07 14:13:08 +02:00
babic_a 7545619c58 Make filling of data more readable 2020-04-07 14:10:06 +02:00
babic_a 091dd30fe2 Fix test data 2020-04-07 13:51:58 +02:00
babic_a f777db3283 Fix whitespace in tests 2020-04-07 13:51:23 +02:00
babic_a 7ff6e59bf7 Add basic interaction test for WriterModule 2020-04-07 13:13:46 +02:00
babic_a 2c9987d33f Remove useless close file command 2020-04-07 13:13:24 +02:00
babic_a 0792d3ad8d Improve tests on Module state 2020-04-07 12:27:00 +02:00
babic_a 0448c7a264 Implement new rest api for process manager 2020-04-07 12:20:23 +02:00
babic_a 093271afeb Define ProcessManager interface 2020-04-07 12:20:10 +02:00
babic_a eab61a693c Rename REST start function 2020-04-07 11:58:50 +02:00
babic_a cdc6eb4266 Refactor ProcessManager 2020-04-07 11:13:59 +02:00
babic_a 77408a4c54 Setup WriterUtils as their own namespace 2020-04-06 17:15:22 +02:00
babic_a d550fb4586 Add mock file format 2020-04-06 17:05:32 +02:00
babic_a 27ee81bd22 Add H5WriterModule test 2020-04-06 17:05:23 +02:00
babic_a d375a65043 Remove tests that are not relevant anymore due to refactoring 2020-04-06 16:24:02 +02:00
babic_a de01a75cab Remove try catch around errors we cannot recover from 2020-04-06 16:21:30 +02:00
babic_a af816bd541 Simplify the write thread flow 2020-04-06 15:48:56 +02:00
babic_a 7ceaa2cb4b Remove unused DummyWriter 2020-04-06 15:40:14 +02:00
babic_a 04b16680d6 Adjust BufferedWriter to new Writer 2020-04-06 15:31:09 +02:00
babic_a ab0c6f4b00 Refactor MetadataBuffer 2020-04-06 15:30:51 +02:00
babic_a 32dba2320a Partial implementation of write thread 2020-04-06 14:44:41 +02:00
babic_a b826ed30b4 Small refactoring of BufferedWriter 2020-04-06 14:25:36 +02:00
babic_a 70062e3f14 Pass file properties to writing thread 2020-04-06 13:36:54 +02:00
babic_a f4e7d9505e Remove default value for user_id of writing process
Does not really make sense since the value is hard-coded anyway and will not change
in different deployments.
2020-04-06 13:33:45 +02:00
babic_a b9908b60d5 Add a default writing user_id to the config 2020-04-06 13:32:28 +02:00