Ron,

On Oct 8, 2013, at 4:48 PM, "Roskens, Ronald" <ronald.rosk...@biworldwide.com> 
wrote:

> When you look at OS packages, they have can run things at a pre and post 
> stages, and maybe a rollback procedure. So maybe there should be a 
> preExecute() method that would run some checks to ensure that what it would 
> execute() would work?
>  
> if I was going to migrate from JRobin v1 to RR4J v2 formatted RRDs, I’d want 
> to know that I had enough disk space around before doing a conversion. Then, 
> as an option a postExecute() could remove all the JRobin v1 files. (Imagine 
> if RRD data moved into Cassandra or some other backend…)
>  
> Or another case might be having the a step do a database backup for us before 
> running the installer for database components. We’d want to have enough space 
> around for the database backup before doing the upgrade.
>  
> So then upgrade would run all the preExecutes(), and if they all succeeded, 
> run all the executes(), and if they all succeeded, run all the 
> postExecutes(). If any of the executes() failed, attempt to rollback 
> executing a rollback() method?

I like the ideas, I'm going to upgrade my proof of concept with them.

Thanks!

Alejandro.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to