The initial API for validating and changing states will support the
following methods:
/**
* Checks if the state transition is valid
*
* @param nextState Next state that for the topology element
* @return true if transitioning for nextState from current state is
valid, else false
*/
public boolean isStateTransitionValid (State nextState) ;
/**
* Changes the current state to nextState
*
* @param nextState next state for the element
*/
public void changeState (State nextState) ;
/**
* Get all the states this element has gone through
*
* @return stack of states
*/
public Stack<State> getStateStack () ;
/**
* Get the current state
*
* @return the current state
*/
public State getCurrentState ();
On Sat, Oct 18, 2014 at 12:29 PM, Imesh Gunaratne <[email protected]> wrote:
>
> On Sat, Oct 18, 2014 at 10:43 AM, Udara Liyanage <[email protected]> wrote:
>
>> Hi Imesh,
>>
>> 'Pre Terminate" and "Ready to terminate" seems confusing for a user,
>> isn't it so?
>>
>> True, may be we can try to find a better term for this. I was thinking to
> call it "Terminating" but again it's not correct.
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
> * <http://wso2.com/>*
>
>
>