java.lang.Object
org.gcube.informationsystem.resourceregistry.statistics.InstanceStatistics
All Implemented Interfaces:
org.gcube.common.health.api.Statistics

public class InstanceStatistics extends Object implements org.gcube.common.health.api.Statistics
The instances group of the public statistics: a scan of every instance, every 6 hours.
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • REFRESH

      public static final Duration REFRESH
      A scan of every instance: computed every 6 hours.
  • Constructor Details

    • InstanceStatistics

      public InstanceStatistics()
  • Method Details

    • id

      public String id()
      Specified by:
      id in interface org.gcube.common.health.api.Statistics
    • title

      public String title()
      Specified by:
      title in interface org.gcube.common.health.api.Statistics
    • description

      public String description()
      Specified by:
      description in interface org.gcube.common.health.api.Statistics
    • refresh

      public Duration refresh()
      Specified by:
      refresh in interface org.gcube.common.health.api.Statistics
    • compute

      public List<org.gcube.common.health.api.Figure> compute() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Specified by:
      compute in interface org.gcube.common.health.api.Statistics
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException