cs-p2p-next.git
12 years agoppf: Full implementation of add_* for SQLite.
Razvan Deaconescu [Mon, 22 Aug 2011 09:55:53 +0000 (12:55 +0300)]
ppf: Full implementation of add_* for SQLite.

12 years agoppf: Remove swarm_id in tests that add new messages.
Razvan Deaconescu [Mon, 22 Aug 2011 09:53:23 +0000 (12:53 +0300)]
ppf: Remove swarm_id in tests that add new messages.

Database schema maps client session ids to swarm ids.

12 years agoppf: Add SQLite access tests.
Razvan Deaconescu [Mon, 22 Aug 2011 08:28:18 +0000 (11:28 +0300)]
ppf: Add SQLite access tests.

12 years agoppf: Update DatabaseAccess classes to initialize database in constructor.
Razvan Deaconescu [Mon, 22 Aug 2011 07:56:00 +0000 (10:56 +0300)]
ppf: Update DatabaseAccess classes to initialize database in constructor.

Previously, initilization occured in the connect() method, with the
database string passed to it. Now the connect() method receives no
argument; connection information had been initialized in constructor.

12 years agoppf: Read test initialization/population script.
Razvan Deaconescu [Mon, 22 Aug 2011 07:50:29 +0000 (10:50 +0300)]
ppf: Read test initialization/population script.

12 years agoppf: Add test SQL file.
Razvan Deaconescu [Mon, 22 Aug 2011 07:13:43 +0000 (10:13 +0300)]
ppf: Add test SQL file.

12 years agoppf: Run creation script for SQLite tests.
Razvan Deaconescu [Mon, 22 Aug 2011 07:09:17 +0000 (10:09 +0300)]
ppf: Run creation script for SQLite tests.

12 years agoppf: Update direction strings to "send" and "receive".
Razvan Deaconescu [Mon, 22 Aug 2011 06:20:04 +0000 (09:20 +0300)]
ppf: Update direction strings to "send" and "receive".

12 years agoppf: Replace date, time with h timestamp.
Razvan Deaconescu [Mon, 22 Aug 2011 05:50:59 +0000 (08:50 +0300)]
ppf: Replace date, time with h timestamp.

timestamp will be a Python Datetime object.

12 years agoppf: Add skeleton tests for SQLiteDatabaseAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:29 +0000 (22:03 +0300)]
ppf: Add skeleton tests for SQLiteDatabaseAccess.

12 years agoppf: Populate skeleton methods for *DatabaseAccess classes.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:01 +0000 (22:03 +0300)]
ppf: Populate skeleton methods for *DatabaseAccess classes.

12 years agoppf: "Break" asserts for swarm and client sessions tests.
Razvan Deaconescu [Sun, 21 Aug 2011 18:32:34 +0000 (21:32 +0300)]
ppf: "Break" asserts for swarm and client sessions tests.

12 years agoppf: Add tests for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:52 +0000 (21:28 +0300)]
ppf: Add tests for add_*_message.

12 years agoppf: Add implementation for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:24 +0000 (21:28 +0300)]
ppf: Add implementation for add_*_message.

12 years agoppf: Add test suite for add_client_session.
Razvan Deaconescu [Sun, 21 Aug 2011 17:35:18 +0000 (20:35 +0300)]
ppf: Add test suite for add_client_session.

12 years agoAdd add_client_session to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 17:34:47 +0000 (20:34 +0300)]
Add add_client_session to TreeTextFileAccess.

12 years agoppf: Add test suite for TreeTextFileAccess class.
Razvan Deaconescu [Sun, 21 Aug 2011 17:08:39 +0000 (20:08 +0300)]
ppf: Add test suite for TreeTextFileAccess class.

12 years agoAdd add_swarm to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 16:48:12 +0000 (19:48 +0300)]
Add add_swarm to TreeTextFileAccess.

12 years agoppf: Add tests for storage.py functions.
Razvan Deaconescu [Sun, 21 Aug 2011 16:31:05 +0000 (19:31 +0300)]
ppf: Add tests for storage.py functions.

12 years agoppf: Move find_numeric_subfolder function outside class.
Razvan Deaconescu [Sun, 21 Aug 2011 16:30:34 +0000 (19:30 +0300)]
ppf: Move find_numeric_subfolder function outside class.

