public class MemoryStore extends org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSail implements FederatedServiceResolverClient
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DATA_FILE_NAME |
protected static String |
SYNC_FILE_NAME |
connectionTimeOut, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_ITERATION_SYNC_THRESHOLD, initializationLock, logger| Constructor and Description |
|---|
MemoryStore()
Creates a new MemoryStore.
|
MemoryStore(File dataDir)
Creates a new persistent MemoryStore.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelSyncTask() |
protected void |
cancelSyncTimer() |
protected NotifyingSailConnection |
getConnectionInternal() |
EvaluationStrategyFactory |
getEvaluationStrategyFactory() |
FederatedServiceResolver |
getFederatedServiceResolver() |
boolean |
getPersist() |
long |
getSyncDelay()
Gets the currently configured sync delay.
|
ValueFactory |
getValueFactory() |
protected void |
initializeInternal()
Initializes this repository.
|
boolean |
isWritable()
Checks whether this Sail object is writable.
|
void |
notifySailChanged(SailChangedEvent event) |
protected void |
scheduleSyncTask() |
void |
setEvaluationStrategyFactory(EvaluationStrategyFactory factory)
Sets the
EvaluationStrategy to use. |
void |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Overrides the
FederatedServiceResolver used by this instance, but the given resolver is not
shutDown when this instance is. |
void |
setPersist(boolean persist) |
void |
setSyncDelay(long syncDelay)
Sets the time (in milliseconds) to wait after a transaction was commited before writing the changed
data to file.
|
protected void |
shutDownInternal() |
void |
sync()
Synchronizes the contents of this repository with the data that is stored on disk.
|
addSailChangedListener, getConnection, removeSailChangedListeneraddSupportedIsolationLevel, connectionClosed, debugEnabled, getDataDir, getDefaultIsolationLevel, getIterationCacheSyncThreshold, getSupportedIsolationLevels, initialize, isInitialized, removeSupportedIsolationLevel, setConnectionTimeOut, setDataDir, setDefaultIsolationLevel, setIterationCacheSyncThreshold, setSupportedIsolationLevels, setSupportedIsolationLevels, shutDown, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataDir, getDefaultIsolationLevel, getSupportedIsolationLevels, initialize, setDataDir, shutDownprotected static final String DATA_FILE_NAME
protected static final String SYNC_FILE_NAME
public MemoryStore()
public MemoryStore(File dataDir)
dataDir - the data directory to be used for persistence.public void setPersist(boolean persist)
public boolean getPersist()
public void setSyncDelay(long syncDelay)
The default value for this parameter is 0 (immediate synchronization).
syncDelay - The sync delay in milliseconds.public long getSyncDelay()
setSyncDelay(long)public EvaluationStrategyFactory getEvaluationStrategyFactory()
EvaluationStrategy.public void setEvaluationStrategyFactory(EvaluationStrategyFactory factory)
EvaluationStrategy to use.public FederatedServiceResolver getFederatedServiceResolver()
public void setFederatedServiceResolver(FederatedServiceResolver resolver)
FederatedServiceResolver used by this instance, but the given resolver is not
shutDown when this instance is.setFederatedServiceResolver in interface FederatedServiceResolverClientreslover - The SERVICE resolver to set.protected void initializeInternal()
throws SailException
initializeInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailSailException - when initialization of the store failed.protected void shutDownInternal()
throws SailException
shutDownInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailSailExceptionpublic boolean isWritable()
isWritable in interface Sailprotected NotifyingSailConnection getConnectionInternal() throws SailException
getConnectionInternal in class org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSailSailExceptionpublic ValueFactory getValueFactory()
getValueFactory in interface Sailpublic void notifySailChanged(SailChangedEvent event)
notifySailChanged in class org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSailprotected void scheduleSyncTask()
throws SailException
SailExceptionprotected void cancelSyncTask()
protected void cancelSyncTimer()
public void sync()
throws SailException
SailExceptionCopyright © 2015-2018 Eclipse Foundation. All Rights Reserved.