org.objectweb.dream.protocol.utobcast
Class BackupElectionImpl

java.lang.Object
  extended byorg.objectweb.dream.AbstractComponent
      extended byorg.objectweb.dream.protocol.utobcast.BackupElectionImpl
All Implemented Interfaces:
BackupElection, BindingController, LifeCycleController, Loggable

public class BackupElectionImpl
extends AbstractComponent
implements BackupElection

Implementation of the BackupElection component. This component is in charge of electing a new backup and propagating the information to all the processes.


Field Summary
protected  MessageManager messageManagerItf
          The interface to manage message lifecycle.
protected  Push outPushItf
          The interface to send BAK, REP, and UPD messages.
static String PENDING_MESSAGES_OUT_ITF_NAME
          The commonly used name to refer to the pendingMessageOutItf interface.
protected  Pull pendingMessagesOutItf
          The interface to retrieve messages in the PendingMessage queue.
protected  ProcessMembership processMembershipItf
          The interface to retrieve process membership information.
protected  SequenceNumber sequenceNumberItf
          The interface to get/set the sequence number.
 
Fields inherited from class org.objectweb.dream.AbstractComponent
bindingLogger, componentDesc, fcState, firstStart, lifeCycleLogger, logger, weaveableC
 
Fields inherited from interface org.objectweb.dream.protocol.utobcast.BackupElection
ITF_NAME
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
BackupElectionImpl()
          Constructor.
 
Method Summary
 void bindFc(String clientItfName, Object serverItf)
           
 void elect()
          Elects a new backup and propagate information to all the processes.
 String[] listFc()
           
 
Methods inherited from class org.objectweb.dream.AbstractComponent
beforeFirstStart, getFcState, initComponent, lookupFc, setLogger, startFc, stopFc, unbindFc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PENDING_MESSAGES_OUT_ITF_NAME

public static final String PENDING_MESSAGES_OUT_ITF_NAME
The commonly used name to refer to the pendingMessageOutItf interface.

See Also:
Constant Field Values

pendingMessagesOutItf

protected Pull pendingMessagesOutItf
The interface to retrieve messages in the PendingMessage queue.


outPushItf

protected Push outPushItf
The interface to send BAK, REP, and UPD messages.


processMembershipItf

protected ProcessMembership processMembershipItf
The interface to retrieve process membership information.


sequenceNumberItf

protected SequenceNumber sequenceNumberItf
The interface to get/set the sequence number.


messageManagerItf

protected MessageManager messageManagerItf
The interface to manage message lifecycle.

Constructor Detail

BackupElectionImpl

public BackupElectionImpl()
Constructor.

Method Detail

elect

public void elect()
Description copied from interface: BackupElection
Elects a new backup and propagate information to all the processes.

Specified by:
elect in interface BackupElection
See Also:
BackupElection.elect()

bindFc

public void bindFc(String clientItfName,
                   Object serverItf)
            throws NoSuchInterfaceException,
                   IllegalBindingException,
                   IllegalLifeCycleException
Specified by:
bindFc in interface BindingController
Throws:
NoSuchInterfaceException
IllegalBindingException
IllegalLifeCycleException
See Also:
BindingController.bindFc(java.lang.String, java.lang.Object)

listFc

public String[] listFc()
Specified by:
listFc in interface BindingController
See Also:
BindingController.listFc()


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.