|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.SailBase
public abstract class SailBase
SailBase is an abstract Sail implementation that takes care of common sail tasks, including proper closing of active connections and a grace period for active connections during shutdown of the store.
| Field Summary | |
|---|---|
protected long |
connectionTimeOut
Connection timeout on shutdown (in ms). |
protected static long |
DEFAULT_CONNECTION_TIMEOUT
Default connection timeout on shutdown: 20,000 milliseconds. |
protected Logger |
logger
|
| Constructor Summary | |
|---|---|
SailBase()
|
|
| Method Summary | |
|---|---|
protected void |
connectionClosed(SailConnection connection)
Signals to the store that the supplied connection has been closed. |
protected static boolean |
debugEnabled()
|
SailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data. |
protected abstract SailConnection |
getConnectionInternal()
returns a store-specific SailConnection object. |
File |
getDataDir()
|
void |
setDataDir(File dataDir)
|
void |
shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale data. |
protected abstract void |
shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.openrdf.sail.Sail |
|---|
getValueFactory, initialize, isWritable |
| Field Detail |
|---|
protected final Logger logger
protected static final long DEFAULT_CONNECTION_TIMEOUT
protected long connectionTimeOut
DEFAULT_CONNECTION_TIMEOUT.
| Constructor Detail |
|---|
public SailBase()
| Method Detail |
|---|
protected static boolean debugEnabled()
public void setDataDir(File dataDir)
setDataDir in interface Sailpublic File getDataDir()
getDataDir in interface Sail
public SailConnection getConnection()
throws SailException
Sail
getConnection in interface SailSailException - If no transaction could be started, for example because the Sail
is not writable.
protected abstract SailConnection getConnectionInternal()
throws SailException
SailException
public void shutDown()
throws SailException
Sail
shutDown in interface SailSailException - If the Sail object encountered an error or unexpected situation
internally.
protected abstract void shutDownInternal()
throws SailException
SailExceptionprotected void connectionClosed(SailConnection connection)
connection -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||