public class ProxyRepository
extends org.eclipse.rdf4j.repository.base.AbstractRepository
implements org.eclipse.rdf4j.repository.RepositoryResolverClient
Repository implementation that takes a
RepositoryResolver instance and the id of a managed
repository, and delegate all calls through to the given repository.
The purpose is to allow Sails to refer to other local repositories using a
unique identifier without having to go through an HTTP layer.
The implementation is independent of DelegatingRepository so that it
is freed from having to provide implementation details in its configuration data. Instead, it only has to
provide an unambiguous local identifier to the proxy.
| Constructor and Description |
|---|
ProxyRepository() |
ProxyRepository(org.eclipse.rdf4j.repository.RepositoryResolver resolver,
String proxiedIdentity)
Creates a repository instance that proxies to the given repository.
|
ProxyRepository(String proxiedIdentity)
Creates a repository instance that proxies to a repository of the give ID.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.rdf4j.repository.RepositoryConnection |
getConnection() |
File |
getDataDir() |
String |
getProxiedIdentity() |
org.eclipse.rdf4j.model.ValueFactory |
getValueFactory() |
protected void |
initializeInternal() |
boolean |
isWritable() |
void |
setDataDir(File dataDir) |
void |
setProxiedIdentity(String value) |
void |
setRepositoryResolver(org.eclipse.rdf4j.repository.RepositoryResolver resolver) |
protected void |
shutDownInternal() |
public ProxyRepository()
public ProxyRepository(String proxiedIdentity)
proxiedIdentity - id of the proxied repositorypublic ProxyRepository(org.eclipse.rdf4j.repository.RepositoryResolver resolver,
String proxiedIdentity)
resolver - manager that the proxied repository is associated withproxiedIdentity - id of the proxied repositorypublic final void setProxiedIdentity(String value)
public String getProxiedIdentity()
public final void setRepositoryResolver(org.eclipse.rdf4j.repository.RepositoryResolver resolver)
setRepositoryResolver in interface org.eclipse.rdf4j.repository.RepositoryResolverClientpublic void setDataDir(File dataDir)
setDataDir in interface org.eclipse.rdf4j.repository.Repositorypublic File getDataDir()
getDataDir in interface org.eclipse.rdf4j.repository.Repositorypublic boolean isWritable()
throws org.eclipse.rdf4j.repository.RepositoryException
isWritable in interface org.eclipse.rdf4j.repository.Repositoryorg.eclipse.rdf4j.repository.RepositoryExceptionpublic org.eclipse.rdf4j.repository.RepositoryConnection getConnection()
throws org.eclipse.rdf4j.repository.RepositoryException
getConnection in interface org.eclipse.rdf4j.repository.Repositoryorg.eclipse.rdf4j.repository.RepositoryExceptionpublic org.eclipse.rdf4j.model.ValueFactory getValueFactory()
getValueFactory in interface org.eclipse.rdf4j.repository.Repositoryprotected void initializeInternal()
throws org.eclipse.rdf4j.repository.RepositoryException
initializeInternal in class org.eclipse.rdf4j.repository.base.AbstractRepositoryorg.eclipse.rdf4j.repository.RepositoryExceptionprotected void shutDownInternal()
throws org.eclipse.rdf4j.repository.RepositoryException
shutDownInternal in class org.eclipse.rdf4j.repository.base.AbstractRepositoryorg.eclipse.rdf4j.repository.RepositoryExceptionCopyright © 2015-2019 Eclipse Foundation. All Rights Reserved.