javax.batch.api.partition

Class PartitionPlanImpl

  • All Implemented Interfaces:
    PartitionPlan

    public class PartitionPlanImpl
    extends Object
    implements PartitionPlan
    The PartitionPlanImpl class provides a basic implementation of the PartitionPlan interface.
    • Constructor Detail

      • PartitionPlanImpl

        public PartitionPlanImpl()
    • Method Detail

      • setPartitions

        public void setPartitions(int count)
        Description copied from interface: PartitionPlan
        Set number of partitions.
        Specified by:
        setPartitions in interface PartitionPlan
        Parameters:
        count - specifies the partition count
      • setThreads

        public void setThreads(int count)
        Description copied from interface: PartitionPlan
        Set number of threads. Defaults to zero, which means thread count is equal to partition count.
        Specified by:
        setThreads in interface PartitionPlan
        Parameters:
        count - specifies the thread count
      • setPartitionsOverride

        public void setPartitionsOverride(boolean override)
        Description copied from interface: PartitionPlan
        Specify whether or not to override the partition count from the previous job execution. This applies only to step restart. The default is false.

        When false is specified, the partition count from the previous job execution is used and any new value set for partition count in the current run is ignored. In addition, partition results from the previous job execution are remembered, and only incomplete partitions are reprocessed.

        When true is specified, the partition count from the current run is used and all results from past partitions are discarded. Any resource cleanup or back out of work done in the previous run is the responsibility of the application. The PartitionReducer artifact's rollbackPartitionedStep method is invoked during restart before any partitions begin processing to provide a cleanup hook.

        Specified by:
        setPartitionsOverride in interface PartitionPlan
      • getPartitionsOverride

        public boolean getPartitionsOverride()
        Description copied from interface: PartitionPlan
        Return current value of partition override setting.
        Specified by:
        getPartitionsOverride in interface PartitionPlan
        Returns:
        override setting.
      • setPartitionProperties

        public void setPartitionProperties(Properties[] props)
        Description copied from interface: PartitionPlan
        Sets array of substitution Properties objects for the set of Partitions.
        Specified by:
        setPartitionProperties in interface PartitionPlan
        Parameters:
        props - specifies the Properties object array
      • getPartitions

        public int getPartitions()
        Description copied from interface: PartitionPlan
        Gets count of Partitions.
        Specified by:
        getPartitions in interface PartitionPlan
        Returns:
        Partition count
      • getThreads

        public int getThreads()
        Description copied from interface: PartitionPlan
        Gets count of threads.
        Specified by:
        getThreads in interface PartitionPlan
        Returns:
        thread count

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

07/10/2025 04:09:14 Cette version de la page est en cache (à la date du 07/10/2025 04:09:14) 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/api/partition/PartitionPlanImpl.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/en/java/, Class PartitionPlanImpl

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.