Examples of Vetoed


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

  @Test
  public void testEvents() {
    Set<Veto> vetoes = ImmutableSet.of(VETO_1, VETO_2);
    expect(delegate.filter(TASK_RESOURCES, SLAVE, TASK, TASK_ID, emptyJob)).andReturn(vetoes);
    eventSink.post(new Vetoed(TASK_ID, vetoes));

    control.replay();

    assertEquals(vetoes, filter.filter(TASK_RESOURCES, SLAVE, TASK, TASK_ID, emptyJob));
  }
View Full Code Here

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

  private Set<Veto> vetoes(Veto... vetoes) {
    return ImmutableSet.<Veto>builder().add(vetoes).build();
  }

  private void vetoed(Veto... vetoes) {
    nearest.vetoed(new Vetoed(TASK, ImmutableSet.<Veto>builder().add(vetoes).build()));
  }
View Full Code Here

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

      String taskId,
      AttributeAggregate jobState) {

    Set<Veto> vetoes = delegate.filter(offer, slaveHost, task, taskId, jobState);
    if (!vetoes.isEmpty()) {
      eventSink.post(new Vetoed(taskId, vetoes));
    }

    return vetoes;
  }
View Full Code Here

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

      String taskId,
      AttributeAggregate jobState) {

    Set<Veto> vetoes = delegate.filter(offer, hostAttributes, task, taskId, jobState);
    if (!vetoes.isEmpty()) {
      eventSink.post(new Vetoed(taskId, vetoes));
    }

    return vetoes;
  }
View Full Code Here

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

  @Test
  public void testEvents() {
    Set<Veto> vetoes = ImmutableSet.of(VETO_1, VETO_2);
    expect(delegate.filter(TASK_RESOURCES, ATTRIBUTES, TASK, TASK_ID, emptyJob)).andReturn(vetoes);
    eventSink.post(new Vetoed(TASK_ID, vetoes));

    control.replay();

    assertEquals(vetoes, filter.filter(TASK_RESOURCES, ATTRIBUTES, TASK, TASK_ID, emptyJob));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.