Package uk.co.ractf.polaris.api.pod
Class ResourceQuota
- java.lang.Object
-
- uk.co.ractf.polaris.api.common.JsonRepresentable
-
- uk.co.ractf.polaris.api.pod.ResourceQuota
-
public class ResourceQuota extends JsonRepresentable
Represents the resource quote for a pod{ "memory": 512000000, "swap": 0, "nanocpu": 100000000 }
-
-
Constructor Summary
Constructors Constructor Description ResourceQuota(java.lang.Long memory, java.lang.Long swap, java.lang.Long nanocpu)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.Long
getMemory()
java.lang.Long
getNanocpu()
java.lang.Long
getSwap()
int
hashCode()
-
Methods inherited from class uk.co.ractf.polaris.api.common.JsonRepresentable
parse, toJsonString
-
-
-
-
Method Detail
-
getMemory
public java.lang.Long getMemory()
-
getSwap
public java.lang.Long getSwap()
-
getNanocpu
public java.lang.Long getNanocpu()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-