org.objectweb.perseus.fos.lib

Class FosObjectFile


public class FosObjectFile
extends java.lang.Object

Defines the way to control atomic I/O of a Data Object represented by a File. The atomicity mechanism is based on shadowing. Each Data Object is written into a File named "id.ai" where "ai" stands for "after image". Then, committing a Data Object merely consists in moving this image into the regular Data Object File named "id". Deleting an Object File consists in creating a File name "id.dl" where "dl" stands for deleted. Then commtting the deletion consists in removing both "id" and "id.dl" files in that order.

Author:
S. Chassande-Barrioz, P. D?chamboux


Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.