Class Federation
- java.lang.Object
-
- org.eclipse.rdf4j.sail.federation.Federation
-
- All Implemented Interfaces:
Executor,HttpClientDependent,SessionManagerDependent,FederatedServiceResolverClient,RepositoryResolverClient,Sail
@Deprecated public class Federation extends Object implements Sail, Executor, FederatedServiceResolverClient, RepositoryResolverClient, HttpClientDependent, SessionManagerDependent
Deprecated.since 3.1.0. This module will be replaced by the new FedX federation module.Union multiple (possibly remote) Repositories into a single RDF store.- Author:
- James Leigh, Arjohn Kampman
-
-
Constructor Summary
Constructors Constructor Description Federation()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddMember(Repository member)Deprecated.protected EvaluationStrategycreateEvaluationStrategy(TripleSource tripleSource, Dataset dataset, FederatedServiceResolver resolver)Deprecated.voidexecute(Runnable command)Deprecated.Required byExecutorinterface.protected Map<Repository,RepositoryBloomFilter>getBloomFilters()Deprecated.Returns the configuredRepositoryBloomFilters (if any).SailConnectiongetConnection()Deprecated.Opens a connection on the Sail which can be used to query and update data.FilegetDataDir()Deprecated.Gets the Sail's data directory.IsolationLevelgetDefaultIsolationLevel()Deprecated.Retrieves the defaultIsolationLevellevel on which transactions in this Sail operate.FederatedServiceResolvergetFederatedServiceResolver()Deprecated.org.apache.http.client.HttpClientgetHttpClient()Deprecated.HttpClientthat has been assigned or has been used by this object.HttpClientSessionManagergetHttpClientSessionManager()Deprecated.HttpClientSessionManagerthat has been assigned or has been used by this object.PrefixHashSetgetLocalPropertySpace()Deprecated.protected List<Repository>getMembers()Deprecated.Returns the members of this federation.List<IsolationLevel>getSupportedIsolationLevels()Deprecated.Retrieve theIsolationLevels supported by this SAIL, ordered by increasing complexity.ValueFactorygetValueFactory()Deprecated.Gets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.voidinit()Deprecated.Initializes the Sail.booleanisDistinct()Deprecated.booleanisReadOnly()Deprecated.booleanisWritable()Deprecated.Checks whether this Sail object is writable, i.e.voidsetBloomFilter(Repository member, RepositoryBloomFilter filter)Deprecated.Sets an optionalRepositoryBloomFilterto use with the givenRepository.voidsetDataDir(File dataDir)Deprecated.Sets the data directory for the Sail.voidsetDistinct(boolean distinct)Deprecated.voidsetFederatedServiceResolver(FederatedServiceResolver resolver)Deprecated.Overrides theFederatedServiceResolverused by this instance, but the given resolver is not shutDown when this instance is.voidsetHttpClient(org.apache.http.client.HttpClient client)Deprecated.Assign anHttpClientthat this object should use.voidsetHttpClientSessionManager(HttpClientSessionManager client)Deprecated.Assign anHttpClientSessionManagerthat this object should use.voidsetLocalPropertySpace(Collection<String> localPropertySpace)Deprecated.voidsetReadOnly(boolean readOnly)Deprecated.voidsetRepositoryResolver(RepositoryResolver resolver)Deprecated.voidshutDown()Deprecated.Shuts down the Sail, giving it the opportunity to synchronize any stale data.
-
-
-
Method Detail
-
getDataDir
public File getDataDir()
Deprecated.Description copied from interface:SailGets the Sail's data directory.- Specified by:
getDataDirin interfaceSail- See Also:
Sail.setDataDir(File)
-
setDataDir
public void setDataDir(File dataDir)
Deprecated.Description copied from interface:SailSets the data directory for the Sail. The Sail can use this directory for storage of data, parameters, etc. This directory must be set before the Sail isinitialized.- Specified by:
setDataDirin interfaceSail
-
getValueFactory
public ValueFactory getValueFactory()
Deprecated.Description copied from interface:SailGets a ValueFactory object that can be used to create IRI-, blank node-, literal- and statement objects.- Specified by:
getValueFactoryin interfaceSail- Returns:
- a ValueFactory object for this Sail object.
-
isWritable
public boolean isWritable() throws SailExceptionDeprecated.Description copied from interface:SailChecks whether this Sail object is writable, i.e. if the data contained in this Sail object can be changed.- Specified by:
isWritablein interfaceSail- Throws:
SailException
-
addMember
public void addMember(Repository member)
Deprecated.
-
getMembers
protected List<Repository> getMembers()
Deprecated.Returns the members of this federation.- Returns:
- unmodifiable list of federation members.
-
setBloomFilter
public void setBloomFilter(Repository member, RepositoryBloomFilter filter)
Deprecated.Sets an optionalRepositoryBloomFilterto use with the givenRepository.- Parameters:
filter- the filter to use or null to not use a filter.
-
getBloomFilters
protected Map<Repository,RepositoryBloomFilter> getBloomFilters()
Deprecated.Returns the configuredRepositoryBloomFilters (if any).- Returns:
- unmodifiable map of repositories to bloom filters.
-
getLocalPropertySpace
public PrefixHashSet getLocalPropertySpace()
Deprecated.- Returns:
- PrefixHashSet or null
-
setLocalPropertySpace
public void setLocalPropertySpace(Collection<String> localPropertySpace)
Deprecated.
-
isDistinct
public boolean isDistinct()
Deprecated.
-
setDistinct
public void setDistinct(boolean distinct)
Deprecated.
-
isReadOnly
public boolean isReadOnly()
Deprecated.
-
setReadOnly
public void setReadOnly(boolean readOnly)
Deprecated.
-
getFederatedServiceResolver
public FederatedServiceResolver getFederatedServiceResolver()
Deprecated.- Returns:
- Returns the SERVICE resolver.
-
setFederatedServiceResolver
public void setFederatedServiceResolver(FederatedServiceResolver resolver)
Deprecated.Overrides theFederatedServiceResolverused by this instance, but the given resolver is not shutDown when this instance is.- Specified by:
setFederatedServiceResolverin interfaceFederatedServiceResolverClient- Parameters:
resolver- The SERVICE resolver to set.
-
setRepositoryResolver
public void setRepositoryResolver(RepositoryResolver resolver)
Deprecated.- Specified by:
setRepositoryResolverin interfaceRepositoryResolverClient
-
getHttpClientSessionManager
public HttpClientSessionManager getHttpClientSessionManager()
Deprecated.Description copied from interface:SessionManagerDependentHttpClientSessionManagerthat 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 whetherHttpClientSessionManagerwas passed to or created by this object respectively.- Specified by:
getHttpClientSessionManagerin interfaceSessionManagerDependent- Returns:
- a
HttpClientSessionManagerinstance or null
-
setHttpClientSessionManager
public void setHttpClientSessionManager(HttpClientSessionManager client)
Deprecated.Description copied from interface:SessionManagerDependentAssign anHttpClientSessionManagerthat this object should use. The life cycle of the givenHttpClientSessionManageris 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.- Specified by:
setHttpClientSessionManagerin interfaceSessionManagerDependent
-
getHttpClient
public org.apache.http.client.HttpClient getHttpClient()
Deprecated.Description copied from interface:HttpClientDependentHttpClientthat 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 whetherHttpClientwas passed to or created by this object respectively.- Specified by:
getHttpClientin interfaceHttpClientDependent- Returns:
- an
HttpClientinstance or null
-
setHttpClient
public void setHttpClient(org.apache.http.client.HttpClient client)
Deprecated.Description copied from interface:HttpClientDependentAssign anHttpClientthat this object should use. The life cycle of the givenHttpClientis 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.- Specified by:
setHttpClientin interfaceHttpClientDependent
-
init
public void init() throws SailExceptionDeprecated.Description copied from interface:SailInitializes the Sail. Care should be taken that required initialization parameters have been set before this method is called. Please consult the specific Sail implementation for information about the relevant parameters.- Specified by:
initin interfaceSail- Throws:
SailException- If the Sail could not be initialized.
-
shutDown
public void shutDown() throws SailExceptionDeprecated.Description copied from interface:SailShuts down the Sail, giving it the opportunity to synchronize any stale data. Care should be taken that all initialized Sails are being shut down before an application exits to avoid potential loss of data. Once shut down, a Sail can no longer be used until it is re-initialized.- Specified by:
shutDownin interfaceSail- Throws:
SailException- If the Sail object encountered an error or unexpected situation internally.
-
getConnection
public SailConnection getConnection() throws SailException
Deprecated.Description copied from interface:SailOpens a connection on the Sail which can be used to query and update data. Depending on how the implementation handles concurrent access, a call to this method might block when there is another open connection on this Sail.- Specified by:
getConnectionin interfaceSail- Throws:
SailException- If no transaction could be started, for example because the Sail is not writable.
-
createEvaluationStrategy
protected EvaluationStrategy createEvaluationStrategy(TripleSource tripleSource, Dataset dataset, FederatedServiceResolver resolver)
Deprecated.
-
getSupportedIsolationLevels
public List<IsolationLevel> getSupportedIsolationLevels()
Deprecated.Description copied from interface:SailRetrieve theIsolationLevels supported by this SAIL, ordered by increasing complexity.- Specified by:
getSupportedIsolationLevelsin interfaceSail- Returns:
- a non-empty List of supported Isolation Levels, in order of increasing complexity. Every SAIL supports at
least one
IsolationLevel.
-
getDefaultIsolationLevel
public IsolationLevel getDefaultIsolationLevel()
Deprecated.Description copied from interface:SailRetrieves the defaultIsolationLevellevel on which transactions in this Sail operate.- Specified by:
getDefaultIsolationLevelin interfaceSail- Returns:
- the
IsolationLevelthat will be used withSailConnection.begin(), for SAIL connections returned bySail.getConnection().
-
-