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 |
| 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 org.eclipse.rdf4j.sail.NotifyingSailConnection |
getConnectionInternal() |
EvaluationStrategyFactory |
getEvaluationStrategyFactory() |
FederatedServiceResolver |
getFederatedServiceResolver() |
boolean |
getPersist() |
long |
getSyncDelay()
Gets the currently configured sync delay.
|
org.eclipse.rdf4j.model.ValueFactory |
getValueFactory() |
protected void |
initializeInternal()
Initializes this repository.
|
boolean |
isWritable()
Checks whether this Sail object is writable.
|
void |
notifySailChanged(org.eclipse.rdf4j.sail.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, toStringprotected 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 org.eclipse.rdf4j.sail.SailException
initializeInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailorg.eclipse.rdf4j.sail.SailException - when initialization of the store failed.protected void shutDownInternal()
throws org.eclipse.rdf4j.sail.SailException
shutDownInternal in class org.eclipse.rdf4j.sail.helpers.AbstractSailorg.eclipse.rdf4j.sail.SailExceptionpublic boolean isWritable()
isWritable in interface org.eclipse.rdf4j.sail.Sailprotected org.eclipse.rdf4j.sail.NotifyingSailConnection getConnectionInternal()
throws org.eclipse.rdf4j.sail.SailException
getConnectionInternal in class org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSailorg.eclipse.rdf4j.sail.SailExceptionpublic org.eclipse.rdf4j.model.ValueFactory getValueFactory()
getValueFactory in interface org.eclipse.rdf4j.sail.Sailpublic void notifySailChanged(org.eclipse.rdf4j.sail.SailChangedEvent event)
notifySailChanged in class org.eclipse.rdf4j.sail.helpers.AbstractNotifyingSailprotected void scheduleSyncTask()
throws org.eclipse.rdf4j.sail.SailException
org.eclipse.rdf4j.sail.SailExceptionprotected void cancelSyncTask()
protected void cancelSyncTimer()
public void sync()
throws org.eclipse.rdf4j.sail.SailException
org.eclipse.rdf4j.sail.SailExceptionCopyright © 2015-2018 Eclipse Foundation. All Rights Reserved.