Package org.axonframework.update.api
Record Class UpdateCheckRequest
java.lang.Object
java.lang.Record
org.axonframework.update.api.UpdateCheckRequest
- Record Components:
machineId- The unique identifier for the machine. This is a UUID that is generated and stored in the user's home directory.instanceId- The unique identifier for the instance of the application. This is a UUID that is generated for each JVM instance.osName- The name of the operating system (e.g., "Linux", "Windows").osVersion- The version of the operating system (e.g., "6.11.0-26-generic").osArch- The architecture of the operating system (e.g., "amd64", "x86_64").jvmVersion- The version of the Java Virtual Machine (JVM) (e.g., "17.0.2").jvmVendor- The vendor of the JVM (e.g., "AdoptOpenJDK", "Oracle").kotlinVersion- The version of Kotlin used in the application, or "none" if Kotlin is not used.libraries- A list of library versions used in the application, each represented by aArtifactobject containing the group ID, artifact ID, and version of the library.
@Internal
public record UpdateCheckRequest(@Nonnull String machineId, @Nonnull String instanceId, @Nonnull String osName, @Nonnull String osVersion, @Nonnull String osArch, @Nonnull String jvmVersion, @Nonnull String jvmVendor, @Nonnull String kotlinVersion, @Nonnull List<Artifact> libraries)
extends Record
Represents an UpdateChecker request, including machine and instance identifiers, operating system details, JVM
information, Kotlin version, and a list of library versions.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinstanceIdrecord component.Returns the value of thejvmVendorrecord component.Returns the value of thejvmVersionrecord component.Returns the value of thekotlinVersionrecord component.Returns the value of thelibrariesrecord component.Returns the value of themachineIdrecord component.osArch()Returns the value of theosArchrecord component.osName()Returns the value of theosNamerecord component.Returns the value of theosVersionrecord component.Converts the usage request into a query string format suitable for HTTP requests.final StringtoString()Returns a string representation of this record class.Converts the usage request into a user agent string format.
-
Constructor Details
-
UpdateCheckRequest
public UpdateCheckRequest(@Nonnull String machineId, @Nonnull String instanceId, @Nonnull String osName, @Nonnull String osVersion, @Nonnull String osArch, @Nonnull String jvmVersion, @Nonnull String jvmVendor, @Nonnull String kotlinVersion, @Nonnull List<Artifact> libraries) Creates an instance of aUpdateCheckRequestrecord class.- Parameters:
machineId- the value for themachineIdrecord componentinstanceId- the value for theinstanceIdrecord componentosName- the value for theosNamerecord componentosVersion- the value for theosVersionrecord componentosArch- the value for theosArchrecord componentjvmVersion- the value for thejvmVersionrecord componentjvmVendor- the value for thejvmVendorrecord componentkotlinVersion- the value for thekotlinVersionrecord componentlibraries- the value for thelibrariesrecord component
-
-
Method Details
-
toQueryString
Converts the usage request into a query string format suitable for HTTP requests. All values are properly URL encoded.- Returns:
- The query string representation of the usage request.
-
toUserAgent
Converts the usage request into a user agent string format.- Returns:
- The user agent string representation of the usage request.
-
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
public final int 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). -
machineId
Returns the value of themachineIdrecord component.- Returns:
- the value of the
machineIdrecord component
-
instanceId
Returns the value of theinstanceIdrecord component.- Returns:
- the value of the
instanceIdrecord component
-
osName
Returns the value of theosNamerecord component.- Returns:
- the value of the
osNamerecord component
-
osVersion
Returns the value of theosVersionrecord component.- Returns:
- the value of the
osVersionrecord component
-
osArch
Returns the value of theosArchrecord component.- Returns:
- the value of the
osArchrecord component
-
jvmVersion
Returns the value of thejvmVersionrecord component.- Returns:
- the value of the
jvmVersionrecord component
-
jvmVendor
Returns the value of thejvmVendorrecord component.- Returns:
- the value of the
jvmVendorrecord component
-
kotlinVersion
Returns the value of thekotlinVersionrecord component.- Returns:
- the value of the
kotlinVersionrecord component
-
libraries
Returns the value of thelibrariesrecord component.- Returns:
- the value of the
librariesrecord component
-