On Thu, Jun 10, 2010 at 11:45:49AM -0700, Mark Diggory wrote:
> Did you look over the Quartz Job Scheduler Addon, this type of asynchronous 
> thread spawning activity is what I intended it to alleviate us from doing.

I had not thought of it.  I was thinking to get the export done
immediately, not schedule it for later.  But "later" could be now +
1µs.  Pleased as I was with my spawning and monitoring code, I'd be
more pleased to ditch it and let someone else manage all that hair.
Thanks for the nudge.

But I was never happy with spawning subprocesses at all.  I felt
compelled to run the packager from the commandline because the only
otherwise suitable method for directly calling it is 'protected' and
thus not visible from my code.  But it was pointed out to me that I
can just do what it does: ask the PluginManager for a reference to the
AIP plugin and call *that* directly, since the plugin's methods are
'public'.  The code has been updated to do that.  This also removed a
dodgy path assumption.

The subprocess approach was also unsatisfactory because of the
potential to fork-bomb the system when batch loading large quantities
of items, or making other bulk changes.  Using a job scheduler could
have tamed that.

-- 
Mark H. Wood, Lead System Programmer   [email protected]
Balance your desire for bells and whistles with the reality that only a 
little more than 2 percent of world population has broadband.
        -- Ledford and Tyler, _Google Analytics 2.0_

Attachment: pgpUiZTaiGt1U.pgp
Description: PGP signature

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to