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
Fields Modifier and Type Field Description protected DockerHandlerdockerHandler
-
Constructor Summary
Constructors Constructor Description PdalDockerModel()
-
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)FilegetPipelineFile(File workspaceFile, String filterJson)StringgetPipelineJson(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)
-
-
-
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)
-
getPipelineFile
public File getPipelineFile(File workspaceFile, String filterJson) throws IOException
- Throws:
IOException
-
-