Class SnapSchedulerRunner

  • All Implemented Interfaces:
    org.springframework.boot.CommandLineRunner

    @Component
    public class SnapSchedulerRunner
    extends java.lang.Object
    implements org.springframework.boot.CommandLineRunner
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onExit()
      On exit application change picked tasks to false
      void run​(java.lang.String... arg0)
      Run after application start
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SnapSchedulerRunner

        public SnapSchedulerRunner()
    • Method Detail

      • run

        public void run​(java.lang.String... arg0)
                 throws java.lang.Exception
        Run after application start
        Specified by:
        run in interface org.springframework.boot.CommandLineRunner
        Throws:
        java.lang.Exception
      • onExit

        @PreDestroy
        public void onExit()
                    throws DatabaseException
        On exit application change picked tasks to false
        Throws:
        DatabaseException - thrown when database not configured well