Module org.apache.jena.fuseki.core
Package org.apache.jena.fuseki.server
Class DataAccessPointRegistry
java.lang.Object
org.apache.jena.atlas.lib.Registry<String,DataAccessPoint>
org.apache.jena.fuseki.server.DataAccessPointRegistry
public class DataAccessPointRegistry
extends org.apache.jena.atlas.lib.Registry<String,DataAccessPoint>
Registry of (dataset name,
DataAccessPoint
).
In addition, registered DataAccessPoint
are added to the metrics.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionCollection of theDataAccessPoints
.static DataAccessPointRegistry
get
(jakarta.servlet.ServletContext cxt) The server DataAccessPointRegistry is held in the ServletContext.void
print()
void
void
register
(DataAccessPoint accessPt) static void
set
(jakarta.servlet.ServletContext cxt, DataAccessPointRegistry registry) Set or change theDataAccessPointRegistry
.Methods inherited from class org.apache.jena.atlas.lib.Registry
clear, forEach, isEmpty, isRegistered, keys, put, remove, size
-
Constructor Details
-
DataAccessPointRegistry
public DataAccessPointRegistry() -
DataAccessPointRegistry
-
-
Method Details
-
register
-
accessPoints
Collection of theDataAccessPoints
. This is a new list generated from the registry contents and not still connected to the registry. Registry changes will not interfere with iteration over the list.DataAccessPoints
can not be registered twice under different names (the same dataset can be via differentDataAccessPoints
so the list has no duplicates. There is no defined order to the list. -
get
- Overrides:
get
in classorg.apache.jena.atlas.lib.Registry<String,
DataAccessPoint>
-
print
public void print() -
print
-
get
The server DataAccessPointRegistry is held in the ServletContext.Reload may change this object for another one. Therefore, code should obtain the DataAccessPointRegistry once per operation.
Each request, has a stable
HttpAction.getDataAccessPointRegistry()
.Getting the
DataAccessPointRegistry
is atomic. -
set
Set or change theDataAccessPointRegistry
. This is atomic. (In Jetty, it is backed by a ConcurrentHashMap).
-