クラス TaskJobLauncherApplicationRunner

java.lang.ObjectSE
org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunner
org.springframework.cloud.task.batch.handler.TaskJobLauncherApplicationRunner
実装されたすべてのインターフェース:
org.springframework.beans.factory.Awareorg.springframework.boot.ApplicationRunnerorg.springframework.context.ApplicationEventPublisherAwareorg.springframework.core.Ordered

public class TaskJobLauncherApplicationRunner extends org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunner
ApplicationRunner から launch の Spring Batch ジョブ。デフォルトでは周囲のコンテキスト内のすべてのジョブを実行し、JobLauncher の TaskExecutor が指定されていない場合は、FAILED の BatchStatus を返す最初のジョブで例外をスローします。JobLauncher で TaskExecutor が指定されている場合は、すべてのジョブが起動され、1 つ以上のジョブの BatchStatus が FAILED である場合は例外がスローされます。TaskJobLauncherApplicationRunner は、jobName を提供することで特定のジョブを起動するためにも使用できます。TaskJobLauncherApplicationRunner は、使用中の場合は JobLauncherApplicationRunner の代わりに使用されます。
導入:
2.3.0
作成者:
Glenn Renfro
  • フィールドサマリー

    クラス org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunner から継承されたフィールド

    DEFAULT_ORDER

    インターフェース org.springframework.core.Ordered から継承されたフィールド

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • コンストラクターのサマリー

    コンストラクター
    コンストラクター
    説明
    TaskJobLauncherApplicationRunner(org.springframework.batch.core.launch.JobLauncher jobLauncher, org.springframework.batch.core.explore.JobExplorer jobExplorer, org.springframework.batch.core.repository.JobRepository jobRepository, TaskBatchProperties taskBatchProperties)
    新しい TaskJobLauncherApplicationRunner を作成します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    protected void
    execute(org.springframework.batch.core.Job job, org.springframework.batch.core.JobParameters jobParameters)
    void
    run(StringSE... args)
    void
    setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)

    クラス org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunner から継承されたメソッド

    getOrder, launchJobFromProperties, run, setJobName, setJobParametersConverter, setJobRegistry, setJobs, setOrder, validate

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • コンストラクターの詳細

    • TaskJobLauncherApplicationRunner

      public TaskJobLauncherApplicationRunner(org.springframework.batch.core.launch.JobLauncher jobLauncher, org.springframework.batch.core.explore.JobExplorer jobExplorer, org.springframework.batch.core.repository.JobRepository jobRepository, TaskBatchProperties taskBatchProperties)
      新しい TaskJobLauncherApplicationRunner を作成します。
      パラメーター:
      jobLauncher - ジョブを始める
      jobExplorer - 以前の実行についてジョブリポジトリを確認する
      jobRepository - ジョブの実行時に、指定されたパラメーターでジョブインスタンスが存在するかどうかを確認する
      taskBatchProperties - the properties used to configure the taskBatchProperties.
  • メソッドの詳細

    • setApplicationEventPublisher

      public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
      次で指定:
      インターフェース org.springframework.context.ApplicationEventPublisherAwaresetApplicationEventPublisher 
      オーバーライド:
      クラス org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunnersetApplicationEventPublisher 
    • run

      public void run(StringSE... args) throws org.springframework.batch.core.JobExecutionException
      オーバーライド:
      クラス org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunnerrun 
      例外:
      org.springframework.batch.core.JobExecutionException
    • execute

      protected void execute(org.springframework.batch.core.Job job, org.springframework.batch.core.JobParameters jobParameters) throws org.springframework.batch.core.repository.JobExecutionAlreadyRunningException, org.springframework.batch.core.repository.JobRestartException, org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException, org.springframework.batch.core.JobParametersInvalidException
      オーバーライド:
      クラス org.springframework.boot.autoconfigure.batch.JobLauncherApplicationRunnerexecute 
      例外:
      org.springframework.batch.core.repository.JobExecutionAlreadyRunningException
      org.springframework.batch.core.repository.JobRestartException
      org.springframework.batch.core.repository.JobInstanceAlreadyCompleteException
      org.springframework.batch.core.JobParametersInvalidException