Skip to content

Commit

Permalink
added interface to new WebUI for ContainerManager
Browse files Browse the repository at this point in the history
Changes still required in the moveContainer method
  • Loading branch information
duchon committed Nov 24, 2016
1 parent 0bad1d4 commit 4a2c64d
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -916,13 +916,13 @@ public boolean removeContainer(String containerID) {
*/
List<Entry<Container, EdgeType>> children = new ArrayList<Entry<Container, EdgeType>>();
children = this.getChildrenWithEdgeTypes(containerID);
Array[] movables = {"WING","DEVICE","DEVICEGATEWAY","UNKNOWN"};
List movables = Arrays.asList("WING","DEVICE","DEVICEGATEWAY","UNKNOWN");

if (getRealParentContainer(containerID) != null) {
for (Entry<Container, EdgeType> entry : children) {
if (entry.getValue().equals(EdgeType.REAL)) {
String containerType = entry.getKey().getContainerType().toString();
if (movables.contains(entry.getKey().getContainerType().toString())) {
if (movables.contains(containerType)) {
logger.debug("updating (real) edge from children to parent of "
+ containerID);
this.updateRealContainerEdgeFixedChild(
Expand Down Expand Up @@ -1327,4 +1327,10 @@ public List<String> getReasonableTypeForSum() {
}
return reasonable;
}

@Override
public int addContainerWebUI(Container con) throws TimeoutException {
// TODO Auto-generated method stub
return 0;
}
}

0 comments on commit 4a2c64d

Please sign in to comment.