12 years agoAdd logging support to storage.
Razvan Deaconescu [Sun, 21 Aug 2011 15:41:37 +0000 (18:41 +0300)]
Add logging support to storage.

12 years agoInitial fill of TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 15:40:51 +0000 (18:40 +0300)]
Initial fill of TreeTextFileAccess.

12 years agoRemove BTClient class.
Razvan Deaconescu [Sun, 21 Aug 2011 14:56:28 +0000 (17:56 +0300)]
Remove BTClient class.

BitTorrent clients are defined as a dictionary.

12 years agoppf: Add storage.py.
Razvan Deaconescu [Sun, 21 Aug 2011 14:30:05 +0000 (17:30 +0300)]
ppf: Add storage.py.

Swarm data logging backend.

12 years agoAdd TODOs to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 18:29:29 +0000 (21:29 +0300)]
Add TODOs to sqlite_initdb.bash.

12 years agoppf: Replace TABs with spaces.
Razvan Deaconescu [Sat, 20 Aug 2011 18:00:46 +0000 (21:00 +0300)]
ppf: Replace TABs with spaces.

12 years agoppf: Rename db_init to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 17:57:01 +0000 (20:57 +0300)]
ppf: Rename db_init to sqlite_initdb.bash.

12 years agoAdd Python SQLite initialization script.
Razvan Deaconescu [Sat, 20 Aug 2011 17:49:51 +0000 (20:49 +0300)]
Add Python SQLite initialization script.

Uses Python code to initialize SQLite database file (executes SQL script).

12 years agoppf: Add sessctl.py.
Razvan Deaconescu [Sat, 20 Aug 2011 16:54:52 +0000 (19:54 +0300)]
ppf: Add sessctl.py.

Interface for swarm/client session handling in the database.

12 years agoppf: Add msgctl.py.
Razvan Deaconescu [Sat, 20 Aug 2011 16:22:00 +0000 (19:22 +0300)]
ppf: Add msgctl.py.

Interface for status/verbose messages handling in the database.

12 years agoAdd wrapper methods to access.py.
Razvan Deaconescu [Sat, 20 Aug 2011 09:44:36 +0000 (12:44 +0300)]
Add wrapper methods to access.py.

12 years agoppf: Add unit test suite for julian.py.
Razvan Deaconescu [Fri, 19 Aug 2011 20:16:27 +0000 (23:16 +0300)]
ppf: Add unit test suite for julian.py.

12 years agoppf: Update julian.py.
Razvan Deaconescu [Fri, 19 Aug 2011 20:15:59 +0000 (23:15 +0300)]
ppf: Update julian.py.

Indentation, package import, comments.

12 years agoppf: Add tests for date_time methods.
Razvan Deaconescu [Fri, 19 Aug 2011 18:48:40 +0000 (21:48 +0300)]
ppf: Add tests for date_time methods.

12 years agoppf: Add datetime insert functions in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 18:35:27 +0000 (21:35 +0300)]
ppf: Add datetime insert functions in access.py.

12 years agoppf: Add test to check exception raising in case of non-existent database file.
Razvan Deaconescu [Fri, 19 Aug 2011 11:43:21 +0000 (14:43 +0300)]
ppf: Add test to check exception raising in case of non-existent database file.

12 years agoppf: Update log formatting. Add exception handling.
Razvan Deaconescu [Fri, 19 Aug 2011 11:42:17 +0000 (14:42 +0300)]
ppf: Update log formatting. Add exception handling.

Create DatabaseError class for raising Database exceptions.

12 years agoppf: Add Python logging module support.
Razvan Deaconescu [Fri, 19 Aug 2011 10:43:53 +0000 (13:43 +0300)]
ppf: Add Python logging module support.

12 years agoppf: Replace '?' string with '%s' in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 10:07:46 +0000 (13:07 +0300)]
ppf: Replace '?' string with '%s' in access.py.

12 years agoppf: Remove return values in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 10:04:47 +0000 (13:04 +0300)]
ppf: Remove return values in access.py.

12 years agoppf: Do coding style "arrangements" in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:58:07 +0000 (12:58 +0300)]
ppf: Do coding style "arrangements" in access.py.

12 years agoppf: Add get_connection() method to access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:35:02 +0000 (12:35 +0300)]
ppf: Add get_connection() method to access.py.

12 years agoppf: Add description and developer information.
Razvan Deaconescu [Fri, 19 Aug 2011 09:33:18 +0000 (12:33 +0300)]
ppf: Add description and developer information.

