java.lang.Object
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.ExceptionAccumulatorBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.QueryAccumulatorBase
Direct Known Subclasses:
InstanceGraphAccumulator, QueryInstanceAccumulatorBase, TypesAccumulator

public class QueryAccumulatorBase extends ExceptionAccumulatorBase
QueryAccumulatorBase acts as a base class to the accumulators that need to visit each repository and combine results.
  • Field Details

    • localMetadataCollectionId

      protected String localMetadataCollectionId
    • repositoryValidator

      protected OMRSRepositoryValidator repositoryValidator
  • Method Details

    • areResultsComplete

      public boolean areResultsComplete()
      Return whether results from all repositories have been received.
      Returns:
      boolean flag - true means results were returned by at least one repositories
    • resultsReturned

      public boolean resultsReturned()
      Return a flag indicating whether at least one of the repositories produced a valid answer.
      Returns:
      true if a request succeeded.
    • registerExecutor

      public void registerExecutor()
      An executor is created for each repository that needs to be called. Each executor should provide either an exception response or a set of the desired elements.
    • captureException

      public void captureException(String metadataCollectionId, ClassificationErrorException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, EntityNotKnownException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, EntityProxyOnlyException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, FunctionNotSupportedException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, InvalidParameterException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, PagingErrorException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, PropertyErrorException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, RelationshipNotKnownException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, RepositoryErrorException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, TypeErrorException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureException

      public void captureException(String metadataCollectionId, UserNotAuthorizedException exception)
      Save the supplied exception.
      Parameters:
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call
    • captureGenericException

      public void captureGenericException(String actionDescription, String metadataCollectionId, Exception exception)
      Save the supplied exception.
      Parameters:
      actionDescription - caller,s activity description
      metadataCollectionId - unique identifier for metadata collection this issued this exception
      exception - exception from remote call