java.lang.Object
org.apache.jena.fuseki.server.DataService
A
DataService
is the fuseki Service in a configuration file.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionCounter of active transactionsCumulative counter of transactions -
Method Summary
Modifier and TypeMethodDescriptionReturning null implies no authorization controlvoid
Note the finish of a transactionvoid
forEachEndpoint
(Consumer<Endpoint> action) Execute an action for eachEndpoint
.org.apache.jena.sparql.core.DatasetGraph
Decision function for this DataService.Return a collection of all endpoints for this DataService.getEndpoints
(Operation operation) Return the EndpointSet for the operations for unnamed use.getEndpointSet
(String endpointName) Return the EndpointSet for the operations for named use.Return the operations available here.long
long
long
void
goActive()
void
boolean
hasOperation
(Operation operation) Return the operations available here.boolean
static DataService.Builder
Builder for a new DataService.static DataService.Builder
newBuilder
(DataService dSrv) Return a new builder, populated by an existing DatasetServicestatic DataService.Builder
newBuilder
(org.apache.jena.sparql.core.DatasetGraph dsg) Builder for a new DataService, with a dataset.void
setEndpointProcessors
(OperationRegistry operationRegistry) Set anyActionService
processors that are currently unset.void
shutdown()
Shutdown and never use again.void
startTxn
(org.apache.jena.query.TxnType mode) Note the start of a transaction
-
Field Details
-
activeTxn
Counter of active transactions -
totalTxn
Cumulative counter of transactions
-
-
Method Details
-
newBuilder
Builder for a new DataService. -
newBuilder
Builder for a new DataService, with a dataset. -
newBuilder
Return a new builder, populated by an existing DatasetService -
getDataset
public org.apache.jena.sparql.core.DatasetGraph getDataset() -
getEndpointSet
Return the EndpointSet for the operations for named use. -
getEndpointSet
Return the EndpointSet for the operations for unnamed use. -
getEndpoints
Return a collection of all endpoints for this DataService. -
forEachEndpoint
Execute an action for eachEndpoint
. -
getEndpoints
-
getOperations
Return the operations available here.- See Also:
-
hasOperation
Return the operations available here.- See Also:
-
setEndpointProcessors
Set anyActionService
processors that are currently unset. -
getDefaultOperationChooser
Decision function for this DataService.This is the handler for the case of "no query string, no registered content-type" that occurs when a name has multiple choices in the dispatcher so the operation can not be distinguished.
If null, the system default (in
Dispatcher.selectPlainOperation
) is a quads performed on the dataset -Operation.GSP_R
orOperation.GSP_RW
. -
goActive
public void goActive() -
goOffline
public void goOffline() -
isAcceptingRequests
public boolean isAcceptingRequests() -
getCounters
-
getRequests
public long getRequests() -
getRequestsGood
public long getRequestsGood() -
getRequestsBad
public long getRequestsBad() -
startTxn
public void startTxn(org.apache.jena.query.TxnType mode) Note the start of a transaction -
finishTxn
public void finishTxn()Note the finish of a transaction -
shutdown
public void shutdown()Shutdown and never use again. -
authPolicy
Returning null implies no authorization control
-