Class JsonDataImageMapper

java.lang.Object
io.continual.flowcontrol.impl.controller.k8s.impl.JsonDataImageMapper
All Implemented Interfaces:
ContainerImageMapper
Direct Known Subclasses:
InlineImageMapper, ModelBackedImageMapper

public abstract class JsonDataImageMapper extends Object implements ContainerImageMapper
  • Constructor Details

    • JsonDataImageMapper

      public JsonDataImageMapper(io.continual.services.ServiceContainer sc, org.json.JSONObject config) throws io.continual.builder.Builder.BuildFailure
      Throws:
      io.continual.builder.Builder.BuildFailure
  • Method Details

    • getImageName

      public String getImageName(io.continual.flowcontrol.model.FlowControlJob.FlowControlRuntimeSpec rs) throws io.continual.flowcontrol.model.FlowControlDeploymentService.RequestException, io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
      Description copied from interface: ContainerImageMapper
      Return a container image spec (e.g. "package:version") given a runtime spec.
      Specified by:
      getImageName in interface ContainerImageMapper
      Parameters:
      rs -
      Returns:
      a string suitable as a container name
      Throws:
      io.continual.flowcontrol.model.FlowControlDeploymentService.RequestException
      io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
    • getMap

      protected abstract List<JsonDataImageMapper.Rule> getMap() throws io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
      Throws:
      io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
    • readMapData

      protected List<JsonDataImageMapper.Rule> readMapData(org.json.JSONObject data) throws io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
      Throws:
      io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException