Class RepositoryConformanceWorkbenchConfig
java.lang.Object
org.odpi.openmetadata.adminservices.configuration.properties.AdminServicesConfigHeader
org.odpi.openmetadata.adminservices.configuration.properties.RepositoryConformanceWorkbenchConfig
RepositoryConformanceWorkbenchConfig provides the config that drives the RepositoryWorkbench within the
Open Metadata Conformance Suite.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor does nothing.Copy/clone constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanValidate that an object is equal depending on their stored values.intReturn the number of times a test case polls while waiting for an event to be propagated and processed.intReturn the interval in milliseconds between polls while waiting for an event.intReturn the maximum search results that should processed for testing the search operations of the server under test.Return the list of classification types to test.Return the list of entity types to test.Return the list of relationship types to test.Return the name of the server that the repository workbench is to test.inthashCode()Return a hash code based on the values of this object.voidsetEventPollCount(int eventPollCount) Set up the number of times a test case polls while waiting for an event.voidsetEventPollPeriod(int eventPollPeriod) Set up the interval in milliseconds between polls while waiting for an event.voidsetMaxSearchResults(int maxSearchResults) Set up the maximum search results that should be processed for testing the search operations of the server under test.voidsetTestClassificationTypes(List<String> testClassificationTypes) Set up the list of classification types to test.voidsetTestEntityTypes(List<String> testEntityTypes) Return the list of entity types to test.voidsetTestRelationshipTypes(List<String> testRelationshipTypes) Set up the list of relationship types to test.voidsetTutRepositoryServerName(String tutRepositoryServerName) Set up the name of the server that the repository workbench is to test.toString()Standard toString method.
-
Constructor Details
-
RepositoryConformanceWorkbenchConfig
public RepositoryConformanceWorkbenchConfig()Default constructor does nothing. -
RepositoryConformanceWorkbenchConfig
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Details
-
getTutRepositoryServerName
Return the name of the server that the repository workbench is to test.- Returns:
- server name
-
setTutRepositoryServerName
Set up the name of the server that the repository workbench is to test.- Parameters:
tutRepositoryServerName- server name
-
getMaxSearchResults
public int getMaxSearchResults()Return the maximum search results that should processed for testing the search operations of the server under test.- Returns:
- page size
-
setMaxSearchResults
public void setMaxSearchResults(int maxSearchResults) Set up the maximum search results that should be processed for testing the search operations of the server under test.- Parameters:
maxSearchResults- page size
-
getTestEntityTypes
Return the list of entity types to test. If the value is null then all known entities will be used. The names of the entities are used to drive the spawning of tests since the repository workbench aims to test each permutation of types.- Returns:
- list of entity type names
-
setTestEntityTypes
Return the list of entity types to test. If the value is null then all known entities will be used. The names of the entities are used to drive the spawning of tests since the repository workbench aims to test each permutation of types.- Parameters:
testEntityTypes- list of entity type names (or null to test all types)
-
getEventPollCount
public int getEventPollCount()Return the number of times a test case polls while waiting for an event to be propagated and processed. Together with the poll period this sets how long a test waits before deciding the event is not coming.
The budget only costs anything when propagation does not happen - a loop that gets what it is waiting for leaves immediately - so it is set well above what a healthy cohort needs. It is configurable because a repository that scans rather than indexes gets slower as a run goes on, and on a loaded machine that slowness reaches the point where the wait expires and ordinary delay is reported as a conformance failure. Raising it on such a machine distinguishes "not yet" from "never"; the default is left where it is so that an ordinary run reports timing sensitivity rather than hiding it.- Returns:
- number of polls
-
setEventPollCount
public void setEventPollCount(int eventPollCount) Set up the number of times a test case polls while waiting for an event.- Parameters:
eventPollCount- number of polls
-
getEventPollPeriod
public int getEventPollPeriod()Return the interval in milliseconds between polls while waiting for an event.- Returns:
- milliseconds
-
setEventPollPeriod
public void setEventPollPeriod(int eventPollPeriod) Set up the interval in milliseconds between polls while waiting for an event.- Parameters:
eventPollPeriod- milliseconds
-
getTestRelationshipTypes
Return the list of relationship types to test. If the value is null or empty then every relationship type whose two ends are both available for testing is used. Naming types here narrows that set - the ends still have to be available, so naming a relationship whose ends are not among the entity types being tested does not bring it into the run.- Returns:
- list of relationship type names
-
setTestRelationshipTypes
Set up the list of relationship types to test.- Parameters:
testRelationshipTypes- list of relationship type names (or null to test all available types)
-
getTestClassificationTypes
Return the list of classification types to test. If the value is null or empty then every classification type with a valid entity among those being tested is used. Naming types here narrows that set - a classification still has to have a valid entity type in the run to be testable.- Returns:
- list of classification type names
-
setTestClassificationTypes
Set up the list of classification types to test.- Parameters:
testClassificationTypes- list of classification type names (or null to test all available types)
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-