Class ManagedRepositoryEndpoint
java.lang.Object
org.eclipse.rdf4j.federated.endpoint.EndpointBase
org.eclipse.rdf4j.federated.endpoint.RepositoryEndpoint
org.eclipse.rdf4j.federated.endpoint.ManagedRepositoryEndpoint
- All Implemented Interfaces:
Endpoint
A specialized
RepositoryEndpoint where the lifecycle of the Repository is managed by this endpoint,
i.e. this instance takes care for initialize and shutdown of the repository.- Author:
- Andreas Schwarte
- See Also:
-
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
Fields inherited from class RepositoryEndpoint
repositoryFields 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
ConstructorsConstructorDescriptionManagedRepositoryEndpoint(RepositoryInformation repoInfo, String endpoint, EndpointClassification endpointClassification, Repository repo) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(FederationContext federationContext) Initialize thisEndpointvoidshutDown()Shutdown thisEndpointMethods inherited from class RepositoryEndpoint
getRepositoryMethods inherited from class EndpointBase
equals, getConnection, getEndpoint, getEndpointClassification, getEndpointConfiguration, getFreshConnection, getId, getName, getRepoInfo, getTripleSource, getType, hashCode, isInitialized, isLocal, isWritable, setEndpointClassification, setEndpointConfiguration, setWritable, 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()booleanbooleanisLocal()booleanvoidsetEndpointClassification(EndpointClassification endpointClassification) voidsetEndpointConfiguration(EndpointConfiguration endpointConfiguration) voidsetWritable(boolean writable) longsize()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.
-
Constructor Details
-
ManagedRepositoryEndpoint
public ManagedRepositoryEndpoint(RepositoryInformation repoInfo, String endpoint, EndpointClassification endpointClassification, Repository repo)
-
-
Method Details
-
init
Description copied from interface:EndpointInitialize thisEndpoint- Specified by:
initin interfaceEndpoint- Overrides:
initin classEndpointBase- Parameters:
federationContext-- Throws:
RepositoryException
-
shutDown
Description copied from interface:EndpointShutdown thisEndpoint- Specified by:
shutDownin interfaceEndpoint- Overrides:
shutDownin classEndpointBase- Throws:
RepositoryException
-