|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.sail.helpers.SailBase
org.openrdf.sail.helpers.NotifyingSailBase
public abstract class NotifyingSailBase
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 |
|---|
| Fields inherited from class org.openrdf.sail.helpers.SailBase |
|---|
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, logger |
| Constructor Summary | |
|---|---|
NotifyingSailBase()
|
|
| Method Summary | |
|---|---|
void |
addSailChangedListener(SailChangedListener listener)
Adds the specified SailChangedListener to receive events when the data in this Sail object changes. |
NotifyingSailConnection |
getConnection()
Opens a connection on the Sail which can be used to query and update data. |
protected abstract NotifyingSailConnection |
getConnectionInternal()
returns a store-specific SailConnection object. |
void |
notifySailChanged(SailChangedEvent event)
Notifies all registered SailChangedListener's of changes to the contents of this Sail. |
void |
removeSailChangedListener(SailChangedListener listener)
Removes the specified SailChangedListener so that it no longer receives events from this Sail object. |
| Methods inherited from class org.openrdf.sail.helpers.SailBase |
|---|
connectionClosed, debugEnabled, getDataDir, setDataDir, shutDown, shutDownInternal, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openrdf.sail.Sail |
|---|
getDataDir, getValueFactory, initialize, isWritable, setDataDir, shutDown |
| Constructor Detail |
|---|
public NotifyingSailBase()
| Method Detail |
|---|
public NotifyingSailConnection getConnection()
throws SailException
Sail
getConnection in interface NotifyingSailgetConnection in interface SailgetConnection in class SailBaseSailException - If no transaction could be started, for example because the Sail
is not writable.
protected abstract NotifyingSailConnection getConnectionInternal()
throws SailException
SailBase
getConnectionInternal in class SailBaseSailExceptionpublic void addSailChangedListener(SailChangedListener listener)
NotifyingSail
addSailChangedListener in interface NotifyingSailpublic void removeSailChangedListener(SailChangedListener listener)
NotifyingSail
removeSailChangedListener in interface NotifyingSailpublic void notifySailChanged(SailChangedEvent event)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||