Distributed database
Brought to you by:
leist
It requires some additions to the configuration files
used by the plugin system however I am not sure exectly
how this should be done hopfully can some one that
knows this better provide those changes.
It is still experimental I hope to get the time to make
something better (removing simplesql for instance) soon.
Libs:
miniml.jar - a xml parser that has smaller heap size
simplesql.jar - sql-database
Put the enorem directory in source path under
org/xnap/plugin.
Johan Mattsson
(Thank you for making such a nice interface!)
The file was a little bit to big to fit in patchtracker
you can find it here:
http://home.student.uu.se/j/joma6655/enorem-xnap-plugin-pre1.tgz
Logged In: YES
user_id=62553
Feedback:
You forgot to provide a patch, that patches metainfo/control.
I added something like this to make the enorem plugin
show up:
Package: xnap-enorem-plugin
Name: Enorem
Section: plugin/net
Version: 0.0.0
Authors: Johan Mattsson
Class-Name: org.xnap.plugin.enorem.EnoremPlugin
Class-Path: ${Package}-${Version}.jar
Depends: xnap-core (>= 3.0-beta2)
Required-JRE: 1.4
Description: Provides a search facility to a distributed
database.
License: GPL
Files: COPYING
Compile Warnings/Errors:
I had to comment out:
// EnoremSearchResult.this.setDownloading(true);
and Database.java lacks a new-line at the end of the file,
but that's just a warning.
Runtime Errors:
When I searched with the Enorem plugin enabled, I got an
npe:
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at
java.io.InputStreamReader.<init>(InputStreamReader.java:55)
at
org.xnap.plugin.enorem.Enorem.addDefault(Enorem.java:527)
at org.xnap.plugin.enorem.Enorem.access$0
(Enorem.java:33)
at
org.xnap.plugin.enorem.Enorem$MetaDownloader.run(Enorem.java:673)
at java.lang.Thread.run(Thread.java:536)
It's great you found your way around the whole framework
and created a plugin for XNap3.
Logged In: YES
user_id=1272334
sorry for not providing the meta control.
bflat wrote: "When I searched with the Enorem plugin
enabled, I got an npe"
I forgot to remove the method but the npe is catched. the
plugin should work as expected. I did fix this issue and
uploaded the new files to
http://cvs.sourceforge.net/viewcvs.py/openmusic/xnap-plugin/
There are a few problems besides that simplesql is slow and
consumes mutch cpu time:
-It can take a few minutes before the index is searchable
since a chunk must be downloaded.
-Interuppting the process in a way that skipps XNaps
ordinary shutdown procedures (e.g. call to Plugin.stop())
may result in a broken table and there is no way to repare
tables in simplesql.