Search in sources :

Example 1 with KieContainerStatus

use of org.kie.server.api.model.KieContainerStatus in project kie-wb-common by kiegroup.

the class BuildExecutor method makeContainerSpec.

private ContainerSpec makeContainerSpec(final String containerId, final String containerAlias, final ServerTemplate serverTemplate, final Map<String, String> parameters) {
    final ReleaseId releaseId = makeReleaseId();
    final KieContainerStatus status = KieContainerStatus.STOPPED;
    final ServerTemplateKey serverTemplateKey = new ServerTemplateKey(serverTemplate.getId(), serverTemplate.getId());
    return new ContainerSpec(containerId, containerAlias, serverTemplateKey, releaseId, status, makeConfigs(serverTemplate, parameters));
}
Also used : ServerTemplateKey(org.kie.server.controller.api.model.spec.ServerTemplateKey) ContainerSpec(org.kie.server.controller.api.model.spec.ContainerSpec) ReleaseId(org.kie.server.api.model.ReleaseId) KieContainerStatus(org.kie.server.api.model.KieContainerStatus)

Aggregations

KieContainerStatus (org.kie.server.api.model.KieContainerStatus)1 ReleaseId (org.kie.server.api.model.ReleaseId)1 ContainerSpec (org.kie.server.controller.api.model.spec.ContainerSpec)1 ServerTemplateKey (org.kie.server.controller.api.model.spec.ServerTemplateKey)1