Class KubernetesCreationInfo

java.lang.Object
com.illumon.iris.db.tables.remotequery.process.kubernetes.KubernetesCreationInfo

public class KubernetesCreationInfo extends Object
Simple container class with Jackson properties for serialization and deserialization.
  • Constructor Details

    • KubernetesCreationInfo

      public KubernetesCreationInfo()
  • Method Details

    • getCpuShares

      public Double getCpuShares()
    • setCpuShares

      public void setCpuShares(Double cpuShares)
    • getContainerImage

      public String getContainerImage()
    • setContainerImage

      public void setContainerImage(String containerImage)
    • getPodTemplate

      public String getPodTemplate()
    • setPodTemplate

      public void setPodTemplate(String podTemplate)
    • getPvcName

      public String getPvcName()
    • setPvcName

      public void setPvcName(String pvcName)
    • getPvcPvName

      public String getPvcPvName()
    • setPvcPvName

      public void setPvcPvName(String pvcPvName)
    • getPvcStorageClass

      public String getPvcStorageClass()
    • setPvcStorageClass

      public void setPvcStorageClass(String pvcStorageClass)
    • getPvcStorageSize

      public String getPvcStorageSize()
    • setPvcStorageSize

      public void setPvcStorageSize(String pvcStorageSize)
    • getPvcMountPath

      public String getPvcMountPath()
    • setPvcMountPath

      public void setPvcMountPath(String pvcMountPath)
    • getPqSerial

      public String getPqSerial()
    • setPqSerial

      public void setPqSerial(String pqSerial)
    • getPqName

      public String getPqName()
    • setPqName

      public void setPqName(String pqName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toPrettyString

      public String 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

      public static KubernetesCreationInfo fromJson(String kubernetesCreationJson) throws IOException
      Throws:
      IOException
    • fromJson

      public static KubernetesCreationInfo fromJson(io.deephaven.shadow.jackson.com.fasterxml.jackson.databind.JsonNode kubernetesCreationJson)
    • fromJsonNested

      public static KubernetesCreationInfo fromJsonNested(String kubernetesCreationJson, String key)
      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