public void initTopology ( String topologyName , int delay ) { if ( this . topology != null ) { // TODO: possible refactor this code later System . out . println ( "Topology has been initialized before!" ) ; return ; } this . topology = componentFactory . createTopology ( topologyName ) ; }
Initiates topology with a specific name and a delay between consecutive instances .