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 Details

  • Constructor Details

    • GdalDockerModel

      public GdalDockerModel()
  • Method Details

    • startContainer

      protected void startContainer(String volumePath) throws Exception
      Throws:
      Exception
    • 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)
    • execCommand

      public void execCommand(String command) throws Exception
      Throws:
      Exception
    • closeClient

      public void closeClient() throws Exception
      Throws:
      Exception