public interface Endpoint
Repository
type, location.
The Repository
to use can be obtained by calling getRepository()
A RepositoryConnection
for interacting with the store can be obtained using getConnection()
. Note
that typically the TripleSource
of the endpoint should be used.
ManagedRepositoryEndpoint
,
RepositoryEndpoint
,
ResolvableEndpoint
Modifier and Type | Method and Description |
---|---|
RepositoryConnection |
getConnection()
Return a
RepositoryConnection for the Repository represented by this endpoint. |
String |
getEndpoint()
Get the endpoint location, e.g.
|
EndpointClassification |
getEndpointClassification() |
EndpointConfiguration |
getEndpointConfiguration()
Additional endpoint specific configuration.
|
String |
getId() |
String |
getName() |
Repository |
getRepository() |
TripleSource |
getTripleSource() |
void |
init(FederationContext federationContext)
Initialize this
Endpoint |
boolean |
isInitialized() |
boolean |
isWritable() |
void |
shutDown()
Shutdown this
Endpoint |
long |
size()
Returns the size of the given repository, i.e.
|
Repository getRepository()
Repository
RepositoryConnection getConnection()
RepositoryConnection
for the Repository
represented by this endpoint.
Callers of this method need to ensure to close the connection after use.
Typical pattern:
try (RepositoryConnection conn = endpoint.getConnection()) { // do something with the connection }
If the RepositoryConnection
needs to stay open outside the scope of a method (e.g. for streaming
results), consider using CloseDependentConnectionIteration
.
RepositoryException
- if the repository is not initializedTripleSource getTripleSource()
TripleSource
EndpointClassification getEndpointClassification()
EndpointClassification
boolean isWritable()
String getId()
String getName()
String getEndpoint()
long size() throws RepositoryException
RepositoryException
void init(FederationContext federationContext) throws RepositoryException
Endpoint
federationContext
- RepositoryException
void shutDown() throws RepositoryException
Endpoint
RepositoryException
boolean isInitialized()
EndpointConfiguration getEndpointConfiguration()
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.