YARN-6792. Incorrect XML convertion in NodeIDsInfo and LabelsToNodesInfo. Contributed by Giovanni Matteo Fumarola.
This commit is contained in:
parent
43f0503286
commit
228ddaa31d
|
@ -26,7 +26,10 @@ import javax.xml.bind.annotation.XmlAccessorType;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
@XmlRootElement(name = "labelsToNodesInfo")
|
/**
|
||||||
|
* XML element uses to represent NodeIds' list.
|
||||||
|
*/
|
||||||
|
@XmlRootElement(name = "nodeIDsInfo")
|
||||||
@XmlAccessorType(XmlAccessType.FIELD)
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
public class NodeIDsInfo {
|
public class NodeIDsInfo {
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,10 @@ public class LabelsToNodesInfo {
|
||||||
public LabelsToNodesInfo() {
|
public LabelsToNodesInfo() {
|
||||||
} // JAXB needs this
|
} // JAXB needs this
|
||||||
|
|
||||||
|
public LabelsToNodesInfo(Map<NodeLabelInfo, NodeIDsInfo> labelsToNodes) {
|
||||||
|
this.labelsToNodes = labelsToNodes;
|
||||||
|
}
|
||||||
|
|
||||||
public Map<NodeLabelInfo, NodeIDsInfo> getLabelsToNodes() {
|
public Map<NodeLabelInfo, NodeIDsInfo> getLabelsToNodes() {
|
||||||
return labelsToNodes;
|
return labelsToNodes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue