Class DefaultJobService

java.lang.Object
org.kinotic.continuum.grind.internal.api.DefaultJobService
All Implemented Interfaces:
JobService, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component public class DefaultJobService extends Object implements JobService, org.springframework.context.ApplicationContextAware
Created by Navid Mitchell on 3/19/20
  • Constructor Details

    • DefaultJobService

      public DefaultJobService()
  • Method Details

    • assemble

      public reactor.core.publisher.Flux<Result<?>> assemble(JobDefinition jobDefinition)
      Description copied from interface: JobService
      Takes the given JobDefinition and assembles a Flux that when subscribed to will execute all of the Task's within the JobDefinition
      Specified by:
      assemble in interface JobService
      Parameters:
      jobDefinition - to assemble
      Returns:
      the Flux that will execute the JobDefinition
    • assemble

      public reactor.core.publisher.Flux<Result<?>> assemble(JobDefinition jobDefinition, ResultOptions options)
      Description copied from interface: JobService
      Takes the given JobDefinition and assembles a Flux that when subscribed to will execute all of the Task's within the JobDefinition
      Specified by:
      assemble in interface JobService
      Parameters:
      jobDefinition - to assemble
      options - the ResultOptions to use when executing the JobDefinition this will determine the ResultType's that you will receive from the emitted Result's
      Returns:
      the Flux that will execute the JobDefinition
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException