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 java.lang.Object implements JobService, org.springframework.context.ApplicationContextAware
Created by Navid Mitchell on 3/19/20
-
-
Constructor Summary
Constructors Constructor Description DefaultJobService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description reactor.core.publisher.Flux<Result<?>>assemble(JobDefinition jobDefinition)Takes the givenJobDefinitionand assembles aFluxthat when subscribed to will execute all of theTask's within theJobDefinitionreactor.core.publisher.Flux<Result<?>>assemble(JobDefinition jobDefinition, ResultOptions options)Takes the givenJobDefinitionand assembles aFluxthat when subscribed to will execute all of theTask's within theJobDefinitionvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
-
-
Method Detail
-
assemble
public reactor.core.publisher.Flux<Result<?>> assemble(JobDefinition jobDefinition)
Description copied from interface:JobServiceTakes the givenJobDefinitionand assembles aFluxthat when subscribed to will execute all of theTask's within theJobDefinition- Specified by:
assemblein interfaceJobService- Parameters:
jobDefinition- to assemble- Returns:
- the
Fluxthat will execute theJobDefinition
-
assemble
public reactor.core.publisher.Flux<Result<?>> assemble(JobDefinition jobDefinition, ResultOptions options)
Description copied from interface:JobServiceTakes the givenJobDefinitionand assembles aFluxthat when subscribed to will execute all of theTask's within theJobDefinition- Specified by:
assemblein interfaceJobService- Parameters:
jobDefinition- to assembleoptions- theResultOptionsto use when executing theJobDefinitionthis will determine theResultType's that you will receive from the emittedResult's- Returns:
- the
Fluxthat will execute theJobDefinition
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
-