AlmostIntelligent / Hydra

A distributed computation network.
4 stars 0 forks source link

Actor shutdown #31

Closed Cikey closed 11 years ago

Cikey commented 11 years ago

Actors should shut down on receiving a Terminate message or when the terminate method on the surrounding actor node is called.

When the actor received a Terminate message it will send the Terminate message to all its child actors. After shutdown the actor sends a Terminated message to its parent to remove the reference to the child actor.

The root actor must stop the app guardian before the system guardian to allow system services like logging to be available during shutdown.