use of backtype.storm.nimbus.NimbusInfo in project jstorm by alibaba.
the class StormConfig method write_nimbus_topology_conf.
public static void write_nimbus_topology_conf(String topologyId, Map topoConf, NimbusData data) throws Exception {
String confKey = master_stormconf_key(topologyId);
AtomicOutputStream out = data.getBlobStore().updateBlob(confKey);
out.write(Utils.serialize(topoConf));
out.close();
if (data.getBlobStore() instanceof LocalFsBlobStore) {
NimbusInfo nimbusInfo = data.getNimbusHostPortInfo();
int versionForKey = BlobStoreUtils.getVersionForKey(confKey, nimbusInfo, data.getConf());
data.getStormClusterState().setup_blobstore(confKey, nimbusInfo, versionForKey);
}
}
Aggregations