Hi developers,
just a comment about the planed porting of tools to actions. Related to: http://issues.apache.org/jira/browse/NUTCH-27 (Patch to get a status of running Fetcher)
I suggest that all action have a api to query status information.
This will be very helpful for things like writing jmx adapters to actions (I'm still believe on this idea :-)) or a web based admin interface for nutch.
+1. That was exactly my motivation - in one of the installations I had to add these methods in order to support a web-based admin tool.
May be in some case it make sense to have a api for setting configuration values as well, since this can be very helpful to fine tune processes like fetching.
Using this model is important also from another point of view: with the current code, where NutchConf is a singleton, it's not possible to run several tasks in parallel within a single JVM, but with radically different parameters. E.g.: if you want to run several CrawlTool with different parameters, under a single JVM, it's currently not possible. With the setConfig() change it becomes possible.
However this is very difficult since actions need to be notified or monitor configuration changes, what is may be a performance issue.
I don't think so. As I understand it, once you invoke the run() method of a tool, you are committed, i.e. the configuration that is valid at that moment will be used until the run() exits.
If Andrzej agree I would close Nutch-27 since this is obsolete with the porting plans. Just to improve the issue statistics. :-)
I agree - if you could please add a comment to the new issue that the tools API should have methods to get a status / progress report. This could be an Observer pattern.
-- Best regards, Andrzej Bialecki ___. ___ ___ ___ _ _ __________________________________ [__ || __|__/|__||\/| Information Retrieval, Semantic Web ___|||__|| \| || | Embedded Unix, System Integration http://www.sigram.com Contact: info at sigram dot com
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Nutch-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nutch-developers
