Search in sources :

Example 1 with InMemoryStatusService

use of com.yahoo.vespa.orchestrator.status.InMemoryStatusService in project vespa by vespa-engine.

the class OrchestratorImplTest method setUp.

@Before
public void setUp() throws Exception {
    // Extract applications and hosts from dummy instance lookup service
    Iterator<ApplicationInstance> iterator = DummyInstanceLookupService.getApplications().iterator();
    ApplicationInstanceReference app1_ref = iterator.next().reference();
    app1 = OrchestratorUtil.toApplicationId(app1_ref);
    app1_host1 = DummyInstanceLookupService.getContentHosts(app1_ref).iterator().next();
    app2 = OrchestratorUtil.toApplicationId(iterator.next().reference());
    clustercontroller = new ClusterControllerClientFactoryMock();
    orchestrator = new OrchestratorImpl(clustercontroller, new InMemoryStatusService(), new OrchestratorConfig(new OrchestratorConfig.Builder()), new DummyInstanceLookupService());
    clustercontroller.setAllDummyNodesAsUp();
}
Also used : OrchestratorConfig(com.yahoo.vespa.orchestrator.config.OrchestratorConfig) ClusterControllerClientFactoryMock(com.yahoo.vespa.orchestrator.controller.ClusterControllerClientFactoryMock) ApplicationInstance(com.yahoo.vespa.applicationmodel.ApplicationInstance) InMemoryStatusService(com.yahoo.vespa.orchestrator.status.InMemoryStatusService) ApplicationInstanceReference(com.yahoo.vespa.applicationmodel.ApplicationInstanceReference) Before(org.junit.Before)

Aggregations

ApplicationInstance (com.yahoo.vespa.applicationmodel.ApplicationInstance)1 ApplicationInstanceReference (com.yahoo.vespa.applicationmodel.ApplicationInstanceReference)1 OrchestratorConfig (com.yahoo.vespa.orchestrator.config.OrchestratorConfig)1 ClusterControllerClientFactoryMock (com.yahoo.vespa.orchestrator.controller.ClusterControllerClientFactoryMock)1 InMemoryStatusService (com.yahoo.vespa.orchestrator.status.InMemoryStatusService)1 Before (org.junit.Before)1