Class RepositoryConformanceWorkbenchConfig

java.lang.Object
org.odpi.openmetadata.adminservices.configuration.properties.AdminServicesConfigHeader
org.odpi.openmetadata.adminservices.configuration.properties.RepositoryConformanceWorkbenchConfig

public class RepositoryConformanceWorkbenchConfig extends AdminServicesConfigHeader
RepositoryConformanceWorkbenchConfig provides the config that drives the RepositoryWorkbench within the Open Metadata Conformance Suite.
  • Constructor Details

    • RepositoryConformanceWorkbenchConfig

      public RepositoryConformanceWorkbenchConfig()
      Default constructor does nothing.
    • RepositoryConformanceWorkbenchConfig

      public RepositoryConformanceWorkbenchConfig(RepositoryConformanceWorkbenchConfig template)
      Copy/clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getTutRepositoryServerName

      public String getTutRepositoryServerName()
      Return the name of the server that the repository workbench is to test.
      Returns:
      server name
    • setTutRepositoryServerName

      public void setTutRepositoryServerName(String tutRepositoryServerName)
      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

      public List<String> 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

      public void setTestEntityTypes(List<String> testEntityTypes)
      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

      public List<String> 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

      public void setTestRelationshipTypes(List<String> testRelationshipTypes)
      Set up the list of relationship types to test.
      Parameters:
      testRelationshipTypes - list of relationship type names (or null to test all available types)
    • getTestClassificationTypes

      public List<String> 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

      public void setTestClassificationTypes(List<String> testClassificationTypes)
      Set up the list of classification types to test.
      Parameters:
      testClassificationTypes - list of classification type names (or null to test all available types)
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      JSON style description of variables.
    • equals

      public boolean equals(Object objectToCompare)
      Validate that an object is equal depending on their stored values.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - object
      Returns:
      boolean result
    • hashCode

      public int hashCode()
      Return a hash code based on the values of this object.
      Overrides:
      hashCode in class Object
      Returns:
      in hash code