Re: Future of Prevayler?

Ross Rick <[email protected]>
Newsgroups gmane.comp.java.prevayler
Message-ID <[email protected]>
Of course,  sorry I wasn't clearer.   I am building a desktop app btw, so my needs may seem different than others.

There are two basic 'types' of transactions, fully journaled to disk and 'memory only' (which is really just a null serializer I think).   For large transactions like batch loading or fully hypothetical data sets, I would like to switch out the transaction journaler on the fly.  I would also like to flush and lock.  In other words,  I can do it myself, but it's alway better through the system.

By flush and lock, I mean that I want the current journal shut down, and the system locked to new transactions except for the one I am about to call.

Here is me making stuff up : 

// Finish transactions, flush the current journal and return a lock when you are done.
Object lock = prevSystem.flushAndLock();
if (lock != null) {
	prevSystem.turnOffTransactionSerialization();
	
	// prevSystem will is locked and will reject any execute requests that don't have the lock object
	prevSystem.execute( new LongRunningBatchTransaction(), lock );
	
	// Back to normal
	prevSystem.turnOnTransationSerialization();
	
	// Capture what you did
	prevSystem.snapShot();

	// Should be in a finally() or shut down on error.
	prevSystem.unlock(lock);
}

// Now the batch work is done and we are ready to go back to normal work

On Apr 15, 2010, at 3:34 PM, William Pietri wrote:

> On 04/15/2010 03:01 PM, Ross Rick wrote:
>> A way to convert from disk to memory transactions and back without restarting the prevalent system.
> 
> Could you say more about this? I understood the rest, but I don't get 
> this one.
> 
> William
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
> _______________________________________________
> "Databases in Memoriam" -- http://www.prevayler.org


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
To unsubscribe go to the end of this page: http://lists.sourceforge.net/lists/listinfo/prevayler-discussion
_______________________________________________
"Databases in Memoriam" -- http://www.prevayler.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.