
org.jberet.camel.ChunkExecutionInfo Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2016 Red Hat, Inc. and/or its affiliates.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Cheng Fang - Initial API and implementation
*/
package org.jberet.camel;
import java.util.List;
/**
* This class represents batch chunk execution information.
*
* @see CamelChunkListener
* @since 1.3.0
*/
public final class ChunkExecutionInfo {
/**
* Current job execution id.
*/
private final long jobExecutionId;
/**
* Job name or id, as specified as {@code job id} attribute in job XML file.
*/
private final String jobName;
/**
* Current step execution id.
*/
private final long stepExecutionId;
/**
* Step name, as specified as {@code step id} attribute in job XML file.
*/
private final String stepName;
/**
* Any exception during chunk execution.
*/
private final Exception exception;
/**
* The item currently being processed. It may be null if the current
* execution stage (e.g., item reading or writing) does not involve an item.
*/
private final Object item;
/**
* The result object from processing. It may be null if the current
* execution stage (e.g., item reading or writing) does not involve a result.
*/
private final Object result;
/**
* The items being written by the current item writer. It may be null if
* the current execution stage (e.g., item reading or processing) does not
* involve such items.
*/
private final List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy