public class TypesAccumulator extends QueryAccumulatorBase
TypesAccumulator accumulates type information for each of the members of the connected cohort members.
  • Constructor Details

    • TypesAccumulator

      public TypesAccumulator(String localMetadataCollectionId, AuditLog auditLog, OMRSRepositoryValidator repositoryValidator)
      Construct a type def gallery accumulator. Its base class manages the common variables needed to control the execution of requests across all members of the cohort(s).
      Parameters:
      localMetadataCollectionId - collection Id of local repository - null means no local repository
      auditLog - audit log provides destination for log messages
      repositoryValidator - validator provides common validation routines
  • Method Details

    • addTypeDefGallery

      public void addTypeDefGallery(TypeDefGallery types, String metadataCollectionId)
      Add a gallery of types to the accumulator. This method is included to save the executors from coding this loop to process each instance.
      Parameters:
      types - gallery of retrieved types
      metadataCollectionId - source metadata collection
    • getResults

      public TypeDefGallery getResults()
      Extract the results - this will the a unique list of types selected from the responses supplied to this accumulator. It should be called once all the executors have completed processing their request(s).
      Returns:
      type definition gallery