summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* After a file which was created a in a remote computer is reconstructed in ↵Siddharth Ravikumar2015-04-082-1/+8
| | | | | | | this computer, its info is removed from the 'file_created' dictionary in the silo. modified: combox/events.py modified: tests/events_test.py
* new method combox.silo.ComboxSilo.node_remSiddharth Ravikumar2015-04-082-0/+33
| | | | | | | | | | | The method removes information about a file in the category `type_' where `type_' can be 'file_created', 'file_modified', 'file_removed', 'file_moved'. Also wrote tests for it :~( modified: combox/silo.py modified: tests/silo_test.py
* added test file to purge list in tests.events_test.TestEvents.test_NDM_oncreatedSiddharth Ravikumar2015-04-081-0/+3
| | | | modified: tests/events_test.py
* Added test for directory creation in ↵Siddharth Ravikumar2015-04-081-15/+15
| | | | | | tests.events_test.TestEvents.test_NDM_oncreated. modified: tests/events_test.py
* renamed method test_NDM_oncreate -> test_NDM_oncreated in ↵Siddharth Ravikumar2015-04-081-2/+2
| | | | | | tests.event_test.TestEvents. modified: tests/events_test.py
* TODO.org: set deadline for the week.Siddharth Ravikumar2015-04-061-0/+1
|
* modded teardown method in tests.events_test.TestEvents.Siddharth Ravikumar2015-04-031-6/+2
| | | | | | the silo is purged using the deldb method instead of doing a os.remove. modfied: tests/events_test.py
* updated TODO.orgSiddharth Ravikumar2015-04-031-0/+2
|
* updated TODO.org: Done rewriting combox.events.NodeDirMonitor.on_created methodSiddharth Ravikumar2015-04-011-1/+4
|
* [golden commit]: rewrote combox.events.NodeDirMonitor.on_created method.Siddharth Ravikumar2015-04-012-13/+76
| | | | | | | | | | | | | | | | | | | | | - Now the the node monitor waits for all shards of the file, which was created on a remote computer, to arrive on this computer, before it re-constructs the file into the respective location in the combox directory. - Tests for it is at tests.events_test.TestEvents.test_NDM_oncreate method. - The main test method, tests.events_test.TestEvents.test_NDM, was disabled by renaming it to tests.events_test.TestEvents.test_NDM. - Now the NodeDirMonitor requires passing the 'node monitor lock' when creating an instance of it. :~( modified: combox/events.py modified: tests/events_test.py
* updated TODO.orgSiddharth Ravikumar2015-04-011-0/+4
|
* updated combox.file.relative_path.Siddharth Ravikumar2015-04-012-3/+18
| | | | | | | | | This method now returns relative paths w. r. t all node directories. Before it used to return relative paths only w. r. t the first node directory. Also updated the tests for it :~( modified: combox/file.py modified: tests/file_test.py
* new variable at NodeDirMonitor -- `num_nodes'Siddharth Ravikumar2015-04-012-0/+11
| | | | | | | `num_nodes' a value that represents the number of node directories. modified: combox/events.py modified: tests/events_test.py
* renamed dict names in combox.silo.ComboxSilo from shard_* -> file_*Siddharth Ravikumar2015-04-012-55/+55
| | | | | | | | The main zarking reason for the name is that we might also want to track directories apart from shards in the node directories. modified: combox/silo.py modified: tests/silo_test.py
* updated TODO.orgSiddharth Ravikumar2015-04-011-1/+4
|
* Now combox.silo.ComboxSilo reloads db from disk before reading/writing.Siddharth Ravikumar2015-04-012-30/+13
| | | | | modified: combox/events.py modified: combox/silo.py
* updated TODO.orgSiddharth Ravikumar2015-04-011-0/+1
|
* updated TODO.orgSiddharth Ravikumar2015-04-011-2/+4
|
* refactored the way locks work in combox.siloComboxSilo.Siddharth Ravikumar2015-04-015-51/+64
| | | | | | | | modified: combox/cbox.py modified: combox/events.py modified: combox/silo.py modified: tests/events_test.py modified: tests/silo_test.py
* updated TODO.org -- changed the TODO for this week.Siddharth Ravikumar2015-03-311-1/+1
|
* new methods in combox.silo.ComboxSilo -- node_get, node_set. noddicts.Siddharth Ravikumar2015-03-312-0/+149
| | | | | | | | These methods will be used to manage the dictionaries in the db related to the zarking shards. modified: combox/silo.py modified: tests/silo_test.py
* ComboxSilo is now going to have dictionaries that track information about ↵Siddharth Ravikumar2015-03-312-2/+18
| | | | | | | the shards. modified: combox/events.py modified: combox/silo.py
* updated TODO.orgSiddharth Ravikumar2015-03-311-0/+2
|
* updated TODO.orgSiddharth Ravikumar2015-03-261-2/+8
|
* combox.events.NodDirMonitor: corrected typo in docstring.Siddharth Ravikumar2015-03-261-1/+1
|
* fleshed out combox.events.NodDirMonitor.housekeep method.Siddharth Ravikumar2015-03-262-3/+120
| | | | | | | wrote tests for it too :~( modified: combox/events.py modified: tests/events_test.py
* updated TODO.orgSiddharth Ravikumar2015-03-261-1/+1
|
* new function combox.file.node_paths: returns the abs. path of ↵Siddharth Ravikumar2015-03-192-0/+57
| | | | | | | shards/directories in node directories. modified: combox/file.py modified: tests/file_test.py
* combox/file.py: edited docstring of the node_path method.Siddharth Ravikumar2015-03-191-2/+3
|
* In tests, the code that purges the files/directories in `purge_list' is now ↵Siddharth Ravikumar2015-03-193-15/+18
| | | | | | | | a function. modified: tests/events_test.py modified: tests/file_test.py modified: tests/utils.py
* updated TODO.orgSiddharth Ravikumar2015-03-191-0/+2
|
* combox/silo.py: All access to DB are now inside a critcal section.Siddharth Ravikumar2015-03-191-11/+17
| | | | | | | This just means, only one damn Thread is allowed to access the DB at a time. We are using thread.Lock to achieve this.
* updated TODO.org: wrote on_moved method (NodeDirMonitor)Siddharth Ravikumar2015-03-181-2/+4
|
* fleshed out the on_move method in combox.events.NodeDirMonitorSiddharth Ravikumar2015-03-182-2/+76
| | | | | | | As usual, wrote correponding tests for it; zarking TDD or whatever :~| modified: combox/events.py modified: tests/events_test.py
* tests/events_test.py: paths in `purge_list' is purged after executing each ↵Siddharth Ravikumar2015-03-181-7/+8
| | | | test method.
* combox/silo.py: modded remove method in ComboxSiloSiddharth Ravikumar2015-03-181-1/+5
| | | | | The statement that removes the key from db is now put in a try-catch f#*king block.
* updated TODO.orgSiddharth Ravikumar2015-03-181-2/+2
|
* updated on_created, on_modified, on_deleted methods in NodeDirMonitor.Siddharth Ravikumar2015-03-131-0/+15
| | | | | | | Now they check if the event.src_path is a shard or a directory before doing anything. modified: combox/events.py
* Added `shardp' method to combox.events.NodeDirMonitor + test for it.Siddharth Ravikumar2015-03-132-0/+21
| | | | | modified: combox/events.py modified: tests/events_test.py
* updated on_delete method in combox.events.NodeDirMonitorSiddharth Ravikumar2015-03-061-1/+1
| | | | | | | Now the method deletes the corresponding file in the combox directory only if has not already been deleted. modified: combox/events.py
* updated TODO.orgSiddharth Ravikumar2015-03-061-1/+1
|
* updated the on_delete method in the combox.events.ComboxDirMonitor class.Siddharth Ravikumar2015-03-061-2/+5
| | | | | | | It now deletes the directory or file shard in the node directories only if they were not already deleted. modified: combox/events.py
* modded combox.file.node_path function.Siddharth Ravikumar2015-03-063-5/+9
| | | | | | | | | | | It has a third argument (boolean) which tells whether `cb_path' (the first argument) is a file or not. Updated the test for node_path function + code wherever node_path was used. modified: combox/events.py modified: combox/file.py modified: tests/file_test.py
* updated TODO.org - flesh out on_delete method (NodeDirMonitor)Siddharth Ravikumar2015-03-041-2/+4
|
* all the sleep calls are 1 sec long in tests.events_testSiddharth Ravikumar2015-03-041-5/+5
|
* fleshed out the on_delete method in combox.events.NodeDirMonitorSiddharth Ravikumar2015-03-042-4/+28
| | | | | | | As usual, wrote correponding tests for it :| modified: combox/events.py modified: tests/events_test.py
* fixed combox.file.cb_pathSiddharth Ravikumar2015-03-041-1/+1
| | | | | | instead of using `path.isfile' to check if the path is a shard file or not, it is checked if the path endswidth 'shard.N' where `N' is a number.
* renamed combox.file.rm_dir -> combox.file.rm_pathSiddharth Ravikumar2015-03-042-7/+21
| | | | | | | | rm_path deletes a file or an empty directory. updated the test for it too. modified: tests/file_test.py
* combox.file.mk_nodedir uses mk_dir to create a directory.Siddharth Ravikumar2015-03-041-4/+1
|
* combox.file.rm_nodedir uses the rm_dir function to remove directories.Siddharth Ravikumar2015-03-041-4/+1
|