akwizgran
7eaefd97cb
Added missing Override annotations.
2011-10-08 12:45:49 +01:00
akwizgran
a3a5ebc14f
Removed unused exceptions. Also disabled output for ant tests.
2011-10-08 12:27:13 +01:00
akwizgran
4b1ffbe85b
Logging for plugins.
2011-10-07 13:59:19 +01:00
akwizgran
831cc42ddf
Merge branch 'refs/heads/master' of ssh://akwizgran@briar.git.sourceforge.net/gitroot/briar/prototype
2011-10-07 13:38:31 +01:00
akwizgran
56c07a8d98
Tests for the Bluetooth plugin.
2011-10-07 13:36:53 +01:00
akwizgran
a9b1a9123b
Use discovery rather than hardcoded URLs (which don't work).
...
Two devices that aren't discoverable won't be able to
communicate. (Likely to affect Linux devices, since changing
discoverability requires root on Linux.)
2011-10-07 13:36:24 +01:00
akwizgran
f41dbd0836
Use discovery rather than hardcoded URLs (which don't work).
...
Two devices that aren't discoverable won't be able to
communicate. (Likely to affect Linux devices, since changing
discoverability requires root on Linux.)
2011-10-07 13:19:00 +01:00
akwizgran
ea6beac011
Plugin refactoring.
2011-10-07 13:17:13 +01:00
akwizgran
a37186d574
Reverted to Bluecove 2.1.0 because discovery wasn't working on Linux.
2011-10-07 12:12:12 +01:00
akwizgran
3364604d03
Removed unused return value.
2011-10-07 11:29:01 +01:00
akwizgran
196c564d11
Upgraded Bluecove to 2.1.1 for Linux support without libbluetooth.
2011-10-07 00:09:07 +01:00
akwizgran
16c9bf7079
Unit test refactoring.
2011-10-07 00:08:32 +01:00
akwizgran
8fa77b57da
Bluetooth plugin (untested).
2011-10-06 19:33:12 +01:00
akwizgran
6d68fa5c4a
Check whether the socket has been set to null due to a failed
...
re-binding.
2011-10-06 19:32:55 +01:00
akwizgran
c08f6c4d1e
Merged transports' finish() and dispose() methods.
2011-10-06 19:00:33 +01:00
akwizgran
07d6715881
Added Bluetooth jars.
2011-10-06 18:43:43 +01:00
akwizgran
7a994114ff
Synchronize access to superclass members.
2011-10-06 18:16:08 +01:00
akwizgran
42e586abc4
Merged code from FilePlugin and SocketPlugin into a superclass.
2011-10-06 18:07:58 +01:00
akwizgran
3e522c81fa
Plugins should not modify their properties or configs.
2011-10-06 17:58:08 +01:00
akwizgran
8468b84c54
Reduced visibility of methods where possible.
2011-10-06 17:53:31 +01:00
akwizgran
bb9f03f1e8
Close and reopen the socket if necessary when the properties change.
2011-10-06 17:39:51 +01:00
akwizgran
f23e89c80e
Outgoing connection test.
2011-10-06 12:59:27 +01:00
akwizgran
e7b404b7b3
Check that the socket is passed to the callback.
2011-10-06 12:15:55 +01:00
akwizgran
5bc9baff95
Accept connections on the local socket.
2011-10-06 12:00:44 +01:00
akwizgran
1ee765a052
Resolve the address before binding.
2011-10-06 11:31:09 +01:00
akwizgran
f8ca06f79d
Changed callback arguments to varargs and renamed a method.
2011-10-06 11:13:19 +01:00
akwizgran
11b571fd8f
Moved locking to the superclass to simplify subclasses.
2011-10-06 09:34:15 +01:00
akwizgran
ffe10e1502
Don't call the callback after stop() has been called.
2011-10-06 09:25:50 +01:00
akwizgran
6737e4ddfb
Merged common methods of BatchTransportPlugin and
...
StreamTransportPlugin into a superclass.
2011-10-06 09:22:56 +01:00
akwizgran
b54668c50b
Renamed InvalidTransportException -> InvalidPropertiesException.
2011-10-06 09:18:13 +01:00
akwizgran
45fd4c9060
Simple TCP socket plugin (untested).
2011-10-06 09:17:22 +01:00
akwizgran
80cba1e7f7
Added finish() methods to transport readers/writers, and added a
...
readerFinished() callback method to FilePlugin.
2011-10-05 18:59:30 +01:00
akwizgran
775d76d040
Removed unused classes.
2011-10-05 18:54:49 +01:00
akwizgran
6160a5f56c
Formatting.
2011-10-05 18:49:27 +01:00
akwizgran
3ffb56bf12
Factored ConnectionRecogniser out of transport plugins.
2011-10-05 18:48:10 +01:00
akwizgran
af41e42c6c
Use an Executor to decouple the callback from the caller.
2011-10-05 17:22:21 +01:00
akwizgran
8940dc83cb
Replaced assertTrue(Arrays.equals()) with assertArrayEquals().
2011-10-05 17:07:52 +01:00
akwizgran
c054e1c00e
Replaced some sleeps with latches.
2011-10-05 16:51:26 +01:00
akwizgran
9464e29d75
Unit tests for the reader portion of RemovableDrivePlugin.
2011-10-05 16:39:20 +01:00
akwizgran
f6df333796
Changed drive monitors to use callbacks rather than blocking.
2011-10-05 16:11:18 +01:00
akwizgran
3a321b0f0e
Unit tests for PollingRemovableDriveMonitor.
2011-10-05 14:51:24 +01:00
akwizgran
2ce8d2a418
Fixed a race condition: start the monitor before creating files.
2011-10-05 14:09:43 +01:00
akwizgran
a773bbc320
Unit tests for UnixRemovableDriveMonitor.
2011-10-05 13:47:38 +02:00
akwizgran
2095c2bbaa
Removable drive monitors for Windows, Mac and Linux (untested).
2011-10-05 13:27:37 +02:00
akwizgran
b65713796e
Added JNotify jar and native libraries for Linux and Mac.
2011-10-05 13:27:04 +02:00
akwizgran
d49ab73d81
Unit tests and bug fixes for removable drive finders.
2011-10-04 22:36:00 +01:00
akwizgran
18723a56ae
Unit tests for the removable drive plugin.
2011-10-04 22:04:10 +01:00
akwizgran
f4af582592
Don't try to get the free space for a nonexistent file.
2011-10-04 21:47:38 +01:00
akwizgran
ef811ed295
Removed println.
2011-10-04 21:45:15 +01:00
akwizgran
f02e6b3f89
Removable drive finders for Windows, Mac and Linux (untested).
2011-10-04 21:04:22 +01:00