Class SurveySelector
java.lang.Object
org.odpi.openmetadata.adapters.connectors.liskov.SurveySelector
Chooses which of the surveys that can be run against an element Liskov should run. The technology type of an
element often lists several surveys - for example, a database server may be surveyed by a general survey and by
a more detailed one. They describe the same element, and running them all multiplies the load on the resource
and the number of survey reports, so only one is run: the one whose latest survey produced the most types of
annotation, since that one describes the element most fully.
A survey that has never been run against the element is chosen first, one at a time in the order the technology type lists them, so that each is tried once and its results can be compared. A survey that ran but did not complete counts as producing no annotation types. Where surveys tie, the first listed is chosen, so the choice is stable from one refresh to the next.
A survey that has never been run against the element is chosen first, one at a time in the order the technology type lists them, so that each is tried once and its results can be compared. A survey that ran but did not complete counts as producing no annotation types. Where surveys tie, the first listed is chosen, so the choice is stable from one refresh to the next.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA survey that could be run, with what is known of its results for the element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TchooseSurvey(List<SurveySelector.Candidate<T>> candidates) Return the survey to run.
-
Constructor Details
-
SurveySelector
public SurveySelector()
-
-
Method Details
-
chooseSurvey
Return the survey to run.- Type Parameters:
T- type used to identify the survey- Parameters:
candidates- surveys that could be run, in the order the technology type lists them- Returns:
- chosen survey, or null if there are no candidates
-