public synchronized TopologyMetaData get(final Map<String, Object> conf, final String topologyId, final AdvancedFSOps ops, String stormRoot) { //Only go off of the topology id for now. TopologyMetaData dl = _cache.get(topologyId); if (dl == null) { _cache.putIfAbsent(topologyId, new TopologyMetaData(conf, topologyId, ops, stormRoot)); dl = _cache.get(topologyId); } return dl; }
public static List<String> getDependencyLocationsFor(final Map<String, Object> conf, final String topologyId, final AdvancedFSOps ops, String stormRoot) throws IOException { return TOPO_META_CACHE.get(conf, topologyId, ops, stormRoot).getDepLocs(); }
public static String getStormVersionFor(final Map<String, Object> conf, final String topologyId, final AdvancedFSOps ops, String stormRoot) throws IOException { return TOPO_META_CACHE.get(conf, topologyId, ops, stormRoot).getStormVersion(); }
public synchronized String getStormVersion() throws IOException { if (!_dataCached) { readData(); } return _stormVersion; } }
public synchronized List<String> getDepLocs() throws IOException { if (!_dataCached) { readData(); } return _depLocs; }