java.lang.Object
org.gcube.informationsystem.resourceregistry.rest.base.BaseRest
org.gcube.informationsystem.resourceregistry.rest.core.StatisticsManager

@Path("statistics") public class StatisticsManager extends BaseRest
The public statistics of the registry.
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • CACHE_CONTROL

      public static final String CACHE_CONTROL
      A client may reuse a response for 5 minutes.
      See Also:
  • Constructor Details

    • StatisticsManager

      public StatisticsManager()
      Creates a new StatisticsManager instance.
  • Method Details

    • read

      @GET @Produces("application/json") public jakarta.ws.rs.core.Response read() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Returns 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