I don't understand. You have used the same entity type name when you
started it.

ClusterSharding(system).start





ons 16 dec. 2015 kl. 21:41 skrev Carl Pulley <carl.pul...@googlemail.com>:

> Hi Patrik,
>   thanks for the reply.
>
>
> I think that is included in the documentation:
>> http://doc.akka.io/docs/akka/2.4.1/scala/cluster-sharding.html#Graceful_Shutdown
>>
>> val region = ClusterSharding(system).shardRegion("Entity")
>>
>
> Doesn't this mean I must know the entity name at the very least? Plus, how
> do I know that that entity is on or related to a given (i.e. known) cluster
> node?
>
> I agree that, if I have an entity and I know it is on "this" cluster node,
> then I can retrieve the local shard region. But what if I don't have that
> information? i.e. all I have is the actor system (thus cluster etc.) and a
> cluster node address?
>
>
>> You might find this useful also, to exit the jvm as the last step:
>> http://doc.akka.io/docs/akka/2.4.1/scala/cluster-usage.html#How_To_Cleanup_when_Member_is_Removed
>>
>
> Yup, definitely useful - once I have the local shard region for a given
> cluster node address.
>
> Hope that clarifies my question,
>
>   Carl.
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to