Class VelocitySchedulerHandler

  • All Implemented Interfaces:
    com.skytix.schedulerclient.SchedulerEventHandler

    public abstract class VelocitySchedulerHandler
    extends com.skytix.schedulerclient.BaseSchedulerEventHandler
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeartbeatInterval()  
      java.time.LocalDateTime getLastHeartbeat()  
      void handleEvent​(org.apache.mesos.v1.scheduler.Protos.Event aEvent)  
      void onDisconnect()  
      abstract void onHeartbeatFail()  
      void onSubscribe​(org.apache.mesos.v1.scheduler.Protos.Event.Subscribed aSubscribeEvent)  
      void onTerminate​(java.lang.Exception aException)  
      • Methods inherited from class com.skytix.schedulerclient.BaseSchedulerEventHandler

        getSchedulerRemote, onSubscribe
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.skytix.schedulerclient.SchedulerEventHandler

        onExit
    • Constructor Detail

      • VelocitySchedulerHandler

        public VelocitySchedulerHandler​(TaskRepository<VelocityTask> aTaskRepository,
                                        io.micrometer.core.instrument.MeterRegistry aMeterRegistry,
                                        VelocitySchedulerConfig aConfig,
                                        java.util.concurrent.Executor aMainThreadPool,
                                        java.util.concurrent.Executor aGeneralThreadPool,
                                        java.util.concurrent.SubmissionPublisher<VelocityTask> aNewTaskPublisher)
    • Method Detail

      • onSubscribe

        public void onSubscribe​(org.apache.mesos.v1.scheduler.Protos.Event.Subscribed aSubscribeEvent)
        Specified by:
        onSubscribe in class com.skytix.schedulerclient.BaseSchedulerEventHandler
      • handleEvent

        public void handleEvent​(org.apache.mesos.v1.scheduler.Protos.Event aEvent)
      • getLastHeartbeat

        public java.time.LocalDateTime getLastHeartbeat()
      • getHeartbeatInterval

        public int getHeartbeatInterval()
      • onTerminate

        public void onTerminate​(java.lang.Exception aException)
      • onHeartbeatFail

        public abstract void onHeartbeatFail()
      • onDisconnect

        public void onDisconnect()