Commit Graph

811 Commits

Author SHA1 Message Date
akwizgran
e379f11698 Fixed existing unit tests for DatabaseComponentImpl, and two bugs. 2013-01-30 14:39:13 +00:00
akwizgran
fe153b0815 Merged flags table into messages table (they now use the same lock). 2013-01-29 17:51:54 +00:00
akwizgran
ea339e76d6 Added getVisibleSubscriptions() method for managing group visibility. 2013-01-29 17:09:06 +00:00
akwizgran
33d0f19f26 Fixed existing unit tests for H2Database; new tests are needed. 2013-01-29 16:43:41 +00:00
akwizgran
7ecda94340 Renamed some methods, fixed SQL typo bugs in JdbcDatabase. 2013-01-29 16:43:13 +00:00
akwizgran
61a6931643 Renamed ContactTransport -> Endpoint, added more database exceptions. 2013-01-29 15:24:34 +00:00
akwizgran
54067763a6 Cleaned up imports. 2013-01-29 14:46:19 +00:00
akwizgran
81397ef1c2 Added database events for retention updates. 2013-01-29 14:45:05 +00:00
akwizgran
c3c349970b Use 'retention' rather than 'expiry' to describe DB's retention period.
This will avoid a name clash when retransmission is implemented.
2013-01-29 14:33:43 +00:00
akwizgran
3e1c41c62f Removed the serialisation reader's internal array of struct readers. 2013-01-28 23:37:44 +00:00
akwizgran
42dd7f238c Send newest messages first.
This removes the need to send a start time for each subscription; new
subscribers will receive old messages if and only if there's bandwidth.
2013-01-28 23:24:35 +00:00
akwizgran
2ebbe0eb2a Don't store received messages with timestamps in the future. 2013-01-28 23:20:25 +00:00
akwizgran
2c27a0251a Database methods for expiry updates and expiry acks. 2013-01-28 23:12:42 +00:00
akwizgran
d0904d8f1b Merged small reader classes into ProtocolReaderImpl.
The structure of the reader now resembles that of the writer, which
should make it easier to spot discrepancies.
2013-01-28 21:00:59 +00:00
akwizgran
0141365963 Created expiry update and expiry ack packets for BMP. 2013-01-28 20:43:43 +00:00
akwizgran
7a4549a699 Applied a patch from the Silvertunnel forums for connection issues. 2013-01-28 20:13:48 +00:00
akwizgran
9b98d3c7d6 Added new database events and simplified database locking. 2013-01-25 16:27:50 +00:00
akwizgran
64bf1fbbb1 Part 1 of a major BMP and database refactoring. Tests are broken!
The old logic for selecting when to send subscription and transport
updates has been removed and not yet replaced. Subscription times have
been removed from subscription updates. The database expiry time has
been remove from subscription updates and will later get its own update
packet. Transport updates have been broken up into one update per
transport. Acks for subscription and transport updates have been added.
2013-01-25 15:38:37 +00:00
akwizgran
b8247968b6 Code cleanup: import static. 2013-01-17 16:56:58 +00:00
akwizgran
77a5fea5c8 Code and API cleanup for the database component. 2013-01-17 16:28:09 +00:00
akwizgran
50ad1f486e Removed batches from BMP. Messages are now sent and acked individually. 2013-01-16 22:56:03 +00:00
akwizgran
13cad40004 Removed obsolete .gitignore file. 2013-01-14 18:17:52 +00:00
akwizgran
4b49e0742c Added GPLv3 license file. 2013-01-10 16:56:21 +00:00
akwizgran
a8f569ff8b Removed GeoIP database from Silvertunnel jar. 2013-01-10 16:51:51 +00:00
akwizgran
819e2c1b74 Added patch for jSSC. 2013-01-04 01:42:33 +00:00
akwizgran
8f15c44520 Renamed JNA jars and Bluecove patch, added patches for JNA and Silvertunnel. 2013-01-04 01:36:50 +00:00
akwizgran
41a3f8e6cc Recompiled Bluecove jars with Java 1.5 to stop dex complaining. 2013-01-03 23:25:26 +00:00
akwizgran
e5d6b7c1c1 Recompiled JNA jars with target Java 1.5 to stop dex complaining. 2013-01-03 22:43:16 +00:00
akwizgran
1d5928be46 Fixed a long-broken test (the return type of a method had changed). 2013-01-03 21:57:03 +00:00
akwizgran
5b02fe96d1 Disable shuffling of contacts when unit testing the modem plugin. 2013-01-03 21:47:16 +00:00
akwizgran
5f65b8a9fb Reduced MAX_PUBLIC_KEY_LENGTH to match SEC 1 encoding of 384-bit keys. 2013-01-03 21:42:05 +00:00
akwizgran
2dd369214e Use NIST curve P-384 and the SEC 1 encoding for public keys. 2013-01-03 21:37:42 +00:00
akwizgran
f638f1b44e Added source jars for Spongy Castle, fixed some indentation. 2013-01-02 22:28:01 +00:00
akwizgran
15837c4d24 Deleted activation.jar, removed javax.inject.jar from build path.
Guice only requires javax.inject.jar at runtime.
2012-12-18 17:30:09 +00:00
akwizgran
c93e6be191 Restored GeoIP database to Tor plugin.
This seems to prevent unexplained SocketTimeoutExceptions that occur
even though the timeout is set to 0 (unlimited).
2012-12-18 03:39:50 +00:00
akwizgran
0bfa83bb9f Attached source for jSSC and Silvertunnel. 2012-12-17 19:09:13 +00:00
akwizgran
2d6a9fa310 Unit tests for ModemPlugin. 2012-12-16 02:05:39 +00:00
akwizgran
3c32c3ecf1 Removed polling semaphore (not needed - Modem.dial() will return false). 2012-12-16 00:47:05 +00:00
akwizgran
a7acec8f72 Ensure the semaphore is released if a RuntimeException is thrown. 2012-12-16 00:16:19 +00:00
akwizgran
7887331d1c Check the return value of Modem.start(). 2012-12-16 00:10:20 +00:00
akwizgran
cfb90597bd Wrapped jSSC's SerialPort and SerialPortList classes for testability. 2012-12-15 23:05:41 +00:00
akwizgran
b090a12b7f Accept phone numbers starting with +. 2012-12-15 22:24:51 +00:00
akwizgran
6dd17a22eb Converted Group from an interface to an immutable class. 2012-12-15 19:42:00 +00:00
akwizgran
ac0420d276 Unit tests and bug fixes for international dialling. 2012-12-15 16:36:37 +00:00
akwizgran
8f33330e42 International dialling support for the modem plugin (untested). 2012-12-15 16:17:04 +00:00
akwizgran
3b3ab6fd1a Empty transport configs/properties should be treated the same as nulls. 2012-12-15 16:02:35 +00:00
akwizgran
28af51b156 SLIP classes don't need to depend on SLTP classes. 2012-12-15 05:07:03 +00:00
akwizgran
3e2e7286fe Wrapped System.currentTimeMillis() and Thread.sleep() for testability. 2012-12-15 04:58:35 +00:00
akwizgran
61e59f816d SLTP reads and writes should time out eventually. 2012-12-15 04:30:43 +00:00
akwizgran
15c23f486e Use +++ATH to hang up modem instead of lowering DTR (untested). 2012-12-15 02:56:34 +00:00