Class NotifyingLocalRepositoryManager
java.lang.Object
org.eclipse.rdf4j.repository.manager.RepositoryManager
org.eclipse.rdf4j.repository.manager.LocalRepositoryManager
org.eclipse.rdf4j.repository.manager.util.NotifyingLocalRepositoryManager
- All Implemented Interfaces:
HttpClientDependent, RepositoryResolver
NotifyingLocalRepositoryManager extends LocalRepositoryManager with support for registering listeners. In time this
class is likely to become redundant as RepositoryManager may be extended with listener support. This functionality
can currently not be implemented as a wrapper around any existing RepositoryManager due to the fact that
RepositoryManager defines abstract protected methods. A wrapper class cannot implement these methods in a meaningful
way by itself and, because of the protected access, cannot invoke it on the wrapped RepositoryManager either.
-
Field Summary
Fields inherited from class LocalRepositoryManager
REPOSITORIES_DIRFields inherited from class RepositoryManager
initializedRepositories, logger, NAMESPACE, PROXIED_IDModifier and TypeFieldDescriptionprotected Map<String, Repository> protected final org.slf4j.Loggerstatic final StringDeprecated.static final IRIDeprecated, for removal: This API element is subject to removal in a future version.useCONFIG.Proxy.proxiedIDinstead. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class LocalRepositoryManager
addRepositoryConfig, createRepository, getAllRepositoryInfos, getBaseDir, getFederatedServiceResolver, getHttpClient, getLocation, getRepositoryConfig, getRepositoryDir, getRepositoryInfo, getSesameClient, migrateToNewConfigVocabulary, removeRepository, resolvePath, setHttpClientModifier and TypeMethodDescriptionvoidaddRepositoryConfig(RepositoryConfig config) Adds or updates the configuration of a repository to the manager.protected RepositoryCreates and initializes the repository with the specified ID.Retrieve meta information of all configured repositories.Gets the base dir against which to resolve relative paths.protected FederatedServiceResolverorg.apache.http.client.HttpClientHttpClientthat has been assigned or has been used by this object.Gets the base dir against which to resolve relative paths.getRepositoryDir(String repositoryID) Gets the repository that is known by the specified ID from this manager.protected SharedHttpClientSessionManagerprotected voidMigrate a repository configuration from the legacy vocabulary to the new vocabulary inCONFIG.booleanremoveRepository(String repositoryID) Removes the specified repository by deleting its configuration if such a configuration is present, and removing any persistent data associated with the repository.resolvePath(String path) Resolves the specified path against the manager's base directory.voidsetHttpClient(org.apache.http.client.HttpClient httpClient) Should be called beforeRepositoryManager.init().Methods inherited from class RepositoryManager
getAllRepositories, getAllRepositoryInfos, getAllUserRepositoryInfos, getInitializedRepositories, getInitializedRepositoryIDs, getModelFactory, getNewRepositoryID, getRepository, getRepositoryIDs, hasRepositoryConfig, isInitialized, isSafeToRemove, setInitializedRepositories, setModelFactory, updateInitializedRepositoriesModifier and TypeMethodDescriptionReturns all configured repositories.getAllRepositoryInfos(boolean skipSystemRepo) Deprecated.UseRepositoryManager.getAllRepositoryInfos()instead.Deprecated.UseRepositoryManager.getAllRepositoryInfos()instead.Returns all initialized repositories.Returns all initialized repositories.Get theModelFactoryused for creating newModelobjects in the manager.getNewRepositoryID(String baseName) Generates an ID for a new repository based on the specified base name.getRepository(String identity) Gets the repository that is known by the specified ID from this manager.Get the IDs of all available repositories.booleanhasRepositoryConfig(String repositoryID) booleanIndicates if this RepositoryManager has been initialized.booleanisSafeToRemove(String repositoryID) Checks on whether the given repository is referred to by aProxyRepositoryconfiguration.protected voidsetInitializedRepositories(Map<String, Repository> nextInitializedRepositories) voidsetModelFactory(ModelFactory modelFactory) Set theModelFactoryto use for creating newModelobjects in the manager.protected void
-
Constructor Details
-
NotifyingLocalRepositoryManager
-
-
Method Details
-
addRepositoryManagerListener
-
removeRepositoryManagerListener
-
init
Description copied from class:RepositoryManagerInitializes the repository manager.- Overrides:
initin classRepositoryManager- Throws:
RepositoryException- If the manager failed to initialize.
-
refresh
public void refresh()Description copied from class:RepositoryManagerShuts down all initialized user repositories.- Overrides:
refreshin classRepositoryManager- See Also:
-
shutDown
public void shutDown()Description copied from class:RepositoryManagerShuts down all initialized repositories.- Overrides:
shutDownin classLocalRepositoryManager- See Also:
-
CONFIG.Proxyinstead.