Package org.axonframework.updates.api
Class UpdateCheckRequest
java.lang.Object
org.axonframework.updates.api.UpdateCheckRequest
Represents an UpdateChecker request, including machine and instance identifiers, operating system details, JVM
information, Kotlin version, and a list of library versions.
- Since:
- 4.12.0
- Author:
- Mitchell Herrijgers
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateCheckRequest(String machineId, String instanceId, String osName, String osVersion, String osArch, String jvmVersion, String jvmVendor, String kotlinVersion, List<Artifact> libraries) Constructs anUpdateCheckRequestwith the givenmachineId,instanceId,osName,osVersion,osArch,jvmVersion,jvmVendor,kotlinVersion, andlibraries. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()Returns the instance identifier of this update check request.Returns the JVM vendor of this update check request.Returns the JVM version of this update check request.Returns the kotlin version of this update check request.Returns the collection oflibrariesof this update check request.Returns the machine identifier of this update check request.osArch()Returns the operating system architecture of this update check request.osName()Returns the operating system name of this update check request.Returns the operating system version of this update check request.Converts the usage request into a query string format suitable for HTTP requests.toString()Converts the usage request into a user agent string format.
-
Constructor Details
-
UpdateCheckRequest
public UpdateCheckRequest(String machineId, String instanceId, String osName, String osVersion, String osArch, String jvmVersion, String jvmVendor, String kotlinVersion, List<Artifact> libraries) Constructs anUpdateCheckRequestwith the givenmachineId,instanceId,osName,osVersion,osArch,jvmVersion,jvmVendor,kotlinVersion, andlibraries.- Parameters:
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.
-
-
Method Details
-
machineId
Returns the machine identifier of this update check request.- Returns:
- The machine identifier of this update check request.
-
instanceId
Returns the instance identifier of this update check request.- Returns:
- The instance identifier of this update check request.
-
osName
Returns the operating system name of this update check request.- Returns:
- The operating system name of this update check request.
-
osVersion
Returns the operating system version of this update check request.- Returns:
- The operating system version of this update check request.
-
osArch
Returns the operating system architecture of this update check request.- Returns:
- The operating system architecture of this update check request.
-
jvmVersion
Returns the JVM version of this update check request.- Returns:
- The JVM version of this update check request.
-
jvmVendor
Returns the JVM vendor of this update check request.- Returns:
- The JVM vendor of this update check request.
-
kotlinVersion
Returns the kotlin version of this update check request.- Returns:
- The kotlin version of this update check request.
-
libraries
Returns the collection oflibrariesof this update check request.- Returns:
- The collection of
librariesof this update check request.
-
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.
-
equals
-
hashCode
public int hashCode() -
toString
-