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 KubernetesCreationInfo
fromJson
(io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode kubernetesCreationJson) static KubernetesCreationInfo
static KubernetesCreationInfo
fromJsonNested
(String kubernetesCreationJson, String key) Used when KubernetesCreationInfo object is under a key in the json:void
setContainerImage
(String containerImage) void
setCpuShares
(Double cpuShares) void
setPodTemplate
(String podTemplate) void
void
setPqSerial
(String pqSerial) void
setPvcMountPath
(String pvcMountPath) void
setPvcName
(String pvcName) void
setPvcPvName
(String pvcPvName) void
setPvcStorageClass
(String pvcStorageClass) void
setPvcStorageSize
(String pvcStorageSize) io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode
toJson()
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