Class InstanceStatisticsScan
java.lang.Object
org.gcube.informationsystem.resourceregistry.persistence.orientdb.statistics.InstanceStatisticsScan
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intHow many Resource typestopResourceTypeslists. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.com.fasterxml.jackson.databind.node.ObjectNodeorg.gcube.com.fasterxml.jackson.databind.node.ObjectNodevoidscan()Scans every instance and computes both groups.
-
Field Details
-
TOP_RESOURCE_TYPES
public static final int TOP_RESOURCE_TYPESHow many Resource typestopResourceTypeslists.- See Also:
-
-
Constructor Details
-
InstanceStatisticsScan
- Parameters:
liveDepths- the live Contexts, keyed by UUID, with their depth
-
-
Method Details
-
getInstances
public org.gcube.com.fasterxml.jackson.databind.node.ObjectNode getInstances()- Returns:
- the
instancesgroup computed byscan()
-
getConnectivity
public org.gcube.com.fasterxml.jackson.databind.node.ObjectNode getConnectivity()- Returns:
- the
connectivitygroup computed byscan()
-
scan
public void scan() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionScans every instance and computes both groups.- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the database cannot be read
-