12 years agoppf: show parameter is False by default in select methods.
Razvan Deaconescu [Fri, 19 Aug 2011 09:31:32 +0000 (12:31 +0300)]
ppf: show parameter is False by default in select methods.

12 years agoppf: Use capitals for SQL statements in access.py.
Razvan Deaconescu [Fri, 19 Aug 2011 09:27:34 +0000 (12:27 +0300)]
ppf: Use capitals for SQL statements in access.py.

12 years agoppf: Use capitals for SQL statements in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 09:23:04 +0000 (12:23 +0300)]
ppf: Use capitals for SQL statements in test suite.

12 years agoppf: Use *_row methods in unit tests.
Razvan Deaconescu [Fri, 19 Aug 2011 09:13:38 +0000 (12:13 +0300)]
ppf: Use *_row methods in unit tests.

12 years agoppf: Remove solved comments.
Razvan Deaconescu [Fri, 19 Aug 2011 08:52:49 +0000 (11:52 +0300)]
ppf: Remove solved comments.

12 years agoppf: Remove old commented code in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 08:52:13 +0000 (11:52 +0300)]
ppf: Remove old commented code in test suite.

12 years agoppf: Add insert_test_*_messages methods in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 08:50:18 +0000 (11:50 +0300)]
ppf: Add insert_test_*_messages methods in test suite.

12 years agoppf: Add insert_test_btclients method in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 07:54:48 +0000 (10:54 +0300)]
ppf: Add insert_test_btclients method in test suite.

12 years agoppf: Add insert_test_swarms method in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 07:35:25 +0000 (10:35 +0300)]
ppf: Add insert_test_swarms method in test suite.

Inserts test entries in the `swarms` table. Select, insert and update
methods are checked against number of entries in the table.

12 years agoppf: Add get_cursor_num_rows() method in test suite.
Razvan Deaconescu [Fri, 19 Aug 2011 07:17:13 +0000 (10:17 +0300)]
ppf: Add get_cursor_num_rows() method in test suite.

12 years agoppf: Add tests to select_btclients* methods.
Razvan Deaconescu [Fri, 19 Aug 2011 07:01:40 +0000 (10:01 +0300)]
ppf: Add tests to select_btclients* methods.

12 years agoppf: Add database connection/initialization in setUp test method.
Razvan Deaconescu [Fri, 19 Aug 2011 06:50:30 +0000 (09:50 +0300)]
ppf: Add database connection/initialization in setUp test method.

12 years agoComplete basic tests for access.py.
Razvan Deaconescu [Thu, 18 Aug 2011 17:45:36 +0000 (20:45 +0300)]
Complete basic tests for access.py.

12 years agoppf: Add partial tests for accees.py.
Razvan Deaconescu [Wed, 17 Aug 2011 15:00:30 +0000 (18:00 +0300)]
ppf: Add partial tests for accees.py.

12 years agoppf: Update select_swarms to return None on error.
Razvan Deaconescu [Wed, 17 Aug 2011 14:20:23 +0000 (17:20 +0300)]
ppf: Update select_swarms to return None on error.

12 years agoppf: Remove get_connection method.
Razvan Deaconescu [Wed, 17 Aug 2011 14:02:59 +0000 (17:02 +0300)]
ppf: Remove get_connection method.

12 years agoppf: Return connection in connect method for DatabaseAccess.
Razvan Deaconescu [Wed, 17 Aug 2011 14:01:41 +0000 (17:01 +0300)]
ppf: Return connection in connect method for DatabaseAccess.

12 years agoppf: Fix: Use database instead of self.database.
Razvan Deaconescu [Wed, 17 Aug 2011 13:56:45 +0000 (16:56 +0300)]
ppf: Fix: Use database instead of self.database.

12 years agoppf: Fix: Remove self. from global class variables.
Razvan Deaconescu [Wed, 17 Aug 2011 13:43:26 +0000 (16:43 +0300)]
ppf: Fix: Remove self. from global class variables.

12 years agoRestore DatabaseAccess.py.
Razvan Deaconescu [Tue, 16 Aug 2011 17:53:13 +0000 (20:53 +0300)]
Restore DatabaseAccess.py.

12 years agoAdd test skeleton to test_access_sqlite.
Razvan Deaconescu [Tue, 16 Aug 2011 17:34:28 +0000 (20:34 +0300)]
Add test skeleton to test_access_sqlite.

