javax.batch.runtime.context

Interface StepContext


  • public interface StepContext
    • Method Detail

      • getStepName

        String getStepName()
        Get step name
        Returns:
        value of 'id' attribute from
      • getTransientUserData

        Object getTransientUserData()
        The getTransientUserData method returns a transient data object belonging to the current Job XML execution element.
        Returns:
        user-specified type
      • setTransientUserData

        void setTransientUserData(Object data)
        The setTransientUserData method stores a transient data object into the current batch context.
        Parameters:
        data - is the user-specified type
      • getStepExecutionId

        long getStepExecutionId()
        The getStepExecutionId method returns the current step's execution id.
        Returns:
        step execution id
      • getProperties

        Properties getProperties()
        The getProperties method returns the step level properties specified in a job definition.
        Returns:
        job level properties
      • getPersistentUserData

        Serializable getPersistentUserData()
        The getPersistentUserData method returns a persistent data object belonging to the current step. The user data type must implement java.util.Serializable. This data is saved as part of a step's checkpoint. For a step that does not do checkpoints, it is saved after the step ends. It is available upon restart.
        Returns:
        user-specified type
      • setPersistentUserData

        void setPersistentUserData(Serializable data)
        The setPersistentUserData method stores a persistent data object into the current step. The user data type must implement java.util.Serializable. This data is saved as part of a step's checkpoint. For a step that does not do checkpoints, it is saved after the step ends. It is available upon restart.
        Parameters:
        data - is the user-specified type
      • getBatchStatus

        BatchStatus getBatchStatus()
        The getBatchStatus method returns the current batch status of the current step. This value is set by the batch runtime and changes as the batch status changes.
        Returns:
        batch status string
      • getExitStatus

        String getExitStatus()
        The getExitStatus method simply returns the exit status value stored into the step context through the setExitStatus method or null.
        Returns:
        exit status string
      • setExitStatus

        void setExitStatus(String status)
        The setExitStatus method assigns the user-specified exit status for the current step. When the step ends, the exit status of the step is the value specified through setExitStatus. If setExitStatus was not called or was called with a null value, then the exit status defaults to the batch status of the step.
      • getException

        Exception getException()
        The getException method returns the last exception thrown from a step level batch artifact to the batch runtime.
        Returns:
        the last exception
      • getMetrics

        Metric[] getMetrics()
        The getMetrics method returns an array of step level metrics. These are things like commits, skips, etc.
        Returns:
        metrics array
        See Also:
        for definition of standard metrics.

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Version en cache

21/08/2025 18:30:21 Cette version de la page est en cache (à la date du 21/08/2025 18:30:21) afin d'accélérer le traitement.
Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.

Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/batch/runtime/context/StepContext.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, StepContext (Java(TM) EE 7 Specification APIs)

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.