Package com.eka.middleware.pub.util
Class AutoUpdate
java.lang.Object
com.eka.middleware.pub.util.AutoUpdate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
calculateFileChecksum
(String filePath) static String
checkForUpdate
(DataPipeline dataPipeline) static Boolean
compareDigest
(String filePath, String url) static void
static void
createRestorePoint
(String buildName, DataPipeline dataPipeline) static boolean
importURLAliases
(String UrlAliasFilepath, DataPipeline dp) static String
jsonValueFetch
(String location, String variableName) static boolean
moveFolder
(String sourceDir, String destDir) static String
readJsonFromUrl
(String urlString) static String
static void
unzip
(String zipFilePath, String destDir, DataPipeline dp) static void
updateTenant
(String version, DataPipeline dataPipeline) static String
updateTenantAsync
(String version, DataPipeline dataPipeline)
-
Constructor Details
-
AutoUpdate
public AutoUpdate()
-
-
Method Details
-
importURLAliases
- Throws:
Exception
-
unzip
- Throws:
Exception
-
createRestorePoint
- Throws:
Exception
-
updateTenant
- Throws:
Exception
-
createFoldersIfNotExist
-
readJsonFromUrl
- Throws:
IOException
-
jsonValueFetch
- Throws:
IOException
-
checkForUpdate
- Throws:
Exception
-
calculateFileChecksum
- Throws:
Exception
-
compareDigest
- Throws:
Exception
-
returnTenantUpdateUrl
- Throws:
Exception
-
updateTenantAsync
- Throws:
Exception
-
moveFolder
- Throws:
IOException
-