@Singleton
public class JatosUpdater
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
cancelUpdate() |
java.util.concurrent.CompletionStage<?> |
downloadFromGitHubAndUnzip(boolean dry) |
java.util.concurrent.CompletionStage<com.fasterxml.jackson.databind.JsonNode> |
getReleaseInfo(java.lang.String version,
boolean allowPreReleases) |
void |
setUpdateStateFailed() |
void |
setUpdateStateSuccess() |
void |
updateAndRestart(boolean backupAll)
Backups, updates files and restarts JATOS
|
public void setUpdateStateSuccess()
public void setUpdateStateFailed()
public java.util.concurrent.CompletionStage<com.fasterxml.jackson.databind.JsonNode> getReleaseInfo(java.lang.String version, boolean allowPreReleases)
public void cancelUpdate()
public java.util.concurrent.CompletionStage<?> downloadFromGitHubAndUnzip(boolean dry)
public void updateAndRestart(boolean backupAll) throws java.io.IOException
backupAll
- If true, everything in the JATOS directory will be copied into a backup folder. If false, only
the conf directory and the loader scripts.java.io.IOException