Class K8sController

java.lang.Object
io.continual.services.SimpleService
io.continual.flowcontrol.impl.deployer.BaseDeployer
io.continual.flowcontrol.impl.controller.k8s.K8sController
All Implemented Interfaces:
io.continual.flowcontrol.model.FlowControlDeploymentService, io.continual.flowcontrol.model.FlowControlRuntimeSystem, io.continual.services.Service

public class K8sController extends BaseDeployer implements io.continual.flowcontrol.model.FlowControlRuntimeSystem
This kubernetes controller is both a "deployer" and a "runtime system".
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.continual.flowcontrol.impl.deployer.BaseDeployer

    BaseDeployer.LocalDeploymentSpecBuilder

    Nested classes/interfaces inherited from interface io.continual.flowcontrol.model.FlowControlDeploymentService

    io.continual.flowcontrol.model.FlowControlDeploymentService.DeploymentSpecBuilder, io.continual.flowcontrol.model.FlowControlDeploymentService.RequestException, io.continual.flowcontrol.model.FlowControlDeploymentService.ResourceSpecBuilder, io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException

    Nested classes/interfaces inherited from interface io.continual.services.Service

    io.continual.services.Service.FailedToStart
  • Constructor Summary

    Constructors
    Constructor
    Description
    K8sController(io.continual.services.ServiceContainer sc, org.json.JSONObject rawConfig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.continual.flowcontrol.model.FlowControlRuntimeState
    getRuntimeState(io.continual.flowcontrol.model.FlowControlCallContext fccc, String deploymentId)
    Get the running process information
    protected io.continual.flowcontrol.model.FlowControlDeploymentRecord
    internalDeploy(io.continual.flowcontrol.model.FlowControlCallContext ctx, io.continual.flowcontrol.model.FlowControlDeploymentSpec ds, String configKey)
     
    protected void
    internalUndeploy(io.continual.flowcontrol.model.FlowControlCallContext ctx, String deploymentId, io.continual.flowcontrol.model.FlowControlDeploymentRecord deployment)
     

    Methods inherited from class io.continual.flowcontrol.impl.deployer.BaseDeployer

    deploy, deploymentBuilder, getDeployment, getDeploymentByConfigKey, getDeployments, getDeploymentsForJob, undeploy

    Methods inherited from class io.continual.services.SimpleService

    isRunning, onStartRequested, onStopRequested, requestFinish, requestFinishAndWait, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.continual.services.Service

    isRunning, requestFinish, start
  • Constructor Details

    • K8sController

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

    • internalDeploy

      protected io.continual.flowcontrol.model.FlowControlDeploymentRecord internalDeploy(io.continual.flowcontrol.model.FlowControlCallContext ctx, io.continual.flowcontrol.model.FlowControlDeploymentSpec ds, String configKey) throws io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException, io.continual.flowcontrol.model.FlowControlDeploymentService.RequestException
      Overrides:
      internalDeploy in class BaseDeployer
      Throws:
      io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
      io.continual.flowcontrol.model.FlowControlDeploymentService.RequestException
    • internalUndeploy

      protected void internalUndeploy(io.continual.flowcontrol.model.FlowControlCallContext ctx, String deploymentId, io.continual.flowcontrol.model.FlowControlDeploymentRecord deployment) throws io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
      Overrides:
      internalUndeploy in class BaseDeployer
      Throws:
      io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
    • getRuntimeState

      public io.continual.flowcontrol.model.FlowControlRuntimeState getRuntimeState(io.continual.flowcontrol.model.FlowControlCallContext fccc, String deploymentId) throws io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
      Get the running process information
      Specified by:
      getRuntimeState in interface io.continual.flowcontrol.model.FlowControlRuntimeSystem
      Parameters:
      fccc - the call context
      deploymentId - the ID of a deployment
      Returns:
      a runtime state
      Throws:
      io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException