Class StatisticsManager
java.lang.Object
org.gcube.informationsystem.resourceregistry.rest.base.BaseRest
org.gcube.informationsystem.resourceregistry.rest.core.StatisticsManager
The public statistics of the registry.
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA client may reuse a response for 5 minutes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responseread()Returns the last computed statistics.Methods inherited from class org.gcube.informationsystem.resourceregistry.rest.base.BaseRest
buildResponse, buildResponse, setAccountingMethod, setAccountingMethod
-
Field Details
-
CACHE_CONTROL
A client may reuse a response for 5 minutes.- See Also:
-
-
Constructor Details
-
StatisticsManager
public StatisticsManager()Creates a newStatisticsManagerinstance.
-
-
Method Details
-
read
@GET @Produces("application/json") public jakarta.ws.rs.core.Response read() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionReturns the last computed statistics.- Returns:
- JAX-RS response containing the statistics document
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the document cannot be serialized
-