.getConfig("WorkServerSys"));
log = Logging.getLogger(system, this);
// create the work scheduler actor
workSchedulerActor = system.actorOf(
new Props(WorkSchedulerActor.class), "WorkSchedulerActor");
// create the job controller actor, which manages the routees and sends
// out
// work packets to the registered workers
jobControllerActor = system.actorOf(new Props(
new UntypedActorFactory() {
public UntypedActor create() {
return new JobControllerActor(workSchedulerActor);
}
}), "JobControllerActor");
remoteActorListener = system.actorOf(new Props(
new UntypedActorFactory() {
public UntypedActor create() {
return new RemoteClientEventListener(jobControllerActor);
}
}), "RemoteClientEventListener");
// actor that registers and unregisters the workers
registerRemoteWorkerActor = system.actorOf(new Props(
new UntypedActorFactory() {
public UntypedActor create() {
return new RegisterRemoteWorkerActor(jobControllerActor);
}
}), "RegisterRemoteWorkerActor");