Package org.hortonmachine.modules.docker
Class GdalDockerModel
- java.lang.Object
-
- org.hortonmachine.gears.libs.modules.HMModel
-
- org.hortonmachine.modules.docker.GdalDockerModel
-
- Direct Known Subclasses:
GdalInfo,GdalInstaller,GdalRaster2TiffConverter,GdalTilesGeopackageCreator
public class GdalDockerModel extends org.hortonmachine.gears.libs.modules.HMModel- Author:
- hydrologis
-
-
Field Summary
Fields Modifier and Type Field Description protected DockerHandlerdockerHandler
-
Constructor Summary
Constructors Constructor Description GdalDockerModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcheckDockerInstall()Checks if docker client is initialized and if not, inits it.voidcloseClient()voidexecCommand(String command)protected StringhasImage()protected voidpullImage(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm)protected voidremoveImage(String id)protected voidstartContainer(String volumePath)
-
-
-
Field Detail
-
dockerHandler
protected DockerHandler dockerHandler
-
-
Method Detail
-
checkDockerInstall
protected String checkDockerInstall()
Checks if docker client is initialized and if not, inits it. If it can't init it: it returns an error string, else null.
-
hasImage
protected String hasImage()
-
pullImage
protected void pullImage(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm) throws Exception- Throws:
Exception
-
removeImage
protected void removeImage(String id)
-
-