Class AbstractRepository
java.lang.Object
org.eclipse.rdf4j.repository.base.AbstractRepository
- All Implemented Interfaces:
Repository
- Direct Known Subclasses:
HTTPRepository, ProxyRepository, RepositoryConfigRepository, SailRepository, SPARQLRepository
Base class for
Repository implementation, offering common functionality.- Author:
- Jeen Broekstra
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Repository
getConnection, getDataDir, getValueFactory, isWritable, setDataDirModifier and TypeMethodDescriptionOpens a connection to this repository that can be used for querying and updating the contents of the repository.Get the directory where data and logging for this repository is stored.Gets a ValueFactory for this Repository.booleanChecks whether this repository is writable, i.e. if the data contained in this repository can be changed.voidsetDataDir(File dataDir) Set the directory where data and logging for this repository is stored.
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
AbstractRepository
public AbstractRepository()
-
-
Method Details
-
init
Description copied from interface:RepositoryInitializes this repository. A repository needs to be initialized before it can be used, however explicitly calling this method is not necessary: the repository will automatically initialize itself if an operation is executed on it that requires it to be initialized.- Specified by:
initin interfaceRepository- Throws:
RepositoryException- If the initialization failed.
-
initializeInternal
- Throws:
RepositoryException
-
shutDown
Description copied from interface:RepositoryShuts the repository down, releasing any resources that it keeps hold of. Once shut down, the repository can no longer be used until it is re-initialized.- Specified by:
shutDownin interfaceRepository- Throws:
RepositoryException
-
isInitialized
public final boolean isInitialized()Description copied from interface:RepositoryIndicates if the Repository has been initialized. Note that the initialization status may change if the Repository is shut down.- Specified by:
isInitializedin interfaceRepository- Returns:
- true iff the repository has been initialized.
-
shutDownInternal
- Throws:
RepositoryException
-