org.objectweb.perseus.fos.lib
Class FosTxContextFactory
java.lang.Object
org.objectweb.perseus.fos.lib.FosTxContextFactory
- FosAttributeControler, FosLoggerFactory, FosManager
public class FosTxContextFactory
extends java.lang.Object
- S. Chassande-Barrioz, P. D???chamboux
FosTransaction | createTxContext() - Creates a new TxContext for managing transactional I/Os with Data Object
Files.
|
String | getDbDir() - Gives access to the FOS root directory (named dbDir).
|
Logger | getLogger(byte entity, boolean factory) - Gives access to the logger associated to a given kind of entities managed
by this FOS adapter, which are further classified into factories or
non-factories.
|
Xid[] | getXidForRecovery() - Gets all the Xid of distributed transaction that need to be recovered
by a DTP monitor.
|
void | initialize() - Initializes the root directory for storing files representing data
objects.
|
void | releaseTxContext(FosTransaction txc) - Releases a FosTxContext.
|
void | setDbDir(String dbdir) - Changes the FOS root directory.
|
void | setMonologFactory(MonologFactory mf)
|
void | start() - Starts a FosTxContextFactory.
|
void | stop() - Stops a FosTxContextFactory.
|
getLogger
public Logger getLogger(byte entity,
boolean factory)
Gives access to the logger associated to a given kind of entities managed
by this FOS adapter, which are further classified into factories or
non-factories.
- getLogger in interface FosLoggerFactory
entity
- The kind of entity (see CONNECTION, MANAGEDCONNECTION,
XARESOURCE and TXCONTEXT constants defined above).factory
- Specifies if the concerned entity is a factory.
- The relevant logger.
getXidForRecovery
public Xid[] getXidForRecovery()
Gets all the Xid of distributed transaction that need to be recovered
by a DTP monitor.
- getXidForRecovery in interface FosManager
- The array of Xid of transactions that need to be recovered.
initialize
public void initialize()
throws FosException
Initializes the root directory for storing files representing data
objects. It removes all existing data files and creates all data for
managing transactions.
- initialize in interface FosManager
start
public void start()
throws FosException
Starts a FosTxContextFactory. It either initializes the FOS repository
if it is the first start. In other cases, it verifies the consistency
of the repository and it manages a cold recovery if the FOS had not
cleanly stop.
- start in interface FosManager
Copyright © 2000-2002 France Telecom S.A., INRIA, IMAG-LSR All Rights Reserved.