Package com.hubspot.singularity.data

Examples of com.hubspot.singularity.data.ExecutorIdGenerator


  @Before
  public void createMocks() {
    pendingTask = new SingularityPendingTask(new SingularityPendingTaskId("test", "1", 0, 0, PendingType.IMMEDIATE), Optional.<String>absent());

    final SingularitySlaveAndRackManager rackManager = mock(SingularitySlaveAndRackManager.class);
    final ExecutorIdGenerator idGenerator = mock(ExecutorIdGenerator.class);

    when(idGenerator.getNextExecutorId()).then(new CreateFakeId());

    builder = new SingularityMesosTaskBuilder(new ObjectMapper(), rackManager, idGenerator);

    resources = new Resources(1, 1, 0);
    offer = Offer.newBuilder()
View Full Code Here

TOP

Related Classes of com.hubspot.singularity.data.ExecutorIdGenerator

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.