@Override public void connectedToJobManager() { if (jobID != null && !successfullyRegisteredForJob) { tryToAttachToJob(); } }
if (jobID == null) { LOG.error("Received null JobID"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); this.client = getSender(); tryToAttachToJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); logAndPrintMessage("Successfully registered at the JobManager for Job " + msg.jobId()); successfullyRegisteredForJob = true; LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorRegistrationTimeoutException("Registration for Job at the JobManager " +
@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()); }
Props jobClientActorProps = JobAttachmentClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
if (jobID == null) { LOG.error("Received null JobID"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); this.client = getSender(); tryToAttachToJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); logAndPrintMessage("Successfully registered at the JobManager for Job " + msg.jobId()); successfullyRegisteredForJob = true; LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorRegistrationTimeoutException("Registration for Job at the JobManager " +
@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()); }
Props jobClientActorProps = JobAttachmentClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
if (jobID == null) { LOG.error("Received null JobID"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); this.client = getSender(); tryToAttachToJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); logAndPrintMessage("Successfully registered at the JobManager for Job " + msg.jobId()); successfullyRegisteredForJob = true; LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorRegistrationTimeoutException("Registration for Job at the JobManager " +
@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 void connectedToJobManager() { if (jobID != null && !successfullyRegisteredForJob) { tryToAttachToJob(); } }
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()); }
Props jobClientActorProps = JobAttachmentClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
if (jobID == null) { LOG.error("Received null JobID"); sender().tell( decorateMessage(new Status.Failure(new Exception("JobID is null"))), getSelf()); } else { LOG.info("Received JobID {}.", jobID); this.client = getSender(); tryToAttachToJob(); getSender().tell( decorateMessage(new Status.Failure(new Exception(msg))), ActorRef.noSender()); terminate(); logAndPrintMessage("Successfully registered at the JobManager for Job " + msg.jobId()); successfullyRegisteredForJob = true; LOG.info("Couldn't register JobClient for JobID {}", ((JobManagerMessages.JobNotFound) message).jobID()); client.tell(decorateMessage(message), getSelf()); terminate(); if (isClientConnected()) { client.tell( decorateMessage(new Status.Failure( new JobClientActorRegistrationTimeoutException("Registration for Job at the JobManager " +
@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 void connectedToJobManager() { if (jobID != null && !successfullyRegisteredForJob) { tryToAttachToJob(); } }
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()); }
Props jobClientActorProps = JobAttachmentClientActor.createActorProps( highAvailabilityServices.getJobManagerLeaderRetriever(HighAvailabilityServices.DEFAULT_JOB_ID), timeout,
@Override public void connectedToJobManager() { if (jobID != null && !successfullyRegisteredForJob) { tryToAttachToJob(); } }