private void tryToAttachToJob() { LOG.info("Sending message to JobManager {} to attach to job {} and wait for progress", jobManager, jobID); Futures.future(new Callable<Object>() { @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()); }
private void tryToAttachToJob() { LOG.info("Sending message to JobManager {} to attach to job {} and wait for progress", jobManager, jobID); Futures.future(new Callable<Object>() { @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()); }
private void tryToAttachToJob() { LOG.info("Sending message to JobManager {} to attach to job {} and wait for progress", jobManager, jobID); Futures.future(new Callable<Object>() { @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()); }
private void tryToAttachToJob() { LOG.info("Sending message to JobManager {} to attach to job {} and wait for progress", jobManager, jobID); Futures.future(new Callable<Object>() { @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());
@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());