Package javax.batch.operations

Examples of javax.batch.operations.BatchRuntimeException


  @Override
  public void onProcessError(T item, Exception e) {
    try {
      delegate.onProcessError(item, e);
    } catch (Exception e1) {
      throw new BatchRuntimeException(e1);
    }
  }
View Full Code Here


  @Override
  public void beforeStep(StepExecution stepExecution) {
    try {
      delegate.beforeStep();
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public ExitStatus afterStep(StepExecution stepExecution) {
    try {
      delegate.afterStep();
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }

    return stepExecution.getExitStatus();
  }
View Full Code Here

  @Override
  public void onRetryReadException(Exception ex) throws Exception {
    try {
      retryReadListener.onRetryReadException(ex);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public void onRetryProcessException(Object item, Exception ex) throws Exception {
    try {
      retryProcessListener.onRetryProcessException(item, ex);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public void onRetryWriteException(List<Object> items, Exception ex) throws Exception {
    try {
      retryWriteListener.onRetryWriteException(items, ex);
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

    try {
      JobParameters jobParameters = jobParametersConverter.getJobParameters(params);
      String [] jobNames = batchContext.getBeanNamesForType(Job.class);

      if(jobNames == null || jobNames.length <= 0) {
        throw new BatchRuntimeException("No Job defined in current context");
      }

      org.springframework.batch.core.JobInstance jobInstance = jobRepository.createJobInstance(jobNames[0], jobParameters);
      jobExecution = jobRepository.createJobExecution(jobInstance, jobParameters, jobConfigurationLocation);
    } catch (Exception e) {
View Full Code Here

  public boolean isComplete(RepeatContext context, RepeatStatus result) {
    try {
      isComplete = policy.isReadyToCheckpoint();
      return isComplete;
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  public boolean isComplete(RepeatContext context) {
    try {
      isComplete = policy.isReadyToCheckpoint();
      return isComplete;
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here

  @Override
  public RepeatContext start(RepeatContext parent) {
    try {
      policy.beginCheckpoint();
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }

    return parent;
  }
View Full Code Here

TOP

Related Classes of javax.batch.operations.BatchRuntimeException

Copyright © 2018 www.massapicom. 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.