Package org.fcrepo.http.api
Class FedoraRepositoryStats
- java.lang.Object
-
- org.fcrepo.http.commons.AbstractResource
-
- org.fcrepo.http.api.FedoraBaseResource
-
- org.fcrepo.http.api.FedoraRepositoryStats
-
@Scope("request") @Path("/fcr:stats") public class FedoraRepositoryStats extends FedoraBaseResource
An HTTP endpoint for retrieving statistics related to the repository.- Since:
- 2022-01-27
- Author:
- dbernstein
-
-
Field Summary
-
Fields inherited from class org.fcrepo.http.api.FedoraBaseResource
dbTransactionExecutor, identifierConverter, resourceFactory, resourceHelper, securityContext, servletRequest, txManager
-
Fields inherited from class org.fcrepo.http.commons.AbstractResource
defaultPidMinter, fedoraPropsConfig, headers, pidMinter, uriInfo, versionService
-
-
Constructor Summary
Constructors Constructor Description FedoraRepositoryStats()
Default JAX-RS entry point
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getBinaryStats(List<String> mimeTypes)
Method for querying binary statsjavax.ws.rs.core.Response
getStats()
Query summary infojavax.ws.rs.core.Response
getStatsByRdfType(List<String> rdfTypes)
Method for querying rdf type stats-
Methods inherited from class org.fcrepo.http.api.FedoraBaseResource
doesResourceExist, doInDbTx, doInDbTxWithRetry, getFedoraResource, getUserPrincipal, identifierConverter, isGhostNode, transaction
-
-
-
-
Constructor Detail
-
FedoraRepositoryStats
public FedoraRepositoryStats()
Default JAX-RS entry point
-
-
Method Detail
-
getStats
@GET @Produces({"application/json;qs=1.0","application/json"}) public javax.ws.rs.core.Response getStats()
Query summary info- Returns:
-
getStatsByRdfType
@GET @Path("/rdf-types") @Produces({"application/json;qs=1.0","application/json"}) public javax.ws.rs.core.Response getStatsByRdfType(@QueryParam("rdf_type") List<String> rdfTypes)
Method for querying rdf type stats- Parameters:
rdfTypes
- A list of rdf types by which to limit the results. By default show all rdf types.- Returns:
-
getBinaryStats
@GET @Path("/binaries") @Produces({"application/json;qs=1.0","application/json"}) public javax.ws.rs.core.Response getBinaryStats(@QueryParam("mime_type") List<String> mimeTypes)
Method for querying binary stats- Parameters:
mimeTypes
- A list of mime types by which to limit the results. By default show all binary mime types.- Returns:
-
-