@Override public Object call() throws Exception { LOG.info("Attaching to job {} at the job manager {}.", jobID, jobManager.path()); jobManager.tell( decorateMessage( new JobManagerMessages.RegisterJobClient( jobID, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); // issue a RegistrationTimeout message to check that we submit the job within // the given timeout getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getRegistrationTimeout()), getContext().dispatcher(), ActorRef.noSender()); return null; } }, getContext().dispatcher());
@Override public Object call() throws Exception { LOG.info("Attaching to job {} at the job manager {}.", jobID, jobManager.path()); jobManager.tell( decorateMessage( new JobManagerMessages.RegisterJobClient( jobID, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); // issue a RegistrationTimeout message to check that we submit the job within // the given timeout getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getRegistrationTimeout()), getContext().dispatcher(), ActorRef.noSender()); return null; } }, getContext().dispatcher());
@Override public Object call() throws Exception { LOG.info("Attaching to job {} at the job manager {}.", jobID, jobManager.path()); jobManager.tell( decorateMessage( new JobManagerMessages.RegisterJobClient( jobID, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); // issue a RegistrationTimeout message to check that we submit the job within // the given timeout getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getRegistrationTimeout()), getContext().dispatcher(), ActorRef.noSender()); return null; } }, getContext().dispatcher());
@Override public Object call() throws Exception { LOG.info("Attaching to job {} at the job manager {}.", jobID, jobManager.path()); jobManager.tell( decorateMessage( new JobManagerMessages.RegisterJobClient( jobID, ListeningBehaviour.EXECUTION_RESULT_AND_STATE_CHANGES)), getSelf()); // issue a RegistrationTimeout message to check that we submit the job within // the given timeout getContext().system().scheduler().scheduleOnce( timeout, getSelf(), decorateMessage(JobClientMessages.getRegistrationTimeout()), getContext().dispatcher(), ActorRef.noSender()); return null; } }, getContext().dispatcher());
sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); "timed out. " + "You may increase '" + AkkaOptions.CLIENT_TIMEOUT.key() + "' in case the JobManager needs more time to confirm the job client registration."))), getSelf());
sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); "timed out. " + "You may increase '" + ConfigConstants.AKKA_CLIENT_TIMEOUT + "' in case the JobManager needs more time to confirm the job client registration."))), getSelf());
sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); "timed out. " + "You may increase '" + AkkaOptions.CLIENT_TIMEOUT.key() + "' in case the JobManager needs more time to confirm the job client registration."))), getSelf());
sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); "timed out. " + "You may increase '" + AkkaOptions.CLIENT_TIMEOUT.key() + "' in case the JobManager needs more time to confirm the job client registration."))), getSelf());