12 years agoRename test_access to test_access_sqlite.
Razvan Deaconescu [Tue, 16 Aug 2011 17:02:14 +0000 (20:02 +0300)]
Rename test_access to test_access_sqlite.

12 years agoInitial working version for test_access.
Razvan Deaconescu [Tue, 16 Aug 2011 17:01:06 +0000 (20:01 +0300)]
Initial working version for test_access.

12 years agoMove main() in access.py to tests/test_acces.py.
Razvan Deaconescu [Tue, 16 Aug 2011 16:16:14 +0000 (19:16 +0300)]
Move main() in access.py to tests/test_acces.py.

12 years agoAdd tests/ folder for unit testing.
Razvan Deaconescu [Tue, 16 Aug 2011 16:09:46 +0000 (19:09 +0300)]
Add tests/ folder for unit testing.

12 years agoAdd __init__.py. Turn it into a package.
Razvan Deaconescu [Tue, 16 Aug 2011 16:09:36 +0000 (19:09 +0300)]
Add __init__.py. Turn it into a package.

12 years agoCreate base class and SQLite class.
Razvan Deaconescu [Tue, 16 Aug 2011 16:08:32 +0000 (19:08 +0300)]
Create base class and SQLite class.

12 years agoMove DatabaseAccess to access.
Razvan Deaconescu [Tue, 16 Aug 2011 15:43:31 +0000 (18:43 +0300)]
Move DatabaseAccess to access.

12 years agoReplace tabs with spaces. Remove trailing white spaces.
Razvan Deaconescu [Tue, 16 Aug 2011 15:42:27 +0000 (18:42 +0300)]
Replace tabs with spaces. Remove trailing white spaces.

12 years agoppf: Use configuration file received as argument.
Mariana Marasoiu [Tue, 16 Aug 2011 16:32:39 +0000 (19:32 +0300)]
ppf: Use configuration file received as argument.

12 years agoppf: Replace hardcoded database name in libtorrent/log_parser with
Mariana Marasoiu [Tue, 16 Aug 2011 16:16:36 +0000 (19:16 +0300)]
ppf: Replace hardcoded database name in libtorrent/log_parser with
configuration file received as argument.

12 years agoppf: Modify libtorrent/LogParser.py and libtorrent/StatusParser.py to
Mariana Marasoiu [Tue, 16 Aug 2011 15:50:31 +0000 (18:50 +0300)]
ppf: Modify libtorrent/LogParser.py and libtorrent/StatusParser.py to
use new SQL schema and configuration file.

12 years agoppf: Remove trailing whitespaces.
Razvan Deaconescu [Tue, 16 Aug 2011 12:57:06 +0000 (15:57 +0300)]
ppf: Remove trailing whitespaces.

12 years agoppf: Mention MySQL in README file in sql/ subfolder.
Razvan Deaconescu [Tue, 16 Aug 2011 12:56:24 +0000 (15:56 +0300)]
ppf: Mention MySQL in README file in sql/ subfolder.

12 years agoMove autorun/ to smf/. Update README files.
Razvan Deaconescu [Tue, 16 Aug 2011 12:02:34 +0000 (15:02 +0300)]
Move autorun/ to smf/. Update README files.

smf - Swarm Management Framework

12 years agoppf: Move GUI/ to gui/.
Razvan Deaconescu [Tue, 16 Aug 2011 11:59:46 +0000 (14:59 +0300)]
ppf: Move GUI/ to gui/.

12 years agoppf: Add Tribler sample peer status message log file.
Razvan Deaconescu [Sun, 14 Aug 2011 17:24:40 +0000 (20:24 +0300)]
ppf: Add Tribler sample peer status message log file.

12 years agoppf: Add sample peer status message log file.
Razvan Deaconescu [Sun, 14 Aug 2011 17:17:28 +0000 (20:17 +0300)]
ppf: Add sample peer status message log file.

12 years agoppf: Modify DatabaseWriter and DatabaseCommander to use new SQL shema.
Mariana Marasoiu [Fri, 12 Aug 2011 11:59:48 +0000 (14:59 +0300)]
ppf: Modify DatabaseWriter and DatabaseCommander to use new SQL shema.

