/** * Tells the JobManager to finish the sessions (jobs) defined by the given IDs. * * @param jobIds The IDs that identify the sessions. */ public void endSessions(List<JobID> jobIds) throws Exception { if (jobIds == null) { throw new IllegalArgumentException("The JobIDs must not be null"); } ActorGateway jobManagerGateway = getJobManagerGateway(); for (JobID jid : jobIds) { if (jid != null) { log.info("Telling job manager to end the session {}.", jid); jobManagerGateway.tell(new JobManagerMessages.RemoveCachedJob(jid)); } } }
/** * Tells the JobManager to finish the sessions (jobs) defined by the given IDs. * * @param jobIds The IDs that identify the sessions. */ public void endSessions(List<JobID> jobIds) throws Exception { if (jobIds == null) { throw new IllegalArgumentException("The JobIDs must not be null"); } ActorGateway jobManagerGateway = getJobManagerGateway(); for (JobID jid : jobIds) { if (jid != null) { LOG.info("Telling job manager to end the session {}.", jid); jobManagerGateway.tell(new JobManagerMessages.RemoveCachedJob(jid)); } } }
/** * Tells the JobManager to finish the sessions (jobs) defined by the given IDs. * * @param jobIds The IDs that identify the sessions. */ public void endSessions(List<JobID> jobIds) throws Exception { if (jobIds == null) { throw new IllegalArgumentException("The JobIDs must not be null"); } ActorGateway jobManagerGateway = getJobManagerGateway(); for (JobID jid : jobIds) { if (jid != null) { log.info("Telling job manager to end the session {}.", jid); jobManagerGateway.tell(new JobManagerMessages.RemoveCachedJob(jid)); } } }
/** * Tells the JobManager to finish the sessions (jobs) defined by the given IDs. * * @param jobIds The IDs that identify the sessions. */ public void endSessions(List<JobID> jobIds) throws Exception { if (jobIds == null) { throw new IllegalArgumentException("The JobIDs must not be null"); } ActorGateway jobManagerGateway = getJobManagerGateway(); for (JobID jid : jobIds) { if (jid != null) { log.info("Telling job manager to end the session {}.", jid); jobManagerGateway.tell(new JobManagerMessages.RemoveCachedJob(jid)); } } }
@Override public void endSession(JobID jobID) throws Exception { synchronized (LocalExecutor.class) { LocalFlinkMiniCluster flink = this.flink; if (flink != null) { ActorGateway leaderGateway = flink.getLeaderGateway(AkkaUtils.getDefaultTimeoutAsFiniteDuration()); leaderGateway.tell(new JobManagerMessages.RemoveCachedJob(jobID)); } } }
@Override public void endSession(JobID jobID) throws Exception { synchronized (MyLocalExecutor.class) { LocalFlinkMiniCluster flink = this.flink; if (flink != null) { ActorGateway leaderGateway = flink.getLeaderGateway(AkkaUtils.getDefaultTimeoutAsFiniteDuration()); leaderGateway.tell(new JobManagerMessages.RemoveCachedJob(jobID)); } } }