These are chat archives for petabridge/akka-bootcamp

11th
Apr 2015
Christian Horsdal
@horsdal
Apr 11 2015 20:54
The FileWrite message is sent from the FileObserver to TailActor not the TailCoordinatorActor
AFAICT anyway :smile:
Ralph Willgoss
@ralphwillgoss
Apr 11 2015 21:02
I just checked my code, think you are correct:
public TailActor(ActorRef reporterActor, string filePath) {
            _reporterActor = reporterActor;
            _filePath = filePath;
            _observer = new FileObserver(Self, Path.GetFullPath(_filePath));
Christian Horsdal
@horsdal
Apr 11 2015 21:05
exactly. I also pass Self into the FileObserver in my code
Ralph Willgoss
@ralphwillgoss
Apr 11 2015 21:07
:-)
Christian Horsdal
@horsdal
Apr 11 2015 22:11
in lesson 1.6 when a PostStop method is introduced in TailActor to clean up file resources is there any reason why the same shouldn't be done in a PreRestart?
Restart will result in the different file resources being reinitialized after all
so clean up seems to be needed