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.

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 18/08/2025 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-javaee-rf-javax/batch/runtime/context/StepContext.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com, StepContext (Java(TM) EE 7 Specification APIs)

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur van deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.