Skip to content

Commit d5cc24f

Browse files
author
Kasper Madsen
committed
for issue #44
1 parent 2de2a8e commit d5cc24f

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/clj/backtype/storm/LocalCluster.clj

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,20 @@
2323

2424
(defn -killTopology [this name]
2525
(.killTopology (:nimbus (. this state)) name)
26+
)
27+
28+
(defn -getTopologyConf [this id]
29+
(.getTopologyConf (:nimbus (. this state)) id)
30+
)
31+
32+
(defn -getTopology [this id]
33+
(.getTopology (:nimbus (. this state)) id)
34+
)
35+
36+
(defn -getClusterInfo [this]
37+
(.getClusterInfo (:nimbus (. this state)))
38+
)
39+
40+
(defn -getTopologyInfo [this id]
41+
(.getTopologyInfo (:nimbus (. this state)) id)
2642
)

src/jvm/backtype/storm/ILocalCluster.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
package backtype.storm;
22

33
import backtype.storm.generated.AlreadyAliveException;
4+
import backtype.storm.generated.ClusterSummary;
45
import backtype.storm.generated.InvalidTopologyException;
56
import backtype.storm.generated.NotAliveException;
67
import backtype.storm.generated.StormTopology;
8+
import backtype.storm.generated.TopologyInfo;
9+
710
import java.util.Map;
811

912

@@ -13,4 +16,8 @@ void submitTopology(String topologyName, Map conf, StormTopology topology)
1316
void killTopology(String topologyName)
1417
throws NotAliveException;
1518
void shutdown();
19+
String getTopologyConf(String id);
20+
StormTopology getTopology(String id);
21+
ClusterSummary getClusterInfo();
22+
TopologyInfo getTopologyInfo(String id);
1623
}

0 commit comments

Comments
 (0)