org.objectweb.proactive.core.body.ft.message
Class ReceptionHistory

java.lang.Object
  extended byorg.objectweb.proactive.core.body.ft.message.ReceptionHistory
All Implemented Interfaces:
java.io.Serializable

public class ReceptionHistory
extends java.lang.Object
implements java.io.Serializable

This class represent an ordered list of reception events.

Since:
3.0
Author:
cdelbe
See Also:
Serialized Form

Constructor Summary
ReceptionHistory()
          Create a new reception history
 
Method Summary
 void compactHistory()
          Called to delete unusefull elements in this history.
 void confirmLastUpdate()
          Called when an update is confirmed.
 long getLastCommited()
           
 long getLastRecoverable()
           
 java.util.List getRecoverableHistory()
          Called only on recovery of the system.
 void goToNextBase(long nextBase)
          This method is called when elements between base and nextBase are no more usefull : there a included in the state represented by the last recovery line.
 void updateHistory(HistoryUpdater hu)
          Update this history up to last;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReceptionHistory

public ReceptionHistory()
Create a new reception history

Method Detail

updateHistory

public void updateHistory(HistoryUpdater hu)
Update this history up to last;

Parameters:
hu - the history updater that must be used.

goToNextBase

public void goToNextBase(long nextBase)
This method is called when elements between base and nextBase are no more usefull : there a included in the state represented by the last recovery line. Then the base of the history (i.e. the first usefull element) is nextBase.

Parameters:
nextBase - the new base of history.

confirmLastUpdate

public void confirmLastUpdate()
Called when an update is confirmed. In this case, the commited history becomes the recoverable history, i.e an history that can be used for recovery.


getLastCommited

public long getLastCommited()

getLastRecoverable

public long getLastRecoverable()

getRecoverableHistory

public java.util.List getRecoverableHistory()
Called only on recovery of the system. If recoverable history is different from stored history, stored history is replaced by recoverable history.

Returns:
the recoverable history;

compactHistory

public void compactHistory()
Called to delete unusefull elements in this history.



Copyright 2001-2005 INRIA All Rights Reserved.