deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koper, Dies" <>
Subject combining automatic state transistions with actioned transistions OK?
Date Fri, 02 Mar 2012 00:46:46 GMT
Please review this subset of transitions for FGCP. Is the
pending->:finish valid here? :pending )          .on( :create )  # new instances do
not start automatically :stopped )        .automatically  # after creation
they are in a stopped state :finish )         .on(:destroy)   # after creation
they can be destroyed           .on( :destroy ) # only destroy
removes an instance, and it has to be stopped first

If 'pending' transitions to :stopped automatically, the user wouldn't
have a chance to action :destroy on it, so I suppose only the fourth
transition is possible. Should I remove pending->:finish?

What confused me is the following in ec2 driver:

 :running )        .automatically
 :stopping )       .on( :stop )
 :stopped )        .automatically

How can a state automatically transition to two opposite states, and at
the same time allowing a user to action on it?


View raw message