Class KubernetesCreationInfo
java.lang.Object
com.illumon.iris.db.tables.remotequery.process.kubernetes.KubernetesCreationInfo
Simple container class with Jackson properties for serialization and deserialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KubernetesCreationInfofromJson(io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode kubernetesCreationJson) static KubernetesCreationInfostatic KubernetesCreationInfofromJsonNested(String kubernetesCreationJson, String key) Used when KubernetesCreationInfo object is under a key in the json:voidsetContainerImage(String containerImage) voidsetCpuShares(Double cpuShares) voidsetPodTemplate(String podTemplate) voidvoidsetPqSerial(String pqSerial) voidsetPvcMountPath(String pvcMountPath) voidsetPvcName(String pvcName) voidsetPvcPvName(String pvcPvName) voidsetPvcStorageClass(String pvcStorageClass) voidsetPvcStorageSize(String pvcStorageSize) io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNodetoJson()toString()
-
Constructor Details
-
KubernetesCreationInfo
public KubernetesCreationInfo()
-
-
Method Details
-
getContainerImage
-
setContainerImage
-
getPodTemplate
-
setPodTemplate
-
getPvcName
-
setPvcName
-
getPvcPvName
-
setPvcPvName
-
getPvcStorageClass
-
setPvcStorageClass
-
getPvcStorageSize
-
setPvcStorageSize
-
getPvcMountPath
-
setPvcMountPath
-
getPqSerial
-
setPqSerial
-
getPqName
-
setPqName
-
toString
-
toPrettyString
-
toJson
public io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode toJson() throws io.deephaven.shadow.jackson.com.fasterxml.jackson.core.JsonProcessingException- Throws:
io.deephaven.shadow.jackson.com.fasterxml.jackson.core.JsonProcessingException
-
fromJson
- Throws:
IOException
-
fromJson
public static KubernetesCreationInfo fromJson(io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode kubernetesCreationJson) -
fromJsonNested
Used when KubernetesCreationInfo object is under a key in the json:{ "someKey": { "cpuShares": 0.5, "containerImage": "my-image:latest" "podTemplate: "my-template.yaml" } }- Parameters:
kubernetesCreationJson- Json string that may contain an object with k8s creation info.key- The key in the Json object under which the object is found- Returns:
- KubernetesCreationInfo object with values given in json string, or an empty KCI if it is not present in the json.
- Throws:
IllegalArgumentException- if kubernetesCreationJson cannot be parsed