Class ContextStatistics
java.lang.Object
org.gcube.informationsystem.resourceregistry.statistics.ContextStatistics
- All Implemented Interfaces:
org.gcube.common.health.api.Statistics
The
contexts group of the public statistics: the Context tree.- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
Fields inherited from interface org.gcube.common.health.api.Statistics
DEFAULT_REFRESH -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gcube.common.health.api.Statistics
refresh
-
Constructor Details
-
ContextStatistics
public ContextStatistics()
-
-
Method Details
-
id
- Specified by:
idin interfaceorg.gcube.common.health.api.Statistics
-
title
- Specified by:
titlein interfaceorg.gcube.common.health.api.Statistics
-
description
- Specified by:
descriptionin interfaceorg.gcube.common.health.api.Statistics
-
depthOf
The depth of a Context in the tree:1for a root.- Parameters:
path- the path of the Context- Returns:
- its depth
-
liveDepths
public static Map<String,Integer> liveDepths() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionThe live Contexts, keyed by UUID, with their depth.- Returns:
- the depth of each live Context
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the Contexts cannot be read
-
compute
public List<org.gcube.common.health.api.Figure> compute() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Specified by:
computein interfaceorg.gcube.common.health.api.Statistics- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-