Search in sources :

Example 16 with RuntimeOperationException

use of org.guvnor.ala.exceptions.RuntimeOperationException in project kie-wb-common by kiegroup.

the class OpenShiftRuntimeManager method start.

@Override
public void start(RuntimeId runtimeId) throws RuntimeOperationException {
    OpenShiftRuntime runtime = (OpenShiftRuntime) runtimeRegistry.getRuntimeById(runtimeId.getId());
    try {
        LOG.info("Starting runtime: " + runtimeId.getId());
        openshift.getOpenShiftClient(runtime.getProviderId()).start(runtime.getId());
        refresh(runtimeId);
        LOG.info("Started runtime: " + runtimeId.getId());
    } catch (OpenShiftClientException ex) {
        LOG.error("Error Starting runtime: " + runtimeId.getId(), ex);
        throw new RuntimeOperationException("Error Starting runtime: " + runtimeId.getId(), ex);
    }
}
Also used : OpenShiftRuntime(org.guvnor.ala.openshift.model.OpenShiftRuntime) OpenShiftClientException(org.guvnor.ala.openshift.access.exceptions.OpenShiftClientException) RuntimeOperationException(org.guvnor.ala.exceptions.RuntimeOperationException)

Aggregations

RuntimeOperationException (org.guvnor.ala.exceptions.RuntimeOperationException)16 OpenShiftClientException (org.guvnor.ala.openshift.access.exceptions.OpenShiftClientException)6 DockerException (com.spotify.docker.client.DockerException)5 DockerRuntime (org.guvnor.ala.docker.model.DockerRuntime)5 OpenShiftRuntime (org.guvnor.ala.openshift.model.OpenShiftRuntime)5 WildflyRuntime (org.guvnor.ala.wildfly.model.WildflyRuntime)5 WildflyClientException (org.guvnor.ala.wildfly.access.exceptions.WildflyClientException)4 ContainerInfo (com.spotify.docker.client.messages.ContainerInfo)1 ContainerState (com.spotify.docker.client.messages.ContainerState)1 DockerRuntimeState (org.guvnor.ala.docker.model.DockerRuntimeState)1 OpenShiftProvider (org.guvnor.ala.openshift.model.OpenShiftProvider)1 OpenShiftRuntimeState (org.guvnor.ala.openshift.model.OpenShiftRuntimeState)1 WildflyAppState (org.guvnor.ala.wildfly.access.WildflyAppState)1 WildflyRuntimeState (org.guvnor.ala.wildfly.model.WildflyRuntimeState)1