use of org.guvnor.ala.openshift.access.exceptions.OpenShiftClientException 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);
}
}
Aggregations