higiven the following scenario:A receives a message about a new node/service/server to monitor. A spawns actor B1 passing in the URL to monitor, using an UntypedActorFactory. it does so for each server it gets told to monitor. actors B1, B2 etc monitors the servers they were assigned with some form of RPC and reports their monitoring results back to A.now, B2 dies and gets restarted by A.1. does it use the same UntypedActorFactory originally used to create B2?
2. how does it magically know what state was assigned to B2?
or do i have to somehow manually keep track of this state in A? (currently there's no need).thanks!
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/OgLJB1cJcoEJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/rMvtSG1p2DAJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
hi viktorhere's a gist that hopefully illustrates my question better:
if it's still unclear i'd be happy to elaborate further.thanks
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/rMvtSG1p2DAJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
really appreciate all the gratuitous input guys, worth gold!
i knocked together a quick app to prove this to myself and indeed works as you said:
https://gist.github.com/2765156
in order to restart the child with the correct state... does the parent actor context store a reference to the instance of the props (and UntypedActorFactory instance) used to create each child actor?
also, sounds like good advice about not "handling" the error in the UntypedActorFactory (https://gist.github.com/2764527) but it looks like the abstract create() method doesn't support checked exceptions, unless i'm having an obtuse moment :) how do you handle Actors that throws checked exceptions from their constructors?