Commit d9fa78f9 by Nepxion

增加图形化灰度发布功能

parent 08376811
...@@ -995,39 +995,20 @@ public class ServiceTopology extends AbstractTopology { ...@@ -995,39 +995,20 @@ public class ServiceTopology extends AbstractTopology {
} }
public boolean setFromUI() { public boolean setFromUI() {
int groupStartX = 0;
int groupStartY = 0;
int groupHorizontalGap = 0;
int groupVerticalGap = 0;
int nodeStartX = 0;
int nodeStartY = 0;
int nodeHorizontalGap = 0;
int nodeVerticalGap = 0;
try { try {
groupStartX = Integer.parseInt(groupStartXTextField.getText()); groupLocationEntity.setStartX(Integer.parseInt(groupStartXTextField.getText()));
groupStartY = Integer.parseInt(groupStartYTextField.getText()); groupLocationEntity.setStartY(Integer.parseInt(groupStartYTextField.getText()));
groupHorizontalGap = Integer.parseInt(groupHorizontalGapTextField.getText()); groupLocationEntity.setHorizontalGap(Integer.parseInt(groupHorizontalGapTextField.getText()));
groupVerticalGap = Integer.parseInt(groupVerticalGapTextField.getText()); groupLocationEntity.setVerticalGap(Integer.parseInt(groupVerticalGapTextField.getText()));
nodeStartX = Integer.parseInt(nodeStartXTextField.getText()); nodeLocationEntity.setStartX(Integer.parseInt(nodeStartXTextField.getText()));
nodeStartY = Integer.parseInt(nodeStartYTextField.getText()); nodeLocationEntity.setStartY(Integer.parseInt(nodeStartYTextField.getText()));
nodeHorizontalGap = Integer.parseInt(nodeHorizontalGapTextField.getText()); nodeLocationEntity.setHorizontalGap(Integer.parseInt(nodeHorizontalGapTextField.getText()));
nodeVerticalGap = Integer.parseInt(nodeVerticalGapTextField.getText()); nodeLocationEntity.setVerticalGap(Integer.parseInt(nodeVerticalGapTextField.getText()));
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
return false; return false;
} }
groupLocationEntity.setStartX(groupStartX);
groupLocationEntity.setStartY(groupStartY);
groupLocationEntity.setHorizontalGap(groupHorizontalGap);
groupLocationEntity.setVerticalGap(groupVerticalGap);
nodeLocationEntity.setStartX(nodeStartX);
nodeLocationEntity.setStartY(nodeStartY);
nodeLocationEntity.setHorizontalGap(nodeHorizontalGap);
nodeLocationEntity.setVerticalGap(nodeVerticalGap);
return true; return true;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment