beagle r4215 - in trunk/beagle/beagled: . NetworkServicesQueryable



Author: dbera
Date: 2007-11-17 19:58:58 +0000 (Sat, 17 Nov 2007)
New Revision: 4215
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=4215&view=rev

Modified:
   trunk/beagle/beagled/NetworkServicesQueryable/NetworkServicesQueryable.cs
   trunk/beagle/beagled/QueryResult.cs
Log:
Add support for network query ... this time for real. Fill in a minimal working NetworkServicesQueryable:DoQuery() that takes the query, fires it off to the remote beagled, waits till it obtains FinishedResponse() and keeps sending the results as it gets them. This still needs a lot of work and testing, because
- I have experienced occassional deadlocks (rare and for reasons beyond my understanding - the main problem being QueryResult should be filled in only from the Queryable.DoQuery() thread).
- Even rarer, no results from local beagled (remote beagled sends them alright - but somehow local beagled sends FinishedResponse before HitsAddedResponse)
- No live-query (No support of live-query in the Http handler)
- No snippets (the hits from the networksvc have hit.Source='Files' etc. so they get sent to FilesQueryable for GetSnippet; the mechanism needs to change).
- Don't know what happens when remote beagled shuts down in the middle ? Local one crashes / works but leaks / goes to the beach for surfin' ?

All of the above should scare you and make you think twice about using it ... but its actually usable (and if the remote and local machines have same mounted directory structures, then actually useful).





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]