public List < String > getBoltNames ( PhysicalPlan pp ) { TopologyAPI . Topology localTopology = pp . getTopology ( ) ; ArrayList < String > boltNames = new ArrayList <> ( ) ; for ( TopologyAPI . Bolt bolt : localTopology . getBoltsList ( ) ) { boltNames . add ( bolt . getComp ( ) . getName ( ) ) ; } return boltNames ; }
A utility method to extract bolt component names from the topology .