12 years agoppf: DatabaseAccess.py gets as argument any configuration file.
Mariana Marasoiu [Thu, 11 Aug 2011 19:33:13 +0000 (22:33 +0300)]
ppf: DatabaseAccess.py gets as argument any configuration file.

12 years agoppf: Modify DatabaseAccess.py to use new SQL schema.
Mariana Marasoiu [Thu, 11 Aug 2011 17:48:41 +0000 (20:48 +0300)]
ppf: Modify DatabaseAccess.py to use new SQL schema.

12 years agolog-id-mapping: Mention use of KB/s for speed limitation.
Razvan Deaconescu [Thu, 11 Aug 2011 13:22:54 +0000 (16:22 +0300)]
log-id-mapping: Mention use of KB/s for speed limitation.

12 years agolog-id-mapping: Add README.
Razvan Deaconescu [Thu, 11 Aug 2011 13:16:16 +0000 (16:16 +0300)]
log-id-mapping: Add README.

12 years agoAdd sample file for logfile to client session ID mapping.
Razvan Deaconescu [Thu, 11 Aug 2011 13:01:27 +0000 (16:01 +0300)]
Add sample file for logfile to client session ID mapping.

12 years agoAdd sample swarm description INI file.
Razvan Deaconescu [Thu, 11 Aug 2011 12:56:12 +0000 (15:56 +0300)]
Add sample swarm description INI file.

12 years agoAdd Dia log parsing workflow image.
Razvan Deaconescu [Thu, 11 Aug 2011 12:55:50 +0000 (15:55 +0300)]
Add Dia log parsing workflow image.

12 years agoppf: Add configuration file for database connection. Modify
Mariana Marasoiu [Tue, 9 Aug 2011 10:17:13 +0000 (13:17 +0300)]
ppf: Add configuration file for database connection. Modify
DatabaseAccess.py to use config file.

12 years agoppf: Add index support to MySQL tables.
Mariana Marasoiu [Mon, 8 Aug 2011 12:58:13 +0000 (15:58 +0300)]
ppf: Add index support to MySQL tables.

12 years agoppf: Fix SQL script. Works in real world.
root p2p-next-02 [Sun, 7 Aug 2011 18:48:06 +0000 (21:48 +0300)]
ppf: Fix SQL script. Works in real world.

Correct MySQL syntax is INTEGER UNSIGNED instead of UNSIGNED INTEGER.
index is a reserver keyword in MySQL also. Use _index for column name.
Create p2p_logs_test database for testing.

12 years agoppf: Change column name from direction_id to transfer_direction_id.
root p2p-next-02 [Sun, 7 Aug 2011 18:33:16 +0000 (21:33 +0300)]
ppf: Change column name from direction_id to transfer_direction_id.

12 years agoppf: (fix) Remove incorrent extra line in SQL file.
root p2p-next-02 [Sun, 7 Aug 2011 18:29:03 +0000 (21:29 +0300)]
ppf: (fix) Remove incorrent extra line in SQL file.

12 years agoppf: Fix when inserting data in btclients table.
root p2p-next-02 [Sun, 7 Aug 2011 18:15:29 +0000 (21:15 +0300)]
ppf: Fix when inserting data in btclients table.

12 years agoppf: Update insert rules in SQL files for message_types table.
root p2p-next-02 [Sun, 7 Aug 2011 18:14:11 +0000 (21:14 +0300)]
ppf: Update insert rules in SQL files for message_types table.

12 years agoppf: Update insert rules in SQL files for tranfer_directions table.
root p2p-next-02 [Sun, 7 Aug 2011 18:06:19 +0000 (21:06 +0300)]
ppf: Update insert rules in SQL files for tranfer_directions table.

12 years agoppf: Update insert rules in SQL files for btclients table.
root p2p-next-02 [Sun, 7 Aug 2011 18:01:03 +0000 (21:01 +0300)]
ppf: Update insert rules in SQL files for btclients table.

12 years agoppf: Add NOT NULL and DEFAULT constraints to MySQL SQL file.
Razvan Deaconescu [Sun, 7 Aug 2011 17:20:36 +0000 (20:20 +0300)]
ppf: Add NOT NULL and DEFAULT constraints to MySQL SQL file.

12 years agoppf: Move new SQL file to initial file.
Razvan Deaconescu [Sun, 7 Aug 2011 17:12:35 +0000 (20:12 +0300)]
ppf: Move new SQL file to initial file.