|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.tdb.StoreConnection
public class StoreConnection
A StoreConnection is the reference to the underlying storage. There is JVM-wide cache of backing datasets. The work of transaction coordination is done in TransactionManager.
| Method Summary | |
|---|---|
boolean |
activeTransactions()
Indicate whether there are any active transactions. |
com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn |
begin(ReadWrite mode)
Begin a transaction. |
com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn |
begin(ReadWrite mode,
String label)
Begin a transaction, giving it a label. |
static StoreConnection |
createMemUncached()
Return a StoreConnection backed by in-memory datastructures (for testing). |
static void |
expel(com.hp.hpl.jena.tdb.base.file.Location location,
boolean force)
Stop managing a location. |
void |
flush()
Flush the delayed write queue to the base storage. |
void |
forceRecoverFromJournal()
Flush the journal regardless - use with great case - do not use when transactions may be active. |
com.hp.hpl.jena.tdb.store.DatasetGraphTDB |
getBaseDataset()
Testing operation - do not use the base dataset without knowing how the transaction system uses it. |
static StoreConnection |
getExisting(com.hp.hpl.jena.tdb.base.file.Location location)
Return the StoreConnection if one already exists for this location, else return null |
com.hp.hpl.jena.tdb.base.file.Location |
getLocation()
|
com.hp.hpl.jena.tdb.transaction.SysTxnState |
getTransMgrState()
Return a description of the transaction manager state |
boolean |
haveUsedInTransaction()
|
static StoreConnection |
make(com.hp.hpl.jena.tdb.base.file.Location location)
Return a StoreConnection for a particular connection. |
static StoreConnection |
make(String location)
Obtain a StoreConenction for a particular location |
void |
printJournal()
Highly risky! |
static void |
release(com.hp.hpl.jena.tdb.base.file.Location location)
Stop managing a location. |
static void |
reset()
Stop managing all locations. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean haveUsedInTransaction()
public com.hp.hpl.jena.tdb.base.file.Location getLocation()
public com.hp.hpl.jena.tdb.transaction.SysTxnState getTransMgrState()
public com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode)
Transaction.commit() or Transaction.abort(). Terminate a
write transaction with Transaction.close().
public com.hp.hpl.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode,
String label)
Transaction.commit() or Transaction.abort().
Terminate a write transaction with Transaction.close().
public com.hp.hpl.jena.tdb.store.DatasetGraphTDB getBaseDataset()
flush()public void flush()
public boolean activeTransactions()
getTransMgrState()public void forceRecoverFromJournal()
public void printJournal()
public static StoreConnection make(String location)
public static void reset()
public static void release(com.hp.hpl.jena.tdb.base.file.Location location)
public static void expel(com.hp.hpl.jena.tdb.base.file.Location location,
boolean force)
public static StoreConnection make(com.hp.hpl.jena.tdb.base.file.Location location)
public static StoreConnection getExisting(com.hp.hpl.jena.tdb.base.file.Location location)
public static StoreConnection createMemUncached()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||