Class PerformanceWorkPad
java.lang.Object
org.odpi.openmetadata.conformance.beans.OpenMetadataConformanceWorkbenchWorkPad
org.odpi.openmetadata.conformance.workbenches.performance.PerformanceWorkPad
PerformanceWorkPad provides the thread safe place to assemble results from the performance workbench.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.conformance.beans.OpenMetadataConformanceWorkbenchWorkPad
lastActive, localServerPassword, localServerUserId, maxPageSize, testCaseMap, testEvidenceList, tutName, workbenchComplete
-
Constructor Summary
ConstructorDescriptionPerformanceWorkPad
(String localServerUserId, String localServerPassword, int maxPageSize, AuditLog auditLog, RepositoryPerformanceWorkbenchConfig configuration) Constructor receives key information from the configuration services. -
Method Summary
Modifier and TypeMethodDescriptionReturn the audit log for this server.int
Return the number of instances that should be created per type definition.Return the metadata collection id for the local repository.Return the connector to the local repository.int
Return the maximum number of search results that be processed for tests of the repository under test.Return the methods that should be skipped (if any) by the performance test.Accumulate the set of profile names registered with this work pad.Accumulate the evidences for each profilegetProfileResults
(String profileName) Accumulate the evidences for a given profile.Return the profiles that should be skipped (if any) by the performance test.Accumulate the summarized evidences for each profileReturn the external metadata collection ID that can be used for reference copies.long
Return the total number of entity instances created in the environment.long
Return the total number of entities found in the environment.long
Return the total number of relationship instances created in the environment.long
Return the total number of relationships found in the environment.Return the metadata collection id of the technology under test (or null if it is not known).Return the owning organization of the technology under test.Return the repository connector for the technology under test.Return the name of the server being tested.Return the server type of the technology under test.int
Return the amount of time (in seconds) to wait before executing different scenarios of the performance test.void
incrementEntitiesCreated
(int amount) Increment the total number of entities created by the test by the specified amount.void
incrementEntitiesFound
(int amount) Increment the total number of entities found by the specified amount.void
incrementRelationshipsCreated
(int amount) Increment the total number of relationships created by the test by the specified amount.void
incrementRelationshipsFound
(int amount) Increment the total number of relationships found by the specified amount.void
setLocalMetadataCollectionId
(String localMetadataCollectionId) Set up the metadata collection id for the local repository.void
setLocalRepositoryConnector
(OMRSRepositoryConnector localRepositoryConnector) Set up the connector to the local repository.void
setTutMetadataCollectionId
(String tutMetadataCollectionId) Set up the metadata collection id of the technology under test.void
setTutOrganization
(String tutOrganization) Set up the owning organization of the technology under test.void
setTutRepositoryConnector
(OMRSRepositoryConnector tutRepositoryConnector) Set up the repository connector for the technology under test.void
setTutServerType
(String tutServerType) Set up the server type of the technology under test.toString()
toString() JSON-styleMethods inherited from class org.odpi.openmetadata.conformance.beans.OpenMetadataConformanceWorkbenchWorkPad
addDiscoveredProperty, addNotSupportedCondition, addSuccessfulCondition, addUnsuccessfulCondition, getLocalServerPassword, getLocalServerUserId, getMaxPageSize, getWorkbenchDocURL, getWorkbenchId, getWorkbenchName, getWorkbenchStatus, getWorkbenchVersionNumber, processEvidence, registerActivity, setWorkbenchComplete
-
Constructor Details
-
PerformanceWorkPad
public PerformanceWorkPad(String localServerUserId, String localServerPassword, int maxPageSize, AuditLog auditLog, RepositoryPerformanceWorkbenchConfig configuration) Constructor receives key information from the configuration services.- Parameters:
localServerUserId
- userId that this server should use on requestslocalServerPassword
- password that this server should use on requestsmaxPageSize
- maximum number of elements that can be returned on a single callauditLog
- audit log for administrator messagesconfiguration
- configuration for this work pad/workbench
-
-
Method Details
-
getAuditLog
Return the audit log for this server.- Returns:
- audit log object.
-
getTutServerName
Return the name of the server being tested.- Returns:
- server name
-
getInstancesPerType
public int getInstancesPerType()Return the number of instances that should be created per type definition.- Returns:
- number of instances to create (per type definition)
-
getMaxSearchResults
public int getMaxSearchResults()Return the maximum number of search results that be processed for tests of the repository under test.- Returns:
- maximum number of search results to process
-
getWaitBetweenScenarios
public int getWaitBetweenScenarios()Return the amount of time (in seconds) to wait before executing different scenarios of the performance test. This would be useful for example, where you want to simulate a batch-load with an eventually-consistent search index.- Returns:
- number of seconds to wait between executing different performance test scenarios
-
getProfilesToSkip
Return the profiles that should be skipped (if any) by the performance test.- Returns:
- list of profile names to skip
-
getMethodsToSkip
Return the methods that should be skipped (if any) by the performance test.- Returns:
- list of method names to skip
-
getTutServerType
Return the server type of the technology under test. This is extracted from the registration events.- Returns:
- string type name
-
setTutServerType
Set up the server type of the technology under test. This is extracted from the registration events.- Parameters:
tutServerType
- string type name
-
getTutOrganization
Return the owning organization of the technology under test. This is extracted from the registration event.- Returns:
- string organization name
-
setTutOrganization
Set up the owning organization of the technology under test. This is extracted from the registration event.- Parameters:
tutOrganization
- string organization name
-
getTutMetadataCollectionId
Return the metadata collection id of the technology under test (or null if it is not known). This value is populated from the registration events.- Returns:
- string id
-
setTutMetadataCollectionId
Set up the metadata collection id of the technology under test. This value is populated from the registration events.- Parameters:
tutMetadataCollectionId
- string id
-
getTutRepositoryConnector
Return the repository connector for the technology under test.- Returns:
- OMRSRepositoryConnector
-
setTutRepositoryConnector
Set up the repository connector for the technology under test.- Parameters:
tutRepositoryConnector
- OMRSRepositoryConnector
-
getLocalMetadataCollectionId
Return the metadata collection id for the local repository.- Returns:
- string id
-
setLocalMetadataCollectionId
Set up the metadata collection id for the local repository.- Parameters:
localMetadataCollectionId
- string id
-
getLocalRepositoryConnector
Return the connector to the local repository.- Returns:
- OMRSRepositoryConnector
-
setLocalRepositoryConnector
Set up the connector to the local repository.- Parameters:
localRepositoryConnector
- access to the local repository (updated to generate events for the technology under test to respond to)
-
getProfileNames
Accumulate the set of profile names registered with this work pad.- Specified by:
getProfileNames
in classOpenMetadataConformanceWorkbenchWorkPad
- Returns:
- the profile names
-
getProfileResults
Accumulate the evidences for a given profile.- Specified by:
getProfileResults
in classOpenMetadataConformanceWorkbenchWorkPad
- Parameters:
profileName
- for which to obtain the detailed results- Returns:
- the test evidence organized by profile and requirement within profile
-
getProfileResults
Accumulate the evidences for each profile- Specified by:
getProfileResults
in classOpenMetadataConformanceWorkbenchWorkPad
- Returns:
- the test evidence organized by profile and requirement withing profile
-
getProfileSummaries
Accumulate the summarized evidences for each profile- Specified by:
getProfileSummaries
in classOpenMetadataConformanceWorkbenchWorkPad
- Returns:
- the summarized test evidence organized by profile and requirement withing profile
-
incrementEntitiesCreated
public void incrementEntitiesCreated(int amount) Increment the total number of entities created by the test by the specified amount.- Parameters:
amount
- by which to increment the count
-
getTotalEntitiesCreated
public long getTotalEntitiesCreated()Return the total number of entity instances created in the environment.- Returns:
- the number of entity instances created in the environment
-
incrementRelationshipsCreated
public void incrementRelationshipsCreated(int amount) Increment the total number of relationships created by the test by the specified amount.- Parameters:
amount
- by which to increment the count
-
getTotalRelationshipsCreated
public long getTotalRelationshipsCreated()Return the total number of relationship instances created in the environment.- Returns:
- the number of relationship instances created in the environment
-
incrementEntitiesFound
public void incrementEntitiesFound(int amount) Increment the total number of entities found by the specified amount.- Parameters:
amount
- by which to increment the count
-
getTotalEntitiesFound
public long getTotalEntitiesFound()Return the total number of entities found in the environment.- Returns:
- the number of entity instances found in the environment
-
incrementRelationshipsFound
public void incrementRelationshipsFound(int amount) Increment the total number of relationships found by the specified amount.- Parameters:
amount
- by which to increment the count
-
getTotalRelationshipsFound
public long getTotalRelationshipsFound()Return the total number of relationships found in the environment.- Returns:
- the number of relationship instances found in the environment
-
getReferenceCopyMetadataCollectionId
Return the external metadata collection ID that can be used for reference copies.- Returns:
- a generated external metadata collection ID that will be consistent across all tests
-
toString
toString() JSON-style- Overrides:
toString
in classOpenMetadataConformanceWorkbenchWorkPad
- Returns:
- string description
-