public class Federation extends Object implements Sail, Executor, FederatedServiceResolverClient, RepositoryResolverClient, HttpClientDependent, SessionManagerDependent
| Constructor and Description |
|---|
Federation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSesameClient, setSesameClientpublic File getDataDir()
getDataDir in interface Sailpublic void setDataDir(File dataDir)
setDataDir in interface Sailpublic ValueFactory getValueFactory()
getValueFactory in interface Sailpublic boolean isWritable()
throws SailException
isWritable in interface SailSailExceptionpublic void addMember(Repository member)
protected List<Repository> getMembers()
public void setBloomFilter(Repository member, RepositoryBloomFilter filter)
RepositoryBloomFilter to use with the given Repository.filter - the filter to use or null to not use a filter.protected Map<Repository,RepositoryBloomFilter> getBloomFilters()
RepositoryBloomFilters (if any).public PrefixHashSet getLocalPropertySpace()
public void setLocalPropertySpace(Collection<String> localPropertySpace)
public boolean isDistinct()
public void setDistinct(boolean distinct)
public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
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.public void setRepositoryResolver(RepositoryResolver resolver)
setRepositoryResolver in interface RepositoryResolverClientpublic HttpClientSessionManager getHttpClientSessionManager()
SessionManagerDependentHttpClientSessionManager that has been assigned or has been used by this object. The life cycle
might not be or might be tied to this object, depending on whether HttpClientSessionManager was
passed to or created by this object respectively.getHttpClientSessionManager in interface SesameClientDependentgetHttpClientSessionManager in interface SessionManagerDependentHttpClientSessionManager instance or nullpublic void setHttpClientSessionManager(HttpClientSessionManager client)
SessionManagerDependentHttpClientSessionManager that this object should use. The life cycle of the given
HttpClientSessionManager is independent of this object. Closing or shutting down this object
does not have any impact on the given client. Callers must ensure that the given client is properly
closed elsewhere.setHttpClientSessionManager in interface SesameClientDependentsetHttpClientSessionManager in interface SessionManagerDependentpublic org.apache.http.client.HttpClient getHttpClient()
HttpClientDependentHttpClient that has been assigned or has been used by this object. The life cycle might not be
or might be tied to this object, depending on whether HttpClient was passed to or created by
this object respectively.getHttpClient in interface HttpClientDependentHttpClient instance or nullpublic void setHttpClient(org.apache.http.client.HttpClient client)
HttpClientDependentHttpClient that this object should use. The life cycle of the given
HttpClient is independent of this object. Closing or shutting down this object does not have
any impact on the given client. Callers must ensure that the given client is properly closed elsewhere.setHttpClient in interface HttpClientDependentpublic void initialize()
throws SailException
initialize in interface SailSailExceptionpublic void shutDown()
throws SailException
shutDown in interface SailSailExceptionpublic SailConnection getConnection() throws SailException
getConnection in interface SailSailExceptionprotected EvaluationStrategy createEvaluationStrategy(TripleSource tripleSource, Dataset dataset, FederatedServiceResolver resolver)
public List<IsolationLevel> getSupportedIsolationLevels()
getSupportedIsolationLevels in interface Sailpublic IsolationLevel getDefaultIsolationLevel()
getDefaultIsolationLevel in interface SailCopyright © 2015-2018 Eclipse Foundation. All Rights Reserved.