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.LocalDeploymentSpecBuilderNested 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.ServiceExceptionNested classes/interfaces inherited from interface io.continual.services.Service
io.continual.services.Service.FailedToStart -
Constructor Summary
ConstructorsConstructorDescriptionK8sController(io.continual.services.ServiceContainer sc, org.json.JSONObject rawConfig) -
Method Summary
Modifier and TypeMethodDescriptionio.continual.flowcontrol.model.FlowControlRuntimeStategetRuntimeState(io.continual.flowcontrol.model.FlowControlCallContext fccc, String deploymentId) Get the running process informationprotected io.continual.flowcontrol.model.FlowControlDeploymentRecordinternalDeploy(io.continual.flowcontrol.model.FlowControlCallContext ctx, io.continual.flowcontrol.model.FlowControlDeploymentSpec ds, String configKey) protected voidinternalUndeploy(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, undeployMethods inherited from class io.continual.services.SimpleService
isRunning, onStartRequested, onStopRequested, requestFinish, requestFinishAndWait, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
internalDeployin classBaseDeployer- Throws:
io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceExceptionio.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:
internalUndeployin classBaseDeployer- 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:
getRuntimeStatein interfaceio.continual.flowcontrol.model.FlowControlRuntimeSystem- Parameters:
fccc- the call contextdeploymentId- the ID of a deployment- Returns:
- a runtime state
- Throws:
io.continual.flowcontrol.model.FlowControlDeploymentService.ServiceException
-