|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.perseus.fos.lib.FosTxContextFactory
Field Summary |
Fields inherited from interface org.objectweb.perseus.fos.api.FosManager |
SPECVERSION |
Fields inherited from interface org.objectweb.perseus.fos.api.FosLoggerFactory |
CONNECTION, DEBUG, MANAGEDCONNECTION, TXCONTEXT, XARESOURCE |
Constructor Summary | |
FosTxContextFactory()
|
Method Summary | |
FosTransaction |
createTxContext()
Creates a new TxContext for managing transactional I/Os with Data Object Files. |
java.lang.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. |
javax.transaction.xa.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(java.lang.String dbdir)
Changes the FOS root directory. |
void |
setMonologFactory(MonologFactory mf)
|
void |
start()
Starts a FosTxContextFactory. |
void |
stop()
Stops a FosTxContextFactory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FosTxContextFactory()
Method Detail |
public void start() throws FosException
start
in interface FosManager
FosException
public void stop() throws FosException
stop
in interface FosManager
FosException
public void initialize() throws FosException
initialize
in interface FosManager
FosException
public javax.transaction.xa.Xid[] getXidForRecovery()
getXidForRecovery
in interface FosManager
public FosTransaction createTxContext() throws FosException
createTxContext
in interface FosManager
FosException
public void releaseTxContext(FosTransaction txc) throws FosException
releaseTxContext
in interface FosManager
txc
- The FosTxContext to be released.
FosException
public java.lang.String getDbDir()
getDbDir
in interface FosAttributeControler
public void setDbDir(java.lang.String dbdir)
setDbDir
in interface FosAttributeControler
public Logger getLogger(byte entity, boolean factory)
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.
public void setMonologFactory(MonologFactory mf)
setMonologFactory
in interface FosLoggerFactory
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |