java.lang.Object
org.tentackle.update.UpdateInfo
- All Implemented Interfaces:
Serializable
Update info sent back to the client.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the checksum hash to verify the download.longgetSize()Gets the size of the ZIP file.Gets the name of the file to perform the update.getUrl()Gets the URL to download the update.Gets the new application version.
Just an info that can be shown to the user.toString()
-
Constructor Details
-
UpdateInfo
Creates the update info.
The internal state is encrypted if aCryptoris configured.- Parameters:
version- the new application versionurl- the URL of the ZIP file the client must downloadchecksum- the checksum hash to verify the downloaded filesize- the size of the ZIP fileupdateExecutor- the filename to execute to perform the update
-
-
Method Details
-
getVersion
Gets the new application version.
Just an info that can be shown to the user.- Returns:
- the new version
-
getUrl
Gets the URL to download the update.- Returns:
- the URL pointing to the ZIP file, usually via http or https
-
getChecksum
Gets the checksum hash to verify the download.- Returns:
- the checksum hash
-
getSize
public long getSize()Gets the size of the ZIP file.- Returns:
- the size
-
getUpdateExecutor
Gets the name of the file to perform the update.- Returns:
- the updater, usually
"update.sh"or"update.cmd", depending on the platform
-
toString
-