public Boolean updateTopology ( TopologyAPI . Topology topology , String topologyName ) { if ( getTopology ( topologyName ) != null ) { deleteTopology ( topologyName ) ; } return setTopology ( topology , topologyName ) ; }
Update the topology definition for the given topology . If the topology doesn t exist create it . If it does update it .