@Override public void start(Container container) { assertValid(); getContainerApplication(container, true).start(); }
protected void doStart(Exchange exchange, IDomain domain) throws CamelExchangeException { String name = exchange.getIn().getHeader(OpenShiftConstants.APPLICATION, getEndpoint().getApplication(), String.class); if (name == null) { throw new CamelExchangeException("Application not specified", exchange); } IApplication app = domain.getApplicationByName(name); if (app == null) { throw new CamelExchangeException("Application with id " + name + " not found.", exchange); } else { app.start(); } }
@Override protected Object doExecute() throws Exception { IOpenShiftConnection connection = getOrCreateConnection(); for (IDomain domain : connection.getDomains()) { if (domainId == null || domainId.equals(domain.getId())) { IApplication application = domain.getApplicationByName(applicationName); application.start(); } } return null; } }