Class RegistryMetadataBaseline

java.lang.Object
org.gcube.informationsystem.resourceregistry.dbinitialization.RegistryMetadataBaseline

public class RegistryMetadataBaseline extends Object
Computes the RegistryMetadata the classpath defines: is-model and the domain model with the types installed from the classpath, an empty runtime model, and no revision.

Used wherever the record is (re)computed: bootstrap and migration.

Author:
Luca Frosini (ISTI - CNR)
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a baseline reading service.yaml and the classpath.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gcube.informationsystem.registry.RegistryMetadata
    Computes the record: is-model and the domain model, if any, with their classpath types, and an empty runtime model; every counter at 0.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RegistryMetadataBaseline

      public RegistryMetadataBaseline()
      Creates a baseline reading service.yaml and the classpath.
  • Method Details

    • create

      public org.gcube.informationsystem.registry.RegistryMetadata create() throws Exception
      Computes the record: is-model and the domain model, if any, with their classpath types, and an empty runtime model; every counter at 0.
      Returns:
      the record
      Throws:
      Exception - if more than one domain model is on the classpath, the runtime model's name is taken, or the discovery scan fails