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 DockerHandler dockerHandler  

    Fields inherited from class org.hortonmachine.gears.libs.modules.HMModel

    doProcess, doReset, gf, pm
  • Constructor Summary

    Constructors 
    Constructor Description
    GdalDockerModel()  
  • Method Summary

    Modifier and Type Method Description
    protected java.lang.String checkDockerInstall()
    Checks if docker client is initialized and if not, inits it.
    void closeClient()  
    void execCommand​(java.lang.String command)  
    protected java.lang.String hasImage()  
    protected void pullImage​(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm)  
    protected void removeImage​(java.lang.String id)  
    protected void startContainer​(java.lang.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • startContainer

      protected void startContainer​(java.lang.String volumePath) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • checkDockerInstall

      protected java.lang.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 java.lang.String hasImage()
    • pullImage

      protected void pullImage​(org.hortonmachine.gears.libs.monitor.IHMProgressMonitor pm) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • removeImage

      protected void removeImage​(java.lang.String id)
    • execCommand

      public void execCommand​(java.lang.String command) throws java.lang.Exception
      Throws:
      java.lang.Exception
    • closeClient

      public void closeClient() throws java.lang.Exception
      Throws:
      java.lang.Exception