Examples of JobNotFoundException


Examples of org.apache.hadoop.thriftfs.jobtracker.api.JobNotFoundException

              public ThriftJobInProgress run() throws JobNotFoundException {
                return getJob(ctx, jobID);
              }
            });
            if (job == null) {
                throw new JobNotFoundException();
            }

            try {
                final JobID jid = JTThriftUtils.fromThrift(jobID);

                assumeUserContextAndExecute(ctx, new PrivilegedExceptionAction<Void>() {
                    public Void run() throws JobNotFoundException {
                        try {
                            jobTracker.killJob(jid);
                        } catch (java.io.IOException e) {
                            throw new JobNotFoundException();
                        }
                        return null;
                    }
                });
            } catch (Throwable t) {
View Full Code Here

Examples of org.apache.hadoop.thriftfs.jobtracker.api.JobNotFoundException

              public JobInProgress run() {
                return jobTracker.getJob(jid);
              }
            });
            if (job == null) {
              throw new JobNotFoundException();
            }

            final TaskInProgress tip = assumeUserContextAndExecute(ctx, new PrivilegedAction<TaskInProgress>() {
              public TaskInProgress run() {
                return job.getTaskInProgress(taskid.getTaskID());
View Full Code Here

Examples of org.apache.hadoop.thriftfs.jobtracker.api.JobNotFoundException

              public JobInProgress run() {
                return jobTracker.getJob(jid);
              }
            });
            if (job == null) {
              throw new JobNotFoundException();
            }
            assumeUserContextAndExecute(ctx, new PrivilegedExceptionAction<Void>() {
              public Void run() throws java.io.IOException {
                jobTracker.setJobPriority(jid, priority.toString());
                return null;
View Full Code Here

Examples of org.mifosplatform.infrastructure.jobs.exception.JobNotFoundException

    }

    @Override
    public void executeJob(final Long jobId) {
        final ScheduledJobDetail scheduledJobDetail = this.schedularWritePlatformService.findByJobId(jobId);
        if (scheduledJobDetail == null) { throw new JobNotFoundException(String.valueOf(jobId)); }
        executeJob(scheduledJobDetail, null);
    }
View Full Code Here

Examples of org.mifosplatform.infrastructure.jobs.exception.JobNotFoundException

    @Transactional
    @Override
    public CommandProcessingResult updateJobDetail(final Long jobId, final JsonCommand command) {
        this.dataValidator.validateForUpdate(command.json());
        final ScheduledJobDetail scheduledJobDetail = findByJobId(jobId);
        if (scheduledJobDetail == null) { throw new JobNotFoundException(String.valueOf(jobId)); }
        final Map<String, Object> changes = scheduledJobDetail.update(command);
        if (!changes.isEmpty()) {
            this.scheduledJobDetailsRepository.saveAndFlush(scheduledJobDetail);
        }
        return new CommandProcessingResultBuilder() //
View Full Code Here

Examples of org.mifosplatform.infrastructure.jobs.exception.JobNotFoundException

        try {
            final JobDetailMapper detailMapper = new JobDetailMapper();
            final String sql = detailMapper.schema() + " where job.id=?";
            return this.jdbcTemplate.queryForObject(sql, detailMapper, new Object[] { jobId });
        } catch (final EmptyResultDataAccessException e) {
            throw new JobNotFoundException(String.valueOf(jobId));
        }
    }
View Full Code Here

Examples of org.mifosplatform.infrastructure.jobs.exception.JobNotFoundException

        }
    }

    @Override
    public Page<JobDetailHistoryData> retrieveJobHistory(final Long jobId, final SearchParameters searchParameters) {
        if (!isJobExist(jobId)) { throw new JobNotFoundException(String.valueOf(jobId)); }
        final JobHistoryMapper jobHistoryMapper = new JobHistoryMapper();
        final StringBuilder sqlBuilder = new StringBuilder(200);
        sqlBuilder.append("select SQL_CALC_FOUND_ROWS ");
        sqlBuilder.append(jobHistoryMapper.schema());
        sqlBuilder.append(" where job.id=?");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.