code: public void checkTopologyActive(NimbusData nimbus, String topologyName, boolean bActive) throws Exception {
          if (isTopologyActive(nimbus.getStormClusterState(), topologyName) != bActive) {
              if (bActive) {
                  throw new NotAliveException(topologyName + " is not alive");
              } else {
                  throw new AlreadyAliveException(topologyName + " is already alive");
              }
          }
      }
docs: check whether the topology is bActive?
  
  @throws Exception