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
FieldsFields inherited from class org.hortonmachine.gears.libs.modules.HMModel
doProcess, doReset, gf, pm -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringChecks if docker client is initialized and if not, inits it.voidvoidexecCommand(String command) protected StringhasImage()protected voidpullImage(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm) protected voidremoveImage(String id) protected voidstartContainer(String volumePath) Methods inherited from class org.hortonmachine.gears.libs.modules.HMModel
checkCancel, checkFileExists, checkNull, checkWorkingFolderInPath, concatOr, dumpRaster, dumpVector, getDefaultThreadsNum, getRaster, getVector, help, isCanceled, template
-
Field Details
-
dockerHandler
-
-
Constructor Details
-
GdalDockerModel
public GdalDockerModel()
-
-
Method Details
-
startContainer
- Throws:
Exception
-
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
-
pullImage
protected void pullImage(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm) throws Exception - Throws:
Exception
-
removeImage
-
execCommand
- Throws:
Exception
-
closeClient
- Throws:
Exception
-