/user/master/"+startID
和 和有什么不一样 /user/master/*
?我假设 * 意味着StartRouteProcess
消息将发送给所有参与者。这个对吗?然而, /user/master/"+startID
将Task
消息发送给给定的actorstartID
case JoinNode =>
val startID = Nodelist(Random.nextInt(numJoined))
context.system.actorSelection("/user/master/" + startID) ! Task("Join", startID, Nodelist(numJoined), -1)
case BeginRouting =>
println("Node Join Finished.\n")
println("Routing started.")
context.system.actorSelection("/user/master/*") ! StartRouteProcess