Search in sources :

Example 16 with ServiceCluster

use of com.yahoo.vespa.applicationmodel.ServiceCluster in project vespa by vespa-engine.

the class VespaModelUtilTest method verifyStorageClusterIsRecognized.

@Test
public void verifyStorageClusterIsRecognized() {
    ServiceCluster cluster = createServiceCluster(VespaModelUtil.STORAGENODE_SERVICE_TYPE);
    assertTrue(VespaModelUtil.isStorage(cluster));
    cluster = createServiceCluster(VespaModelUtil.STORAGENODE_SERVICE_TYPE);
    assertTrue(VespaModelUtil.isStorage(cluster));
}
Also used : ServiceCluster(com.yahoo.vespa.applicationmodel.ServiceCluster) Test(org.junit.Test)

Aggregations

ServiceCluster (com.yahoo.vespa.applicationmodel.ServiceCluster)16 ServiceType (com.yahoo.vespa.applicationmodel.ServiceType)11 Test (org.junit.Test)11 HostName (com.yahoo.vespa.applicationmodel.HostName)8 ServiceInstance (com.yahoo.vespa.applicationmodel.ServiceInstance)7 ApplicationInstance (com.yahoo.vespa.applicationmodel.ApplicationInstance)5 ApplicationInstanceId (com.yahoo.vespa.applicationmodel.ApplicationInstanceId)5 ClusterId (com.yahoo.vespa.applicationmodel.ClusterId)5 ConfigId (com.yahoo.vespa.applicationmodel.ConfigId)5 TenantId (com.yahoo.vespa.applicationmodel.TenantId)5 ApplicationInstanceReference (com.yahoo.vespa.applicationmodel.ApplicationInstanceReference)4 ServiceStatus (com.yahoo.vespa.applicationmodel.ServiceStatus)3 HashMap (java.util.HashMap)3 HashSet (java.util.HashSet)3 ApplicationId (com.yahoo.config.provision.ApplicationId)2 List (java.util.List)2 Map (java.util.Map)2 Set (java.util.Set)2 Collectors (java.util.stream.Collectors)2 ApplicationInfo (com.yahoo.config.model.api.ApplicationInfo)1