java.lang.Object
org.gcube.informationsystem.resourceregistry.persistence.orientdb.statistics.InstanceStatisticsScan

public class InstanceStatisticsScan extends Object
Computes the instances and connectivity groups of the public statistics in one pass over every instance, through the administrative connection.
Author:
Luca Frosini (ISTI - CNR)
  • Field Details

    • TOP_RESOURCE_TYPES

      public static final int TOP_RESOURCE_TYPES
      How many Resource types topResourceTypes lists.
      See Also:
  • Constructor Details

    • InstanceStatisticsScan

      public InstanceStatisticsScan(Map<String,Integer> liveDepths)
      Parameters:
      liveDepths - the live Contexts, keyed by UUID, with their depth
  • Method Details

    • getInstances

      public List<org.gcube.common.health.api.Figure> getInstances()
      Returns:
      the figures of the instances group computed by scan()
    • getConnectivity

      public List<org.gcube.common.health.api.Figure> getConnectivity()
      Returns:
      the figures of the connectivity group computed by scan()
    • scan

      public void scan() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Scans every instance and computes both groups.
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - if the database cannot be read