Class SnapSchedulerRunner
- java.lang.Object
-
- io.opensw.scheduler.core.scheduler.SnapSchedulerRunner
-
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner
@Component public class SnapSchedulerRunner extends java.lang.Object implements org.springframework.boot.CommandLineRunner
-
-
Constructor Summary
Constructors Constructor Description SnapSchedulerRunner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonExit()On exit application change picked tasks to falsevoidrun(java.lang.String... arg0)Run after application start
-
-
-
Method Detail
-
run
public void run(java.lang.String... arg0) throws java.lang.ExceptionRun after application start- Specified by:
runin interfaceorg.springframework.boot.CommandLineRunner- Throws:
java.lang.Exception
-
onExit
@PreDestroy public void onExit() throws DatabaseExceptionOn exit application change picked tasks to false- Throws:
DatabaseException- thrown when database not configured well
-
-