Package org.apache.aurora.scheduler.events.PubsubEvent

Examples of org.apache.aurora.scheduler.events.PubsubEvent.SchedulerActive


  private Capture<Runnable> expectFullStartup() throws Exception {
    Capture<Runnable> handleRegistered = createCapture();
    delayedActions.onRegistered(capture(handleRegistered));
    leaderControl.advertise();
    eventSink.post(new SchedulerActive());
    return handleRegistered;
  }
View Full Code Here


  private void schedulerActivated(IScheduledTask... initialTasks) {
    for (IScheduledTask task : initialTasks) {
      vars.taskChangedState(TaskStateChange.initialized(task));
    }
    vars.schedulerActive(new SchedulerActive());
  }
View Full Code Here

        SlaTestUtil.makeTask(ImmutableMap.of(clock.nowMillis() - 1000, PENDING), 0)).anyTimes();
    storageUtil.expectOperations();

    control.replay();

    eventSink.post(new SchedulerActive());
    latch.await();
  }
View Full Code Here

        // The latter is preferable since it makes it easier to reason about the state of an
        // announced scheduler.
        delayedActions.onRegistered(new Runnable() {
          @Override
          public void run() {
            eventSink.post(new SchedulerActive());
            try {
              leaderControl.get().advertise();
            } catch (JoinException e) {
              LOG.log(Level.SEVERE, "Failed to advertise leader, shutting down.", e);
              stateMachine.transition(State.DEAD);
View Full Code Here

TOP

Related Classes of org.apache.aurora.scheduler.events.PubsubEvent.SchedulerActive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.