Class ClusterSizeMonitor


  • public class ClusterSizeMonitor
    extends Object
    • Method Detail

      • start

        @PostConstruct
        public void start()
      • stop

        @PreDestroy
        public void stop()
      • waitForMinimumWorkers

        public com.google.common.util.concurrent.ListenableFuture<?> waitForMinimumWorkers​(int executionMinCount,
                                                                                           io.airlift.units.Duration executionMaxWait)
        Returns a listener that completes when the minimum number of workers for the cluster has been met. Note: caller should not add a listener using the direct executor, as this can delay the notifications for other listeners.
      • getRequiredWorkers

        public int getRequiredWorkers()