static class DecommissionPlanFactory.PodKey extends java.lang.Object implements java.lang.Comparable<DecommissionPlanFactory.PodKey>
SortedMap of pods to be decommissioned.| Constructor and Description |
|---|
PodKey(java.lang.String podType,
int podIndex,
java.util.List<java.lang.String> orderedPodTypes)
Constructor for
DecommissionPlanFactory.PodKey. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DecommissionPlanFactory.PodKey other)
Orders the pod according to the following rules:
Pod types at the bottom of the ServiceSpec (lower podTypeIndex) have priority over ones at the top.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getPodName() |
int |
hashCode() |
java.lang.String |
toString() |
PodKey(java.lang.String podType,
int podIndex,
java.util.List<java.lang.String> orderedPodTypes)
throws TaskException
DecommissionPlanFactory.PodKey.podType - The type of pod. See: PodSpec.getType()podIndex - The index of the pod instance. See: PodInstance.getIndex().orderedPodTypes - the list of known pod types in order of priority (reverse of ServiceSpec ordering)TaskExceptionpublic int compareTo(DecommissionPlanFactory.PodKey other)
compareTo in interface java.lang.Comparable<DecommissionPlanFactory.PodKey>public java.lang.String getPodName()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object