nathanmarz/storm — pull request #520 by jasonjckn (2013-03-25 05:03:06+00:00)
Title: pass cluster-state to INimbus

This pull gives me access to cluster-state in INimbus, which is needed for this pull https://github.com/nathanmarz/storm-mesos/issues/5

"IMPORTANT: CuratorFramework instances are fully thread-safe. You should share one CuratorFramework per ZooKeeper cluster in your application." https://github.com/Netflix/curator/wiki/Framework

MesosNimbus needed zk style state, so this pull gets it done. Without making a 2nd curator framework.

I had to use Object for clusterState because ClusterState is a protocol, and therefore not accessible due to compilation ordering where javac goes first. If someone needs ClusterState in java in the future, we can rewrite it without protocols, but there's no sense changing all that code right now when only mesosnimbus needs it, and I wrote it partly in clojure.