org.apache.webbeans.spi
Interface FailOverService


public interface FailOverService


Method Summary
 void enableFailOverSupport(boolean flag)
           
 void enablePassivationSupport(boolean flag)
           
 String getFailOverAttributeName()
          The session attribute name used to store the bean instances bag
 String getJVMId()
          Used for tracking the origin of serialized bean instances.
 boolean isSupportFailOver()
           
 boolean isSupportPassivation()
           
 void restoreBeans(HttpSession session)
          Invoked when we try to restore cdi bean instances.
 void sessionIsIdle(HttpSession session)
          Inform the service that a session is idle.
 void sessionIsInUse(HttpSession session)
          Inform the service that a session will be active.
 void sessionWillPassivate(HttpSession session)
          Container is going to actively passivate a session.
 

Method Detail

getJVMId

String getJVMId()
Used for tracking the origin of serialized bean instances.

Returns:

getFailOverAttributeName

String getFailOverAttributeName()
The session attribute name used to store the bean instances bag

Returns:

isSupportFailOver

boolean isSupportFailOver()

isSupportPassivation

boolean isSupportPassivation()

enableFailOverSupport

void enableFailOverSupport(boolean flag)

enablePassivationSupport

void enablePassivationSupport(boolean flag)

sessionIsIdle

void sessionIsIdle(HttpSession session)
Inform the service that a session is idle. Invoked when we finish a request.

Parameters:
session -

sessionIsInUse

void sessionIsInUse(HttpSession session)
Inform the service that a session will be active. Invoked when a request is received.

Parameters:
session -

restoreBeans

void restoreBeans(HttpSession session)
Invoked when we try to restore cdi bean instances. Invoked when a request is finished.

Parameters:
session -

sessionWillPassivate

void sessionWillPassivate(HttpSession session)
Container is going to actively passivate a session.

Parameters:
session -


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.