using Config.nodename

This commit is contained in:
Jonas Bonér 2011-05-18 15:14:03 +02:00
parent d4d2807d83
commit 5949673092

View file

@ -7,6 +7,7 @@ package akka.cluster
import akka.actor.{DeploymentConfig, Deployer, DeploymentException}
import DeploymentConfig._
import akka.event.EventHandler
import akka.config.Config
import akka.util.Switch
import akka.util.Helpers._
import akka.cluster.zookeeper.AkkaZkClient
@ -31,7 +32,7 @@ import java.util.concurrent.CountDownLatch
*/
object ClusterDeployer {
val clusterName = Cluster.name
val nodeName = new UUID().toString // FIXME how to configure node name? now using UUID
val nodeName = Config.nodename
val clusterPath = "/%s" format clusterName
val clusterDeploymentLockPath = clusterPath + "/deployment-lock"
val deploymentPath = clusterPath + "/deployment"