Package org.apache.aurora.gen

Examples of org.apache.aurora.gen.JobConfiguration


    builder.add(createTransaction(Op.saveFrameworkId(new SaveFrameworkId("bob"))));
    storageUtil.schedulerStore.saveFrameworkId("bob");

    SaveAcceptedJob acceptedJob =
        new SaveAcceptedJob().setManagerId("CRON").setJobConfig(new JobConfiguration());
    builder.add(createTransaction(Op.saveAcceptedJob(acceptedJob)));
    storageUtil.jobStore.saveAcceptedJob(
        acceptedJob.getManagerId(),
        IJobConfiguration.build(acceptedJob.getJobConfig()));
View Full Code Here


  }

  @Test
  public void testSaveAcceptedJob() throws Exception {
    final IJobConfiguration jobConfig =
        IJobConfiguration.build(new JobConfiguration().setKey(JOB_KEY.newBuilder()));
    final String managerId = "CRON";
    new MutationFixture() {
      @Override
      protected void setupExpectations() throws Exception {
        storageUtil.expectWriteOperation();
View Full Code Here

                    .setProduction(production))));
  }

  private IJobConfiguration createJob(IScheduledTask scheduledTask, int instanceCount) {
    TaskConfig task = scheduledTask.newBuilder().getAssignedTask().getTask();
    return IJobConfiguration.build(new JobConfiguration()
        .setKey(task.getJob())
        .setTaskConfig(task)
        .setInstanceCount(instanceCount));
  }
View Full Code Here

TOP

Related Classes of org.apache.aurora.gen.JobConfiguration

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.