The following I added last night to the documentation:
"Droids (plural) is not designed for a special usecase, it is a
framework: Take what you need, do what you want, impossible is
nothing.
I get the desire to say "we can do anything".... but I fear it seems a
little far fetched. Sure with enough coding, it could be customized
to do anything, but lets be serious ;)
It is the cocoon/UNIX philosophy for automated task processing in
java.
As a reminder a pipe in unix starts with an invoking component (which
produces a stream) and then chain as much other components that
interact
on the stream that are needed. The modification of each component will
be passed to the next component in the chain.
For example the following command in a unix box will lance a
subversion
command to check for the status on the local svn checkout (svn st).
The
next command will filter the files that are not under svn control
(grep ?). The next command will modify the stream to create a
command to
add this files to the repository (awk ...). The last step will cause
the
invocation of the command by sending it to the shell (sh).
svn st | grep ? | awk '{print "svn add "$2}' | sh
I'm not sure I buy the unix/pipe analogy -- Where is the pipeline in
droids?
To me the core concept of Droids is a Queue<Task> and the plumbing to
keep a bunch of Workers running the Tasks. In addition, Droids
delivers a bunch of utilities to help many standard use cases (some
include text processing pipeline).
Maybe the 'lego' analogy is more fitting? (if an analogy is necessary)
There is as well another typical use case for droids. I will call them
"racer" (anagram of crawler). Racer are not trying to extract new
tasks
they start with a limited number of task that are defined in the
initQueue method.
Perhaps "walker" is a better term? Racer sounds faster, but walking
is on par with crawling :)
(btw, Claw Err is an anagram of crawler)
I will try to add tonight an example of a file racer since I have a
nice
use case (I need to clean up the names of various files in a
directory -
removing special characters and bring them in a special form).
thanks! that would be great.
If you do a directory based example, i'll extend it to IMAP...
ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]