Package org.hortonmachine.modules.docker
Class PdalDockerModel
java.lang.Object
org.hortonmachine.gears.libs.modules.HMModel
org.hortonmachine.modules.docker.PdalDockerModel
- Direct Known Subclasses:
PdalConverterLas2Gltf,PdalFilterElm,PdalFilterOutliers,PdalFilterPmf,PdalFilterRange,PdalFilterReturns,PdalFilterSmrf,PdalInfo,PdalInstaller
public class PdalDockerModel
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) getPipelineFile(File workspaceFile, String filterJson) getPipelineJson(String inName, String outName, org.json.JSONObject... filters) 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
-
PdalDockerModel
public PdalDockerModel()
-
-
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
-
getPipelineFile
- Throws:
IOException
-
getPipelineJson
-