Class RepositoryEndpoint
java.lang.Object
org.eclipse.rdf4j.federated.endpoint.EndpointBase
org.eclipse.rdf4j.federated.endpoint.RepositoryEndpoint
- All Implemented Interfaces:
Endpoint
- Direct Known Subclasses:
ManagedRepositoryEndpoint
A specialized
Endpoint that has a reference to a configured Repository.
Note that this implementation does not take care for the lifecycle of the repository. If the lifecycle of the
Repository should be managed by FedX, consider using ManagedRepositoryEndpoint
- Author:
- Andreas Schwarte
-
Nested Class Summary
Nested classes/interfaces inherited from class EndpointBase
EndpointBase.ManagedRepositoryConnectionModifier and TypeClassDescriptionstatic classA wrapper for managedRepositoryConnections which makes sure thatEndpointBase.ManagedRepositoryConnection.close()is a no-op, i.e. the actual closing of the managed connection is controlled by theEndpoint. -
Field Summary
FieldsFields inherited from class EndpointBase
endpoint, endpointClassification, endpointConfiguration, initialized, log, repoInfo, tripleSource, writableModifier and TypeFieldDescriptionprotected final Stringprotected EndpointClassificationprotected EndpointConfigurationprotected booleanprotected static final org.slf4j.Loggerprotected final RepositoryInformationprotected TripleSourceprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryEndpoint(RepositoryInformation repoInfo, String endpoint, EndpointClassification endpointClassification, Repository repository) -
Method Summary
Methods inherited from class EndpointBase
equals, getConnection, getEndpoint, getEndpointClassification, getEndpointConfiguration, getFreshConnection, getId, getName, getRepoInfo, getTripleSource, getType, hashCode, init, isInitialized, isLocal, isWritable, setEndpointClassification, setEndpointConfiguration, setWritable, shutDown, size, toString, useSingleConnectionModifier and TypeMethodDescriptionbooleanReturn aRepositoryConnectionfor theRepositoryrepresented by this endpoint.Get the endpoint location, e.g. for SPARQL endpoints the urlAdditional endpoint specific configuration.protected RepositoryConnectiongetId()getName()getType()inthashCode()voidinit(FederationContext federationContext) Initialize thisEndpointbooleanbooleanisLocal()booleanvoidsetEndpointClassification(EndpointClassification endpointClassification) voidsetEndpointConfiguration(EndpointConfiguration endpointConfiguration) voidsetWritable(boolean writable) voidshutDown()Shutdown thisEndpointlongsize()Returns the size of the given repository, i.e. the number of triples.toString()protected booleanWhether to reuse the sameRepositoryConnectionthroughout the lifetime of this Endpoint.
-
Field Details
-
repository
-
-
Constructor Details
-
RepositoryEndpoint
public RepositoryEndpoint(RepositoryInformation repoInfo, String endpoint, EndpointClassification endpointClassification, Repository repository)
-
-
Method Details
-
getRepository
- Returns:
- the initialized
Repository
-