Class StatefulSetDeployer
java.lang.Object
io.continual.flowcontrol.impl.controller.k8s.elements.StatefulSetDeployer
- All Implemented Interfaces:
FlowControlK8sElement
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.continual.flowcontrol.impl.controller.k8s.FlowControlK8sElement
FlowControlK8sElement.ElementDeployException, FlowControlK8sElement.ImagePullPolicy, FlowControlK8sElement.K8sDeployContext, FlowControlK8sElement.K8sInstallationContext -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface io.continual.flowcontrol.impl.controller.k8s.FlowControlK8sElement
kSetting_TemplateResource -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeploy this element with the given context.io.continual.flowcontrol.model.FlowControlRuntimeStateIf appropriate, get the runtime state associated with this element.booleanIs this element deployed?booleanReturn true if this element is a runtime provider.toString()voidUndeploy this element given the namespace and deployment ID
-
Field Details
-
kSetting_InitContainerImage
- See Also:
-
kDefault_InitContainerImage
- See Also:
-
kSetting_ConfigMountPath
- See Also:
-
kDefault_ConfigMountPath
- See Also:
-
kSetting_DeploymentEnvSettings
- See Also:
-
kSetting_PersistenceMountPath
- See Also:
-
kDefault_PersistenceMountPath
- See Also:
-
kSetting_PersistenceSize
- See Also:
-
kDefault_PersistenceSize
- See Also:
-
kSetting_PersistenceStorageClass
- See Also:
-
kDefault_PersistenceStorageClass
- See Also:
-
kSetting_LoggingMountPath
- See Also:
-
kDefault_LoggingMountPath
- See Also:
-
kSetting_LoggingSize
- See Also:
-
kDefault_LoggingSize
- See Also:
-
kSetting_LoggingStorageClass
- See Also:
-
kDefault_LoggingStorageClass
- See Also:
-
-
Constructor Details
-
StatefulSetDeployer
public StatefulSetDeployer(org.json.JSONObject config) throws io.continual.builder.Builder.BuildFailure - Throws:
io.continual.builder.Builder.BuildFailure
-
-
Method Details
-
toString
-
deploy
public void deploy(FlowControlK8sElement.K8sDeployContext ctx) throws FlowControlK8sElement.ElementDeployException Description copied from interface:FlowControlK8sElementDeploy this element with the given context. Elements should have names based on the deployment ID because that's what's presented during undeploy.- Specified by:
deployin interfaceFlowControlK8sElement- Parameters:
ctx-- Throws:
FlowControlK8sElement.ElementDeployException
-
isDeployed
public boolean isDeployed(FlowControlK8sElement.K8sInstallationContext ctx) throws FlowControlK8sElement.ElementDeployException Description copied from interface:FlowControlK8sElementIs this element deployed?- Specified by:
isDeployedin interfaceFlowControlK8sElement- Parameters:
ctx-- Throws:
FlowControlK8sElement.ElementDeployException
-
isRuntimeProvider
public boolean isRuntimeProvider()Description copied from interface:FlowControlK8sElementReturn true if this element is a runtime provider. Generally the statefulset element would return true and anything else would return false;- Specified by:
isRuntimeProviderin interfaceFlowControlK8sElement- Returns:
- true if this element is a runtime provider
-
getRuntimeState
public io.continual.flowcontrol.model.FlowControlRuntimeState getRuntimeState(FlowControlK8sElement.K8sInstallationContext ctx) throws FlowControlK8sElement.ElementDeployException Description copied from interface:FlowControlK8sElementIf appropriate, get the runtime state associated with this element. If the element is not current deployed, return null.- Specified by:
getRuntimeStatein interfaceFlowControlK8sElement- Parameters:
ctx-- Returns:
- a runtime state or null
- Throws:
FlowControlK8sElement.ElementDeployException
-
undeploy
public void undeploy(FlowControlK8sElement.K8sInstallationContext ctx) throws FlowControlK8sElement.ElementDeployException Description copied from interface:FlowControlK8sElementUndeploy this element given the namespace and deployment ID- Specified by:
undeployin interfaceFlowControlK8sElement- Parameters:
ctx-- Throws:
FlowControlK8sElement.ElementDeployException
-