fulmine.context
Interface IFTContextStateListener

All Superinterfaces:
IDestroyable, ILifeCycle

public interface IFTContextStateListener
extends ILifeCycle

Receives notifications when a fault tolerant context changes state; transitioning into the active or stand-by state. Implementations should perform the necessary resource allocation/de-allocation for the FT context instance transitioning into either of these states.

A state listener should not make any assumptions that once in the active state, the context will not go into stand-by; the context may switch between these states.

Author:
Ramon Servadei
See Also:
FTContext

Method Summary
 void didActivate()
          Called after the fault tolerant context becomes the active context in the fault tolerant cluster.
 void didStandby()
          Called after the fault tolerant context goes into stand-by mode.
 void willActivate()
          Called before the fault tolerant context becomes the active context in the fault tolerant cluster.
 void willStandby()
          Called before the fault tolerant context goes into stand-by mode.
 
Methods inherited from interface fulmine.ILifeCycle
isActive, start
 
Methods inherited from interface fulmine.IDestroyable
destroy
 

Method Detail

willActivate

void willActivate()
Called before the fault tolerant context becomes the active context in the fault tolerant cluster.


didActivate

void didActivate()
Called after the fault tolerant context becomes the active context in the fault tolerant cluster.


willStandby

void willStandby()
Called before the fault tolerant context goes into stand-by mode.


didStandby

void didStandby()
Called after the fault tolerant context goes into stand-by mode.



Copyright © 2007-2009. All Rights Reserved.