Package org.jumpmind.symmetric.util
Class ModuleManager
java.lang.Object
org.jumpmind.symmetric.util.ModuleManager
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
calculateTotalDownloadSize
(List<MavenArtifact> artifacts) protected void
convertToModule
(File engineFile, List<String> currentModules) void
protected void
copy
(InputStream in, OutputStream out, int allDownloadSize, IProgressListener listener) protected HttpURLConnection
getHttpUrlConnection
(String urlString, String method) static ModuleManager
void
void
install
(String moduleId, IProgressListener listener) void
protected void
installZip
(String moduleId, String fileName) list()
listAll()
listDependencies
(String moduleId) protected String
prepareModulesDir
(String sysPropName, String defaultDir) void
void
void
void
-
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
-