Author: bchapuis
Date: Wed Nov  7 15:48:46 2012
New Revision: 1406681

URL: http://svn.apache.org/viewvc?rev=1406681&view=rev
Log:
some ideas of changes

Added:
    incubator/droids/branches/0.2.x-cleanup/changes.txt

Added: incubator/droids/branches/0.2.x-cleanup/changes.txt
URL: 
http://svn.apache.org/viewvc/incubator/droids/branches/0.2.x-cleanup/changes.txt?rev=1406681&view=auto
==============================================================================
--- incubator/droids/branches/0.2.x-cleanup/changes.txt (added)
+++ incubator/droids/branches/0.2.x-cleanup/changes.txt Wed Nov  7 15:48:46 2012
@@ -0,0 +1,69 @@
+Droids API Changes
+==================
+
+Queue
+The idea of replacing specific queue by java.util.queue was to give the 
ability to use distributed queues http://code.google.com/p/hazelcast/wiki/Queue
+
+Remove the parse object
+Remove the close method which is managed by the InputStream
+Remove the advanced managed content entity class
+
+The metadata are extracted by the handling time
+
+
+
+Crawler exemple
+===============
+
+Queue q = new Queue();
+q.add(new Resource());
+
+new Droids()
+       .setQueue(new TaskQueue()
+       .addTask(
+               new Task("http://www.apache.org";)
+       ))
+       .setWorkerFactory(new CrawlingWorkerFactory())
+       .start()
+       .awaitTermination();
+
+Walking exemple
+==============
+
+Queue q = new Queue();
+q.add(new Resource("file://path/to/directory/"));
+
+new Droids()
+       .setQueue(new TaskQueue())
+       .setWorkerFactory(new WalkingWorkerFactory())
+       .start()
+       .awaitTermination();
+
+
+Custom exemple
+==============
+
+Queue q = new Queue();
+q.add(new Resource("file://path/to/directory/"));
+
+new Droids()
+       .setQueue(new TaskQueue())
+       .setWorkerFactory(new WorkerFactory() {
+
+               public WorkerFactory() {
+                       // instantiation
+               }
+
+               public void execute() {
+                       // execution
+               }
+
+       })
+       .start()
+       .awaitTermination();
+
+
+
+
+
+


Reply via email to