public class StoreConnection extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
activeTransactions()
Indicate whether there are any active transactions.
|
org.apache.jena.tdb.transaction.DatasetGraphTxn |
begin(ReadWrite mode)
Begin a transaction.
|
org.apache.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(org.apache.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.
|
org.apache.jena.tdb.store.DatasetGraphTDB |
getBaseDataset()
Testing operation - do not use the base dataset without knowing how the
transaction system uses it.
|
static StoreConnection |
getExisting(org.apache.jena.tdb.base.file.Location location)
Return the StoreConnection if one already exists for this location, else
return null
|
org.apache.jena.tdb.base.file.Location |
getLocation() |
org.apache.jena.tdb.transaction.SysTxnState |
getTransMgrState()
Return a description of the transaction manager state
|
boolean |
haveUsedInTransaction() |
static StoreConnection |
make(org.apache.jena.tdb.base.file.Location location)
Make a StoreConnection based on any StoreParams at the location or the system defaults.
|
static StoreConnection |
make(org.apache.jena.tdb.base.file.Location location,
org.apache.jena.tdb.setup.StoreParams params)
Return a StoreConnection for a particular connection.
|
static StoreConnection |
make(String location)
Obtain a StoreConnection for a particular location
|
void |
printJournal()
Highly risky!
|
static void |
release(org.apache.jena.tdb.base.file.Location location)
Stop managing a location.
|
static void |
reset()
Stop managing all locations.
|
public boolean haveUsedInTransaction()
public org.apache.jena.tdb.base.file.Location getLocation()
public org.apache.jena.tdb.transaction.SysTxnState getTransMgrState()
public org.apache.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode)
Transaction.commit()
or Transaction.abort()
. Terminate a
write transaction with Transaction.close()
.public org.apache.jena.tdb.transaction.DatasetGraphTxn begin(ReadWrite mode, String label)
Transaction.commit()
or Transaction.abort()
.
Terminate a write transaction with Transaction.close()
.public org.apache.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(org.apache.jena.tdb.base.file.Location location)
public static void expel(org.apache.jena.tdb.base.file.Location location, boolean force)
public static StoreConnection make(org.apache.jena.tdb.base.file.Location location, org.apache.jena.tdb.setup.StoreParams params)
public static StoreConnection make(org.apache.jena.tdb.base.file.Location location)
public static StoreConnection getExisting(org.apache.jena.tdb.base.file.Location location)
public static StoreConnection createMemUncached()
Licenced under the Apache License, Version 2.0