private ActorRef jobScheduler;
@Override
public void onReceive(Object message) throws Exception {
if (message instanceof RemoteClientError) {
RemoteClientError event = (RemoteClientError) message;
log.info("Received remote client error event from address "
+ event.getRemoteAddress());
jobScheduler.tell(new StopWorker(event.getRemoteAddress()
.toString()));
log.info("Cause of the event was {}", event.getCause());
// } else if (message instanceof RemoteClientWriteFailed) {
// RemoteClientWriteFailed event = (RemoteClientWriteFailed) message;
// log.info("Received remote client write fail event from address "
// + event.getRemoteAddress());
// jobScheduler.tell(new StopWorker(event.getRemoteAddress()