[akka-user] Re: Consistent Hashing Group and routee death-watch / recreation

2016-08-15 Thread Muthukumaran Kothandaraman
Just in case anybody is facing similar dilemma. This snippet is working for 
basic cases. Have not tried all failures yet


private void createCHRouterWithRoutees(){
Set routees = new HashSet();
for (int i=0;i
> Hi, 
>
> I am using akka 2.4.8 and creating CH Group as following (with my custom 
> HashMapper)
>
> Set actorPaths = new HashSet();
>
>
> for (int i=0;i ActorRef worker = getContext().actorOf(Props.create(JobWorker.class), 
> "jobworker-" + String.valueOf(i)) ;
> actorPaths.add(worker.path().toStringWithAddress());
> }
>
>
> getContext().actorOf(
> *new* ConsistentHashingGroup(actorPaths)
> .withHashMapper(new JobKeyBasedHashMapper())
> .props(),
> "jobrouter");
>
>
> Now, assuming I have a death-watch on routees and recreate the same upon 
> Terminated message, will it be added automatically to the group ? 
>
>
> If not, is there any other alternative approach using CH Group ?
>
>
> One way I could think of is to use plain Router with 
> ConsistentHashingRoutingLogic. But I could not figure out how to inject my 
> custom hashing based on message into ConsistentHashingRoutingLogic. 
>
>
> Regards
>
> Muthu
>
>
>
>
>
>
>
>
>

-- 
>>  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.


Re: [akka-user] Re: Access Denied Downloading standalone akka_2.11-2.4.9-RC2.zip

2016-08-15 Thread Konrad Malawski
Thanks for reporting, re-uploaded it.
S3 was behaving weird it seems.

-- 
Konrad `ktoso` Malawski
Akka  @ Lightbend 

On 15 August 2016 at 19:02:56, murtuza chhil (chil...@gmail.com) wrote:

Its working now.

-chhil

On Monday, August 15, 2016 at 8:56:37 AM UTC+5:30, murtuza chhil wrote:
>
> Hello,
>
> Get an error  downloading  latest standalone release from page
> http://akka.io/downloads/
>
> The zip downlod link is
> http://downloads.typesafe.com/akka/akka_2.11-2.4.9-RC2.zip?_
> ga=1.68079190.614045507.1468130713
>
> Error page Content
>
>  encoding="UTF-8"?>AccessDeniedAccess 
> Denied4E93081229D790D5hTqKBgBzP1ydnHywim1E/9e/YrVnhfWyZQ+m39zdiIqoJMrd+VwOLyCBQ+pTw4DX5vByBmimSBs=
>
> ​
>
> -chhil
>
--
>> 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.


[akka-user] Re: Access Denied Downloading standalone akka_2.11-2.4.9-RC2.zip

2016-08-15 Thread murtuza chhil
Its working now.

-chhil

On Monday, August 15, 2016 at 8:56:37 AM UTC+5:30, murtuza chhil wrote:
>
> Hello, 
>
> Get an error  downloading  latest standalone release from page 
> http://akka.io/downloads/
>
> The zip downlod link is 
>
> http://downloads.typesafe.com/akka/akka_2.11-2.4.9-RC2.zip?_ga=1.68079190.614045507.1468130713
>
> Error page Content
>
>  encoding="UTF-8"?>AccessDeniedAccess 
> Denied4E93081229D790D5hTqKBgBzP1ydnHywim1E/9e/YrVnhfWyZQ+m39zdiIqoJMrd+VwOLyCBQ+pTw4DX5vByBmimSBs=
>
> ​
>
> -chhil
>

-- 
>>  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.


Re: [akka-user] Hot Standby Persistent Actor - https://github.com/akka/akka/issues/13938

2016-08-15 Thread Muthukumaran Kothandaraman
Thanks Patrik. I would like to follow this. I assume that the design 
discussions are confined to the issues link.

Are there any pointers in code for understanding how recovery is currently 
triggered for persistent actors so that I can get warmed up ? I guess that 
would be a good point for me to start with

Regards
Muthu


On Thursday, 11 August 2016 23:27:59 UTC+5:30, Patrik Nordwall wrote:
>
> The milestone of an issue is no guarantee that it will be released in that 
> version, until the issue is closed. We can't do that kind of planning.
>
> This would be a great feature for community contibution. Queries are there 
> now.
>
> /Patrik
> ons 10 aug. 2016 kl. 07:04 skrev Muthukumaran Kothandaraman <
> muthu@gmail.com >:
>
>> Hi, 
>>
>> Is this still targeted for 2.5 or it has moved further ? As I understand, 
>> this required some query-side improvements before this could be addressed. 
>>
>> Regards
>> Muthu
>>
>> -- 
>> >> 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+...@googlegroups.com .
>> To post to this group, send email to akka...@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.


[akka-user] Consistent Hashing Group and routee death-watch / recreation

2016-08-15 Thread Muthukumaran Kothandaraman
Hi, 

I am using akka 2.4.8 and creating CH Group as following (with my custom 
HashMapper)

Set actorPaths = new HashSet();


for (int i=0;i>  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.


Re: [akka-user] What means of akka cluster roles leader?

2016-08-15 Thread Yutao Shuai



Thanks for your help Konrad. So the return value of this function is the 
leader of the cluster? But I read the DiffRolesLeader function in the 
ClusterEvent.scala where call the roleLeader function. This function 
traverse all roles and call the roleLeader function, What this mean? All 
nodes with specfic roles have its own leader? What difference between this 
leader and cluster leader ?


在 2016年8月15日星期一 UTC+8下午5:27:22,Konrad Malawski写道:
>
> Hi Yutao,
> look at the return type – Option, so it's a single element.
> It returns the leader of a given role (role == multiple nodes, 1 of them 
> is the leader).
> I.e. it would host the the Singleton if it were constrained to this role.
>
> -- 
> Konrad `ktoso` Malawski
> Akka  @ Lightbend 
>
> On 15 August 2016 at 04:23:26, Yutao Shuai (szq...@gmail.com ) 
> wrote:
>
>
> 
>
> What this function means? Select a nodes with specfic roles as the cluster 
> leader or every roles has its leader?
> --
> >> 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+...@googlegroups.com .
> To post to this group, send email to akka...@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.


[akka-user] Re: ConductR sandbox linking to another container

2016-08-15 Thread Chris Baxter
Hey Christopher.  Thanks for getting back to me.  Glad to hear that you 
have this use case on your road map.  In the mean time, I will use the -e 
option workaround that you suggested.  Thanks again.

On Monday, August 15, 2016 at 4:04:10 AM UTC-4, Christopher Hunt wrote:
>
> Hi Chris,
>
> There's nothing built in to do this right now. Sounds like what we need to 
> do here is allow the service locator to be configured with an external 
> service. We have this on our to-do list.
>
> However you should be able to pass an environment var via the -e option 
> though and have that environment var resolve to the uri of your Cassandra 
> instance. Your Typesafe Config file could then use environment var 
> substitution in order to declare the location of your Cassandra service. 
> How does that sound?
>
> Kind regards,
> Christopher
>
> On Monday, 15 August 2016 00:13:41 UTC+10, Chris Baxter wrote:
>>
>> I don't know of any ConductR user group or forum out there, so I am 
>> asking here.  I am playing around with the ConductR sandbox on my Mac and I 
>> want to be able to have my 3 ConductR nodes communicate with Cassandra 
>> which is running in another local container.  Usually, this can be 
>> accomplished with links (--link) being established when starting up the 
>> containers.  But it seems that you cannot use the --link option when 
>> running the sandbox via "sandbox run ...".  I know you can deploy Cassandra 
>> as another bundle into ConductR but I don't want to go that route.  Does 
>> anyone have any expertise or suggestions on being able to setup a 
>> networking link between a ConductR node's container in sandbox and my 
>> Cassandra container?
>>
>

-- 
>>  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.


Re: [akka-user] What means of akka cluster roles leader?

2016-08-15 Thread Konrad Malawski
Duh, my bad. I keep mistaking the use of oldest and leader in this somehow.
Thanks for the correction Patrik!

On 15 Aug 2016 13:50, "Patrik Nordwall"  wrote:

>
>
> On Mon, Aug 15, 2016 at 11:27 AM, Konrad Malawski <
> konrad.malaw...@lightbend.com> wrote:
>
>> Hi Yutao,
>> look at the return type – Option, so it's a single element.
>> It returns the leader of a given role (role == multiple nodes, 1 of them
>> is the leader).
>> I.e. it would host the the Singleton if it were constrained to this role.
>>
>
> That is not correct. Singleton runs on the oldest node. The leader is
> simply the node (with given role) with the lowest address with some
> additional rules. It's not at all as strict as the singleton. It's mostly
> used to manage the cluster membership and applications typically use the
> singleton instead of the leader.
>
> /Patrik
>
>
>
>
>>
>> --
>> Konrad `ktoso` Malawski
>> Akka  @ Lightbend 
>>
>> On 15 August 2016 at 04:23:26, Yutao Shuai (szqs...@gmail.com) wrote:
>>
>>
>> 
>>
>> What this function means? Select a nodes with specfic roles as the
>> cluster leader or every roles has its leader?
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/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/c
>> urrent/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.
>>
>
>
>
> --
>
> Patrik Nordwall
> Akka Tech Lead
> Lightbend  -  Reactive apps on the JVM
> Twitter: @patriknw
>
> --
> >> 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.


Re: [akka-user] What means of akka cluster roles leader?

2016-08-15 Thread Patrik Nordwall
On Mon, Aug 15, 2016 at 11:27 AM, Konrad Malawski <
konrad.malaw...@lightbend.com> wrote:

> Hi Yutao,
> look at the return type – Option, so it's a single element.
> It returns the leader of a given role (role == multiple nodes, 1 of them
> is the leader).
> I.e. it would host the the Singleton if it were constrained to this role.
>

That is not correct. Singleton runs on the oldest node. The leader is
simply the node (with given role) with the lowest address with some
additional rules. It's not at all as strict as the singleton. It's mostly
used to manage the cluster membership and applications typically use the
singleton instead of the leader.

/Patrik




>
> --
> Konrad `ktoso` Malawski
> Akka  @ Lightbend 
>
> On 15 August 2016 at 04:23:26, Yutao Shuai (szqs...@gmail.com) wrote:
>
>
> 
>
> What this function means? Select a nodes with specfic roles as the cluster
> leader or every roles has its leader?
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/c
> urrent/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/c
> urrent/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.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>  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.


Re: [akka-user] What means of akka cluster roles leader?

2016-08-15 Thread Konrad Malawski
Hi Yutao,
look at the return type – Option, so it's a single element.
It returns the leader of a given role (role == multiple nodes, 1 of them is
the leader).
I.e. it would host the the Singleton if it were constrained to this role.

-- 
Konrad `ktoso` Malawski
Akka  @ Lightbend 

On 15 August 2016 at 04:23:26, Yutao Shuai (szqs...@gmail.com) wrote:



What this function means? Select a nodes with specfic roles as the cluster
leader or every roles has its leader?
--
>> 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.


[akka-user] Re: ConductR sandbox linking to another container

2016-08-15 Thread Christopher Hunt
Hi Chris,

There's nothing built in to do this right now. Sounds like what we need to 
do here is allow the service locator to be configured with an external 
service. We have this on our to-do list.

However you should be able to pass an environment var via the -e option 
though and have that environment var resolve to the uri of your Cassandra 
instance. Your Typesafe Config file could then use environment var 
substitution in order to declare the location of your Cassandra service. 
How does that sound?

Kind regards,
Christopher

On Monday, 15 August 2016 00:13:41 UTC+10, Chris Baxter wrote:
>
> I don't know of any ConductR user group or forum out there, so I am asking 
> here.  I am playing around with the ConductR sandbox on my Mac and I want 
> to be able to have my 3 ConductR nodes communicate with Cassandra which is 
> running in another local container.  Usually, this can be accomplished with 
> links (--link) being established when starting up the containers.  But it 
> seems that you cannot use the --link option when running the sandbox via 
> "sandbox run ...".  I know you can deploy Cassandra as another bundle into 
> ConductR but I don't want to go that route.  Does anyone have any expertise 
> or suggestions on being able to setup a networking link between a ConductR 
> node's container in sandbox and my Cassandra container?
>

-- 
>>  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.


Re: [akka-user] Event Adapters and custom journals

2016-08-15 Thread Patrik Nordwall
On Wed, Aug 10, 2016 at 1:13 PM, Daniel Stoner 
wrote:

> Hi all,
>
> Having read the docs on EventAdapters (http://doc.akka.io/docs/akka/
> 2.4.9-RC2/java/persistence.html#event-adapters-java) and seeing the
> example of how to ignore particular classes I thought this would be a
> perfect solution for me.
>
> Having implemented the example I have tried to the following the
> application.conf example where event-adapter is defined inside the
> 'journal.inmem' config location (EG The location specified by
> journal.plugin value). As such I have:
>
> persistence {
> journal {
> plugin = "com.osp.scs.libnado.persistence.dynamodb"
> }
> ..more things
> }
>
> com.osp.scs.libnado.persistence.dynamodb {
> event-adapters {
> class-not-found = "com.osp.scs.libnado.akka.codec.
> ClassNotFoundEventAdapter"
>   }
>   event-adapter-bindings {
> "com.osp.scs.libnado.akka.codec.JacksonSerializable" =
> class-not-found
>   }
> }
>
> Now it has suddenly occurred to me (since this isn't working) that
> actually event adaptation is something that has to be implemented in each
> Journal implementation that exists and not something that Akka is providing
> before it gets to the journal itself.
>
> Is this the case or am I just putting my config in the wrong place?
> If the former the documentation on how to write your own custom Journal
> may need updating to reflect the intended requirement to support this
> feature.
>

That is true. The TCK should also cover it. Please create an issue, and a
pull request would be great.


>
> Further - are there any shortcuts for implementing the requirements such
> as there is with Serialization and the serialisation-bindings and other
> assorted config working. EG You just utilise SerializationExtension.get(
> system).serialize(entity).
>

Persistence.get(system).adaptersFor


>
> Thanks kindly,
> Daniel Stoner
> --
> Daniel Stoner | Senior Software Engineer UtopiaIT | Ocado Technology
> daniel.sto...@ocado.com | Ext 7969 | www.ocadotechnology.com
>
>
> Notice:  This email is confidential and may contain copyright material of
> members of the Ocado Group. Opinions and views expressed in this message
> may not necessarily reflect the opinions and views of the members of the
> Ocado Group.
>
>
>
> If you are not the intended recipient, please notify us immediately and
> delete all copies of this message. Please note that it is your
> responsibility to scan this message for viruses.
>
>
>
> Fetch and Sizzle are trading names of Speciality Stores Limited and Fabled
> is a trading name of Marie Claire Beauty Limited, both members of the Ocado
> Group.
>
>
>
> References to the “Ocado Group” are to Ocado Group plc (registered in
> England and Wales with number 7098618) and its subsidiary undertakings (as
> that expression is defined in the Companies Act 2006) from time to time.
> The registered office of Ocado Group plc is Titan Court, 3 Bishops Square,
> Hatfield Business Park, Hatfield, Herts. AL10 9NE.
>
> --
> >> 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.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>  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.


Re: [akka-user] Akka Actor

2016-08-15 Thread Kenji Kobayashi
Sure I did have a Progress Message via the main actor which call to the 
workerActor to return current progress, but the user is able to call the 
endpoint over and over again, that meaning I need some indicator whether 
the actor has finished or still running.

More or less like this schema..

User1 -> End Point -> Main Actor fires tasks to workers (mainActor ? 
startProcess)

User2 -> End Point -> Main Actor fires tasks to workers if not already 
started... etc...

I recently thought of using future.onCompleted, so as long if the 
future.onCompleted returns false that shows the progress is still running 
but somehow it won't work that way

On Friday, August 12, 2016 at 7:20:22 PM UTC+7, Justin du coeur wrote:
>
> Sure, but there's nothing built in -- you'd have to roll something 
> yourself.
>
> The most obvious way to do it is to add a Progress message, which the 
> outside system strobes to mainActor, say, once a second, and which 
> mainActor responds with the current state of the processing.  (I do a much 
> more involved version of this for my UIs, when they are doing long 
> operations that may take tens or hundreds of seconds, so I can show a 
> progress bar.)
>
> But there are lots of ways to slice this problem -- the right one will 
> depend on your specific problem and environment...
>
> On Fri, Aug 12, 2016 at 6:36 AM, Kenji Kobayashi  > wrote:
>
>> Currently I have rest-endpoint-api-playframework that contains main actor 
>> to run n number of worker-actors doing batch-insertion. while in the 
>> process of doing that, I'd love to get current process of the inserts, lets 
>> say 100/1000. in order to do that, obviously I'll have the actor to report 
>> to the sender what is the status of the process.
>>
>> class Application (implicit inj : Injector) extends Controller with 
>> Injectable {
>>   implicit val timeout = Timeout(5 seconds)
>>   val mainActor = system.actorOf(RoundRobinPool(100).props(Props(new 
>> SupervisorActor(0))), name = "helloactor")
>>
>>   val future = mainActor ? ProcessBatch  
>>
>>   val workerFuture = mainActor ? CurrentProcessedItem
>>   result = Await.result(workerFuture, timeout.duration).asInstanceOf[String] 
>>
>>   Ok(Json.obj("return"->result.toString))  }
>>
>> above, I'd expect that if helloActor ? ProcessBatch has completed, then 
>> I'd just return the process is completed, otherwise I'd run the mainActor 
>> ? CurrentProcessedItem that returns a future of the currentProcessedItem.
>>
>> So basically I will need an indicator whether mainActor ? ProcessBatch has 
>> completed or not. is it possible?
>>
>> -- 
>> >> 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+...@googlegroups.com .
>> To post to this group, send email to akka...@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.