Class QueryAccumulatorBase
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
QueryAccumulatorBase acts as a base class to the accumulators that need to visit each repository and combine results.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether results from all repositories have been received.void
captureException
(String metadataCollectionId, ClassificationErrorException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, EntityNotKnownException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, EntityProxyOnlyException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, FunctionNotSupportedException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, InvalidParameterException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, PagingErrorException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, PropertyErrorException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, RelationshipNotKnownException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, RepositoryErrorException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, TypeErrorException exception) Save the supplied exception.void
captureException
(String metadataCollectionId, UserNotAuthorizedException exception) Save the supplied exception.void
captureGenericException
(String actionDescription, String metadataCollectionId, Exception exception) Save the supplied exception.void
An executor is created for each repository that needs to be called.boolean
Return a flag indicating whether at least one of the repositories produced a valid answer.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.ExceptionAccumulatorBase
throwCapturedClassificationErrorException, throwCapturedEntityNotDeletedException, throwCapturedEntityNotKnownException, throwCapturedEntityProxyOnlyException, throwCapturedFunctionNotSupportedException, throwCapturedGenericException, throwCapturedInvalidParameterException, throwCapturedInvalidTypeDefException, throwCapturedPagingErrorException, throwCapturedPropertyErrorException, throwCapturedRelationshipNotDeletedException, throwCapturedRelationshipNotKnownException, throwCapturedRepositoryErrorException, throwCapturedStatusNotSupportedException, throwCapturedTypeDefConflictException, throwCapturedTypeDefNotKnownException, throwCapturedTypeDefNotSupportedException, throwCapturedTypeErrorException, throwCapturedUserNotAuthorizedException
-
Field Details
-
localMetadataCollectionId
-
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
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureException
Save the supplied exception.- Parameters:
metadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-
captureGenericException
public void captureGenericException(String actionDescription, String metadataCollectionId, Exception exception) Save the supplied exception.- Parameters:
actionDescription
- caller,s activity descriptionmetadataCollectionId
- unique identifier for metadata collection this issued this exceptionexception
- exception from remote call
-