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
ConstructorsConstructorDescriptionKubernetesCreationInfo
(Double cpuShares, String containerImage, String podTemplate) -
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:io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode
toJson()
toString()
-
Constructor Details
-
KubernetesCreationInfo
-
-
Method Details
-
getContainerImage
-
getPodTemplate
-
toString
-
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