Re: [akka-user] Which is the preferred way to get the current set of cluster nodes?

2015-02-09 Thread Patrik Nordwall
On Wed, Feb 4, 2015 at 10:22 PM, Steve Rehrauer steve.rehra...@gmail.com wrote: Our clustered app has a cluster singleton actor that constructs a Cluster instance, and also subscribes to cluster events. If you ask it, What are the current nodes? it uses cluster.state.members. I.e.,

[akka-user] Which is the preferred way to get the current set of cluster nodes?

2015-02-04 Thread Steve Rehrauer
Our clustered app has a cluster singleton actor that constructs a Cluster instance, and also subscribes to cluster events. If you ask it, What are the current nodes? it uses cluster.state.members. I.e., simplified, something like: val cluster = Cluster(context.system) override def