Github user jerrypeng commented on a diff in the pull request:
https://github.com/apache/storm/pull/921#discussion_r46719825
--- Diff: storm-core/src/jvm/backtype/storm/scheduler/Topologies.java ---
@@ -67,4 +67,17 @@ public TopologyDetails getByName(String topologyName) {
}
return _allComponents;
}
+
+ public Topologies getCopy() {
+ return new Topologies(this.topologies);
+ }
+
+ @Override
+ public String toString() {
+ String ret = "Topologies:\n";
+ for (TopologyDetails td : this.getTopologies()) {
+ ret += td.toString() + "\n";
+ }
+ return ret;
--- End diff --
will change
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---