Search in sources :

Example 1 with TransactionalBase

use of org.apache.jena.dboe.transaction.txn.TransactionalBase in project jena by apache.

the class TestTransactionCoordinatorControl method init.

@Before
public void init() {
    txnMgr = new TransactionCoordinator(Location.mem());
    unit = new TransactionalBase(txnMgr);
    txnMgr.start();
}
Also used : TransactionalBase(org.apache.jena.dboe.transaction.txn.TransactionalBase) TransactionCoordinator(org.apache.jena.dboe.transaction.txn.TransactionCoordinator) Before(org.junit.Before)

Example 2 with TransactionalBase

use of org.apache.jena.dboe.transaction.txn.TransactionalBase in project jena by apache.

the class TransactionalFactory method createTransactional.

private static Transactional createTransactional(TransactionCoordinator coord, TransactionalComponent... elements) {
    for (TransactionalComponent tc : elements) {
        coord.add(tc);
    }
    TransactionalBase base = new TransactionalBase(coord);
    coord.start();
    return base;
}
Also used : TransactionalBase(org.apache.jena.dboe.transaction.txn.TransactionalBase) TransactionalComponent(org.apache.jena.dboe.transaction.txn.TransactionalComponent)

Aggregations

TransactionalBase (org.apache.jena.dboe.transaction.txn.TransactionalBase)2 TransactionCoordinator (org.apache.jena.dboe.transaction.txn.TransactionCoordinator)1 TransactionalComponent (org.apache.jena.dboe.transaction.txn.TransactionalComponent)1 Before (org.junit.Before)1