Package org.springframework.yarn.batch.repository.bindings

Examples of org.springframework.yarn.batch.repository.bindings.StepExecutionType


      ((BatchAppmasterService)service).addInterceptor(new JobRepositoryRemoteServiceInterceptor() {

        @Override
        public BaseObject preRequest(BaseObject baseObject) {
          if(baseObject.getType().equals("PartitionedStepExecutionStatusReq")) {
            StepExecutionType stepExecutionType = ((PartitionedStepExecutionStatusReq)baseObject).stepExecution;
            StepExecution convertStepExecution = JobRepositoryRpcFactory.convertStepExecutionType(stepExecutionType);
            getStepExecutions().add(convertStepExecution);
            return null;
          } else {
            return baseObject;
View Full Code Here


   * @param stepExecution the step execution
   * @param jobExecution the job execution
   * @return the step execution type
   */
  public static StepExecutionType convertStepExecutionType(StepExecution stepExecution, JobExecution jobExecution) {
    StepExecutionType type = new StepExecutionType();
    type.id = stepExecution.getId();
    type.version = stepExecution.getVersion();
    type.stepName = stepExecution.getStepName();

    type.jobExecution = convertJobExecutionType(stepExecution.getJobExecution(), stepExecution);
View Full Code Here

TOP

Related Classes of org.springframework.yarn.batch.repository.bindings.StepExecutionType

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.