Class VelocityMesosScheduler

  • All Implemented Interfaces:
    MesosScheduler, java.io.Closeable, java.lang.AutoCloseable

    public class VelocityMesosScheduler
    extends java.lang.Object
    implements MesosScheduler
    • Constructor Detail

      • VelocityMesosScheduler

        public VelocityMesosScheduler​(VelocitySchedulerConfig aSchedulerConfig,
                                      io.micrometer.core.instrument.MeterRegistry aMeterRegistry)
    • Method Detail

      • getNumQueuedTasks

        public int getNumQueuedTasks()
      • getNumActiveTasks

        public int getNumActiveTasks()
      • getActiveTasksById

        public java.util.Map<java.lang.String,​VelocityTask> getActiveTasksById()
      • getQueuedTasksById

        public java.util.Map<java.lang.String,​VelocityTask> getQueuedTasksById()
      • getTaskById

        public VelocityTask getTaskById​(java.lang.String aTaskId)
      • getLastHeartbeat

        public java.time.LocalDateTime getLastHeartbeat()
      • drainAndTeardown

        public void drainAndTeardown()
                              throws java.lang.Exception
        Wait till all tasks have been completed and then send a teardown call to the Master.
        Throws:
        java.lang.Exception
      • drainAndClose

        public void drainAndClose()
                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException