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));
}
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)));
}
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)));
}
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)));
}
Aggregations