/** * NOTE: this can return false when a topology has just been activated. The topology may still be * in the STORMS_SUBTREE. */ private static boolean isTopologyActive(IStormClusterState state, String topoName) { return state.getTopoId(topoName).isPresent(); }
private String toTopoId(String topoName) throws NotAliveException { return stormClusterState.getTopoId(topoName) .orElseThrow(() -> new WrappedNotAliveException(topoName + " is not alive")); }
private Map<String, Object> tryReadTopoConfFromName(final String topoName) throws NotAliveException, AuthorizationException, IOException { IStormClusterState state = stormClusterState; String topoId = state.getTopoId(topoName) .orElseThrow(() -> new WrappedNotAliveException(topoName + " is not alive")); return tryReadTopoConf(topoId, topoCache); }
String topoId = state.getTopoId(base.get_name()) .orElseThrow(() -> new WrappedNotAliveException(base.get_name() + " is not alive")); TopologyResources resources = getResourcesForTopology(topoId, base);
String topoId = state.getTopoId(topoName).get();