Package org.apache.aurora.gen

Examples of org.apache.aurora.gen.ServerInfo


    Injector injector = Guice.createInjector(
        new AbstractModule() {
          @Override
          protected void configure() {
            bind(CapabilityValidator.class).toInstance(capabilityValidator);
            bind(IServerInfo.class).toInstance(IServerInfo.build(new ServerInfo()));
            MockDecoratedThrift.bindForwardedMock(binder(), mockThrift);
          }
        },
        new AopModule(toggledMethods));
    return injector.getInstance(Iface.class);
View Full Code Here


          }

          @Override
          protected void configure() {
            bind(Storage.class).toInstance(storage.storage);
            bind(IServerInfo.class).toInstance(IServerInfo.build(new ServerInfo()
                .setClusterName("unittest")
                .setThriftAPIVersion(100)
                .setStatsUrlPrefix("none")));
            bind(TaskGroupsSettings.class).toInstance(
                new TaskGroupsSettings(bindMock(BackoffStrategy.class), RateLimiter.create(1000)));
View Full Code Here

            bind(NonVolatileStorage.class).toInstance(storageTestUtil.storage);
            bindMock(StorageBackup.class);
            bind(QuotaManager.class).toInstance(quotaManager);
            bind(SessionValidator.class).toInstance(validator);
            bind(CapabilityValidator.class).toInstance(new CapabilityValidatorFake(validator));
            bind(IServerInfo.class).toInstance(IServerInfo.build(new ServerInfo()));
            bindMock(CronPredictor.class);
          }
        }
    );
    thrift = injector.getInstance(AuroraAdmin.Iface.class);
View Full Code Here

    assertNotNull(decoratedThrift.getJobs(ROLE).DEPRECATEDversion);
  }

  @Test
  public void testServerInfoIsSet() throws Exception {
    ServerInfo previousServerInfo =
        new ServerInfo().setClusterName("FAKECLUSTER").setThriftAPIVersion(100000);

    Response response = okResponse(
        Result.getJobsResult(
            new GetJobsResult().setConfigs(ImmutableSet.<JobConfiguration>of())))
        .setServerInfo(previousServerInfo);
View Full Code Here

    bind(Clock.class).toInstance(Clock.SYSTEM_CLOCK);

    bind(IServerInfo.class).toInstance(
        IServerInfo.build(
            new ServerInfo()
                .setClusterName(clusterName)
                .setThriftAPIVersion(THRIFT_API_VERSION)
                .setStatsUrlPrefix(statsUrlPrefix)));

    // Filter layering: notifier filter -> base impl
View Full Code Here

    assertNotNull(decoratedThrift.getJobs(ROLE).getDEPRECATEDversion());
  }

  @Test
  public void testServerInfoIsSet() throws Exception {
    ServerInfo previousServerInfo =
        new ServerInfo().setClusterName("FAKECLUSTER").setThriftAPIVersion(100000);

    Response response = okResponse(
        Result.getJobsResult(
            new GetJobsResult().setConfigs(ImmutableSet.<JobConfiguration>of())))
        .setServerInfo(previousServerInfo);
View Full Code Here

    bind(Clock.class).toInstance(Clock.SYSTEM_CLOCK);

    bind(IServerInfo.class).toInstance(
        IServerInfo.build(
            new ServerInfo()
                .setClusterName(clusterName)
                .setThriftAPIVersion(THRIFT_API_VERSION)
                .setStatsUrlPrefix(statsUrlPrefix)));

    // Filter layering: notifier filter -> base impl
View Full Code Here

            bind(NonVolatileStorage.class).toInstance(storageTestUtil.storage);
            bindMock(StorageBackup.class);
            bind(QuotaManager.class).toInstance(quotaManager);
            bind(SessionValidator.class).toInstance(validator);
            bind(CapabilityValidator.class).toInstance(new CapabilityValidatorFake(validator));
            bind(IServerInfo.class).toInstance(IServerInfo.build(new ServerInfo()));
            bindMock(CronPredictor.class);
          }
        }
    );
    thrift = injector.getInstance(AuroraAdmin.Iface.class);
View Full Code Here

          }

          @Override
          protected void configure() {
            bind(Storage.class).toInstance(storage.storage);
            bind(IServerInfo.class).toInstance(IServerInfo.build(new ServerInfo()
                .setClusterName("unittest")
                .setThriftAPIVersion(100)
                .setStatsUrlPrefix("none")));
            bind(TaskGroupsSettings.class).toInstance(
                new TaskGroupsSettings(
View Full Code Here

TOP

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

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.