Package javax.batch.operations

Examples of javax.batch.operations.BatchRuntimeException


    try {
      if(isComplete) {
        policy.endCheckpoint();
      }
    } catch (Exception e) {
      throw new BatchRuntimeException(e);
    }
  }
View Full Code Here


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

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

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

    @PostConstruct
    private void ps() throws Exception {
        System.out.printf("Batchlet1 PostConstruct of %s%n", this);
        if (jobContext == null || stepContext == null || date == null) {
            throw new BatchRuntimeException("Some fields are not initialized: jobContext=" + jobContext +
            ", stepContext=" + stepContext + ", date=" + date);
        }
        addToJobExitStatus("Batchlet1.ps");
    }
View Full Code Here

    @PostConstruct
    public void ps() {
        System.out.printf("StepListener1 PostConstruct of %s%n", this);
        if (osName == null) {
            throw new BatchRuntimeException("osNmae field has not been initialized when checking from PostConstruct method.");
        }
        addToJobExitStatus("StepListener1.ps");
    }
View Full Code Here

    @PostConstruct
    public void ps() {
        System.out.printf("JobListener1 PostConstruct of %s%n", this);
        if (osName == null) {
            throw new BatchRuntimeException("osNmae field has not been initialized when checking from PostConstruct method.");
        }
        addToJobExitStatus("JobListener1.ps");
    }
View Full Code Here

    @PostConstruct
    public void ps() {
        System.out.printf("Decider1 PostConstruct of %s%n", this);
        if (osName == null) {
            throw new BatchRuntimeException("osNmae field has not been initialized when checking from PostConstruct method.");
        }
        addToJobExitStatus("Decider1.ps");
    }
View Full Code Here

    }

    @Override
    public void open(final Serializable checkpoint) throws Exception {
        if (failReaderAtOpen) {
            throw new BatchRuntimeException("Failed reader at open");
        }
        ReaderWriterResult.getOrCreateReaderWriterItem(stepContext).setReaderClosed(false);
    }
View Full Code Here

        final int counter = item.incrementReadCount();
        if (counter == stopReadAt) {
            return null;
        }
        if (counter == failReadAt) {
            throw new BatchRuntimeException("Failed reader at point " + failReadAt + ". Reader and writer should both be closed.");
        }
        return counter;
    }
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.