@Deprecated public class Federation extends Object implements Sail, Executor, FederatedServiceResolverClient, RepositoryResolverClient, HttpClientDependent, SessionManagerDependent
| Constructor and Description |
|---|
Federation()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMember(Repository member)
Deprecated.
|
protected EvaluationStrategy |
createEvaluationStrategy(TripleSource tripleSource,
Dataset dataset,
FederatedServiceResolver resolver)
Deprecated.
|
void |
execute(Runnable command)
Deprecated.
Required by
Executor interface. |
protected Map<Repository,RepositoryBloomFilter> |
getBloomFilters()
Deprecated.
Returns the configured
RepositoryBloomFilters (if any). |
SailConnection |
getConnection()
Deprecated.
Opens a connection on the Sail which can be used to query and update data.
|
File |
getDataDir()
Deprecated.
Gets the Sail's data directory.
|
IsolationLevel |
getDefaultIsolationLevel()
Deprecated.
Retrieves the default
IsolationLevel level on which transactions in this Sail operate. |
FederatedServiceResolver |
getFederatedServiceResolver()
Deprecated.
|
org.apache.http.client.HttpClient |
getHttpClient()
Deprecated.
HttpClient that has been assigned or has been used by this object. |
HttpClientSessionManager |
getHttpClientSessionManager()
Deprecated.
HttpClientSessionManager that has been assigned or has been used by this object. |
PrefixHashSet |
getLocalPropertySpace()
Deprecated.
|
protected List<Repository> |
getMembers()
Deprecated.
Returns the members of this federation.
|
List<IsolationLevel> |
getSupportedIsolationLevels()
Deprecated.
Retrieve the
IsolationLevels supported by this SAIL, ordered by increasing complexity. |
ValueFactory |
getValueFactory()
Deprecated.
Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.
|
void |
init()
Deprecated.
Initializes the Sail.
|
void |
initialize()
Deprecated.
|
boolean |
isDistinct()
Deprecated.
|
boolean |
isReadOnly()
Deprecated.
|
boolean |
isWritable()
Deprecated.
Checks whether this Sail object is writable, i.e.
|
void |
setBloomFilter(Repository member,
RepositoryBloomFilter filter)
Deprecated.
Sets an optional
RepositoryBloomFilter to use with the given Repository. |
void |
setDataDir(File dataDir)
Deprecated.
Sets the data directory for the Sail.
|
void |
setDistinct(boolean distinct)
Deprecated.
|
void |
setFederatedServiceResolver(FederatedServiceResolver resolver)
Deprecated.
Overrides the
FederatedServiceResolver used by this instance, but the given resolver is not shutDown when
this instance is. |
void |
setHttpClient(org.apache.http.client.HttpClient client)
Deprecated.
Assign an
HttpClient that this object should use. |
void |
setHttpClientSessionManager(HttpClientSessionManager client)
Deprecated.
Assign an
HttpClientSessionManager that this object should use. |
void |
setLocalPropertySpace(Collection<String> localPropertySpace)
Deprecated.
|
void |
setReadOnly(boolean readOnly)
Deprecated.
|
void |
setRepositoryResolver(RepositoryResolver resolver)
Deprecated.
|
void |
shutDown()
Deprecated.
Shuts down the Sail, giving it the opportunity to synchronize any stale data.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSesameClient, setSesameClientpublic File getDataDir()
SailgetDataDir in interface SailSail.setDataDir(File)public void setDataDir(File dataDir)
Sailinitialized.setDataDir in interface Sailpublic ValueFactory getValueFactory()
SailgetValueFactory in interface Sailpublic boolean isWritable()
throws SailException
SailisWritable 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 FederatedServiceResolverClientresolver - 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 HttpClientDependent@Deprecated public void initialize() throws SailException
Sailinitialize in interface SailSailException - If the Sail could not be initialized.public void init()
throws SailException
Sailinit in interface SailSailException - If the Sail could not be initialized.public void shutDown()
throws SailException
SailshutDown in interface SailSailException - If the Sail object encountered an error or unexpected situation internally.public SailConnection getConnection() throws SailException
SailgetConnection in interface SailSailException - If no transaction could be started, for example because the Sail is not writable.protected EvaluationStrategy createEvaluationStrategy(TripleSource tripleSource, Dataset dataset, FederatedServiceResolver resolver)
public List<IsolationLevel> getSupportedIsolationLevels()
SailIsolationLevels supported by this SAIL, ordered by increasing complexity.getSupportedIsolationLevels in interface SailIsolationLevel.public IsolationLevel getDefaultIsolationLevel()
SailIsolationLevel level on which transactions in this Sail operate.getDefaultIsolationLevel in interface SailIsolationLevel that will be used with SailConnection.begin(), for SAIL connections
returned by Sail.getConnection().Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.