Package org.jumpmind.symmetric.util
Class ModuleManager
java.lang.Object
org.jumpmind.symmetric.util.ModuleManager
-
Method Summary
Modifier and TypeMethodDescriptionprotected intcalculateTotalDownloadSize(List<MavenArtifact> artifacts) protected voidconvertToModule(File engineFile, List<String> currentModules) voidprotected voidcopy(InputStream in, OutputStream out, int allDownloadSize, IProgressListener listener) protected HttpURLConnectiongetHttpUrlConnection(String urlString, String method) static ModuleManagervoidvoidinstall(String moduleId, IProgressListener listener) voidprotected voidinstallZip(String moduleId, String fileName) list()listAll()listDependencies(String moduleId) protected StringprepareModulesDir(String sysPropName, String defaultDir) voidvoidvoidvoid
-
Method Details
-
getInstance
- Throws:
ModuleException
-
prepareModulesDir
-
install
- Throws:
ModuleException
-
install
- Throws:
ModuleException
-
installAll
- Throws:
ModuleException
-
copy
protected void copy(InputStream in, OutputStream out, int allDownloadSize, IProgressListener listener) throws IOException - Throws:
IOException
-
installZip
- Throws:
ModuleException
-
calculateTotalDownloadSize
-
getHttpUrlConnection
protected HttpURLConnection getHttpUrlConnection(String urlString, String method) throws IOException - Throws:
IOException
-
listUpgrade
- Throws:
ModuleException
-
upgrade
- Throws:
ModuleException
-
upgradeAll
- Throws:
ModuleException
-
convertToModules
public void convertToModules() -
convertToModule
-
remove
- Throws:
ModuleException
-
removeAll
- Throws:
ModuleException
-
list
-
listFiles
- Throws:
ModuleException
-
listDependencies
- Throws:
ModuleException
-
listAll
-