Record Class IntegrationConfiguration
java.lang.Object
java.lang.Record
de.cuioss.benchmarking.common.config.IntegrationConfiguration
public record IntegrationConfiguration(String integrationServiceUrl, String keycloakUrl, String metricsUrl)
extends Record
Configuration for integration benchmark scenarios.
Handles URLs and connection details for external services used in integration testing.
Example usage:
var integrationConfig = IntegrationConfiguration.fromProperties();
String serviceUrl = integrationConfig.integrationServiceUrl();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for IntegrationConfiguration. -
Constructor Summary
ConstructorsConstructorDescriptionIntegrationConfiguration(String integrationServiceUrl, String keycloakUrl, String metricsUrl) Creates an instance of aIntegrationConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder for IntegrationConfiguration.final booleanIndicates whether some other object is "equal to" this one.static IntegrationConfigurationCreates integration configuration from system properties.final inthashCode()Returns a hash code value for this object.Returns the value of theintegrationServiceUrlrecord component.Returns the value of thekeycloakUrlrecord component.Returns the value of themetricsUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IntegrationConfiguration
public IntegrationConfiguration(String integrationServiceUrl, String keycloakUrl, String metricsUrl) Creates an instance of aIntegrationConfigurationrecord class.- Parameters:
integrationServiceUrl- the value for theintegrationServiceUrlrecord componentkeycloakUrl- the value for thekeycloakUrlrecord componentmetricsUrl- the value for themetricsUrlrecord component
-
-
Method Details
-
fromProperties
Creates integration configuration from system properties. All integration URLs are required for integration benchmarks to work properly.- Returns:
- IntegrationConfiguration with values from properties
- Throws:
IllegalArgumentException- if any required property is missing
-
builder
Creates a builder for IntegrationConfiguration.- Returns:
- a new builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
integrationServiceUrl
Returns the value of theintegrationServiceUrlrecord component.- Returns:
- the value of the
integrationServiceUrlrecord component
-
keycloakUrl
Returns the value of thekeycloakUrlrecord component.- Returns:
- the value of the
keycloakUrlrecord component
-
metricsUrl
Returns the value of themetricsUrlrecord component.- Returns:
- the value of the
metricsUrlrecord component
-