public abstract class SailBase extends Object implements org.openrdf.sail.Sail
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_TIMEOUT |
protected long |
connectionTimeOut
Connection timeout on shutdown (in ms).
|
protected static long |
DEFAULT_CONNECTION_TIMEOUT
Default connection timeout on shutdown: 20,000 milliseconds.
|
protected ReentrantReadWriteLock |
initializationLock
Lock used to synchronize the initialization state of a sail.
|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
SailBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
connectionClosed(org.openrdf.sail.SailConnection connection)
Signals to the store that the supplied connection has been closed; called
by
SailConnectionBase#close() . |
protected static boolean |
debugEnabled() |
org.openrdf.sail.SailConnection |
getConnection() |
protected abstract org.openrdf.sail.SailConnection |
getConnectionInternal()
Returns a store-specific SailConnection object.
|
File |
getDataDir() |
void |
initialize() |
protected void |
initializeInternal()
Do store-specific operations to initialize the store.
|
protected boolean |
isInitialized()
Checks whether the Sail has been initialized.
|
protected void |
manageConnection(org.openrdf.sail.SailConnection cnxn) |
void |
setDataDir(File dataDir) |
void |
shutDown() |
protected abstract void |
shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store.
|
String |
toString() |
public static final String CONNECTION_TIMEOUT
protected static final long DEFAULT_CONNECTION_TIMEOUT
protected final org.slf4j.Logger logger
protected final ReentrantReadWriteLock initializationLock
protected volatile long connectionTimeOut
DEFAULT_CONNECTION_TIMEOUT
.protected static boolean debugEnabled()
protected void manageConnection(org.openrdf.sail.SailConnection cnxn)
public void setDataDir(File dataDir)
setDataDir
in interface org.openrdf.sail.Sail
public File getDataDir()
getDataDir
in interface org.openrdf.sail.Sail
protected boolean isInitialized()
initialization
until shutdown
.public void initialize() throws org.openrdf.sail.SailException
initialize
in interface org.openrdf.sail.Sail
org.openrdf.sail.SailException
protected void initializeInternal() throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
public void shutDown() throws org.openrdf.sail.SailException
shutDown
in interface org.openrdf.sail.Sail
org.openrdf.sail.SailException
protected abstract void shutDownInternal() throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
public org.openrdf.sail.SailConnection getConnection() throws org.openrdf.sail.SailException
getConnection
in interface org.openrdf.sail.Sail
org.openrdf.sail.SailException
protected abstract org.openrdf.sail.SailConnection getConnectionInternal() throws org.openrdf.sail.SailException
org.openrdf.sail.SailException
protected void connectionClosed(org.openrdf.sail.SailConnection connection)
SailConnectionBase#close()
.connection
- The connection that has been closed.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.