public static void redeployTopologies( GatewayConfig config, String topologyName ) {
try {
File topologiesDir = calculateAbsoluteTopologiesDir( config );
FileTopologyProvider provider = new FileTopologyProvider( topologiesDir );
provider.reloadTopologies();
for( Topology topology : provider.getTopologies() ) {
if( topologyName == null || topologyName.equals( topology.getName() ) ) {
redeployTopology( topology );
}
}