Search in sources :

Example 1 with ContainerCapability

use of org.opentosca.toscana.model.capability.ContainerCapability in project TOSCAna by StuPro-TOSCAna.

the class MysqlDbms method init.

private void init() {
    ContainerCapability containerHost = getContainerHost();
    Set<Class<? extends RootNode>> validSourceTypes = containerHost.getValidSourceTypes();
    if (validSourceTypes.isEmpty()) {
        containerHost.getValidSourceTypes().add(MysqlDatabase.class);
    }
    setDefault(PORT, getPort().orElse(3306));
}
Also used : ContainerCapability(org.opentosca.toscana.model.capability.ContainerCapability)

Example 2 with ContainerCapability

use of org.opentosca.toscana.model.capability.ContainerCapability in project TOSCAna by StuPro-TOSCAna.

the class WebServer method init.

private void init() {
    setDefault(DATA_ENDPOINT, new EndpointCapability(getChildEntity(DATA_ENDPOINT)));
    setDefault(ADMIN_ENDPOINT, new AdminEndpointCapability(getChildEntity(ADMIN_ENDPOINT)));
    setDefault(CONTAINER_HOST, new ContainerCapability(getChildEntity(CONTAINER_HOST)));
}
Also used : AdminEndpointCapability(org.opentosca.toscana.model.capability.AdminEndpointCapability) ContainerCapability(org.opentosca.toscana.model.capability.ContainerCapability) AdminEndpointCapability(org.opentosca.toscana.model.capability.AdminEndpointCapability) EndpointCapability(org.opentosca.toscana.model.capability.EndpointCapability)

Example 3 with ContainerCapability

use of org.opentosca.toscana.model.capability.ContainerCapability in project TOSCAna by StuPro-TOSCAna.

the class Compute method init.

private void init() {
    setDefault(HOST, new ContainerCapability(getChildEntity(HOST)));
    setDefault(OS, new OsCapability(getChildEntity(OS)));
    setDefault(ENDPOINT, new AdminEndpointCapability(getChildEntity(ENDPOINT)));
    setDefault(SCALABLE, new ScalableCapability(getChildEntity(SCALABLE)));
    setDefault(BINDING, new BindableCapability(getChildEntity(BINDING)));
    setDefault(LOCAL_STORAGE, new BlockStorageRequirement(getChildEntity(LOCAL_STORAGE)));
}
Also used : ScalableCapability(org.opentosca.toscana.model.capability.ScalableCapability) AdminEndpointCapability(org.opentosca.toscana.model.capability.AdminEndpointCapability) BlockStorageRequirement(org.opentosca.toscana.model.requirement.BlockStorageRequirement) OsCapability(org.opentosca.toscana.model.capability.OsCapability) ContainerCapability(org.opentosca.toscana.model.capability.ContainerCapability) BindableCapability(org.opentosca.toscana.model.capability.BindableCapability)

Example 4 with ContainerCapability

use of org.opentosca.toscana.model.capability.ContainerCapability in project TOSCAna by StuPro-TOSCAna.

the class ContainerRuntime method init.

private void init() {
    setDefault(CONTAINER_HOST, new ContainerCapability(getChildEntity(CONTAINER_HOST)));
    setDefault(SCALABLE, new ScalableCapability(getChildEntity(SCALABLE)));
}
Also used : ScalableCapability(org.opentosca.toscana.model.capability.ScalableCapability) ContainerCapability(org.opentosca.toscana.model.capability.ContainerCapability)

Aggregations

ContainerCapability (org.opentosca.toscana.model.capability.ContainerCapability)4 AdminEndpointCapability (org.opentosca.toscana.model.capability.AdminEndpointCapability)2 ScalableCapability (org.opentosca.toscana.model.capability.ScalableCapability)2 BindableCapability (org.opentosca.toscana.model.capability.BindableCapability)1 EndpointCapability (org.opentosca.toscana.model.capability.EndpointCapability)1 OsCapability (org.opentosca.toscana.model.capability.OsCapability)1 BlockStorageRequirement (org.opentosca.toscana.model.requirement.BlockStorageRequirement)1