You are viewing a plain text version of this content. The canonical link for it is here.
Posted to droids-dev@incubator.apache.org by "Ying Andrews (JIRA)" <ji...@apache.org> on 2012/11/20 21:46:59 UTC

[jira] [Created] (DROIDS-175) Add "stop" functionality to the Droid

Ying Andrews created DROIDS-175:
-----------------------------------

             Summary: Add "stop" functionality to the Droid
                 Key: DROIDS-175
                 URL: https://issues.apache.org/jira/browse/DROIDS-175
             Project: Droids
          Issue Type: Improvement
          Components: core
            Reporter: Ying Andrews


I would like to propose to add a new method called "stop()" in Droid classes: Droid, AbstractDroid, and TaskMaster to terminate a running droid object and clear up any associated resources.

Background: I was integrating Droids with a search application which can take advantage of MultiThreadedTaskManager. Existing implementation of Droid (i.e. AbstractDroid and CrawlingDroid) does not allow easy access to stop the droid and clear the resources such as to clear the queue, clear the history and shutdown the pool used by multi-threaded task master even though the MultiThreadedTaskManager has a public method called "stop()" to shutdown the thread pool.  

Justification: I realize when I add a front UI for user to configure the crawler, it's very common for users to add or edit starting URLs, then stop the crawler and restart the crawler with the new configuration. So it would be nice to expose the stop() functionality for the crawler, task master and droid.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira