public void setVmId(String vmId) {
this.vmId = vmId;
}
private void upgradeNode(NodeEntity node) {
ClusterUpgradeService upgradeService = new ClusterUpgradeService();
upgradeService.setClusterEntityMgr(clusterEntityMgr);
String serverVersion = clusterEntityMgr.getServerVersion();
String vmName = node.getVmName();
if (node.needUpgrade(serverVersion) && node.canBeUpgrade()) {
logger.debug("vm " + vmName + "is going to upgrade");
clusterEntityMgr.updateNodeActionForUpgrade(node, Constants.NODE_ACTION_UPGRADING);