@Override public void doStart() throws Exception { super.doStart(); }
@Override protected void doStart() throws Exception { super.doStart(); // checking references Assert.notNull(throttlingProcessor, "throttlingProcessor mustn't be null"); } }
@Override protected void doStart() throws Exception { super.doStart(); // checking references Assert.notNull(messageService, "messageService mustn't be null"); Assert.notNull(asyncEventNotifier, "asyncEventNotifier mustn't be null"); } }
@Override protected void doStart() throws Exception { super.doStart(); if (transactionStrategy == null) { transactionStrategy = resolveTransactionStrategy(); } }
@Override protected void doStart() throws Exception { // force creation of ReactiveStreamsService getReactiveStreamsService(); super.doStart(); }
@Override protected void doStart() throws Exception { super.doStart(); // create a scheduled thread pool with 1 thread as we only need one task as background task executor = getCamelContext().getExecutorServiceManager().newScheduledThreadPool(this, "MyBackgroundTask", 1); // schedule the task to run once every second executor.scheduleWithFixedDelay(this, 1, 1, TimeUnit.SECONDS); }
@Override protected void doStart() throws Exception { super.doStart(); // create a scheduled thread pool with 1 thread as we only need one task as background task executor = getCamelContext().getExecutorServiceManager().newScheduledThreadPool(this, "MyBackgroundTask", 1); // schedule the task to run once every second executor.scheduleWithFixedDelay(this, 1, 1, TimeUnit.SECONDS); }
@Override protected void doStart() throws Exception { super.doStart(); if (curator == null) { try { curator = (CuratorFramework) getCamelContext().getRegistry().lookupByName("curator"); if (curator != null) { LOG.debug("Zookeeper client found in camel registry. " + curator); } } catch (Exception exception) { } } managedGroupFactory = ManagedGroupFactoryBuilder.create(curator, getClass().getClassLoader(), this); }
@Override protected void doStart() throws Exception { super.doStart(); if (curator == null) { try { CuratorFramework _curator = (CuratorFramework) getCamelContext().getRegistry().lookupByName("curator"); setCurator(_curator); if (curator != null) { LOG.debug("Zookeeper client found in camel registry. " + curator); } } catch (Exception exception) { LOG.warn(exception); } } managedGroupFactory = ManagedGroupFactoryBuilder.create(curator, getClass().getClassLoader(), this); }
@Override protected void doStart() throws Exception { super.doStart(); zookeeperGroupSupport.setCamelContext(getCamelContext()); ServiceHelper.startService(zookeeperGroupSupport); }
@Override protected void doStart() throws Exception { super.doStart(); if (lifecycleMode == IgniteLifecycleMode.USER_MANAGED) { return; } // Try to load the configuration from the resource. if (configurationResource != null) { if (configurationResource instanceof URL) { ignite = Ignition.start((URL) configurationResource); } else if (configurationResource instanceof InputStream) { ignite = Ignition.start((InputStream) configurationResource); } else if (configurationResource instanceof String) { ignite = Ignition.start((String) configurationResource); } else { throw new IllegalStateException("An unsupported configuration resource was provided to the Ignite component. " + "Supported types are: URL, InputStream, String."); } } else if (igniteConfiguration != null) { ignite = Ignition.start(igniteConfiguration); } else { throw new IllegalStateException("No configuration resource or IgniteConfiguration was provided to the Ignite component."); } }
@Override protected void doStart() throws Exception { Optional<Component> component = createNewBaseComponent(); if (component.isPresent()) { componentSchemeAlias = Optional.of(componentScheme + "-" + componentId); if (!catalog.findComponentNames().contains(componentSchemeAlias)) { catalog.addComponent( componentSchemeAlias.get(), definition.getComponent().getJavaType(), catalog.componentJSonSchema(componentScheme) ); } LOGGER.info("Register component: {} (type: {}) with scheme: {} and alias: {}", this.componentId, component.get().getClass().getName(), this.componentScheme, this.componentSchemeAlias.get() ); // remove old component if present so getCamelContext().removeComponent(this.componentSchemeAlias.get()); // ensure component is started and stopped when Camel shutdown getCamelContext().addService(component, true, true); getCamelContext().addComponent(this.componentSchemeAlias.get(), component.get()); } else { this.componentSchemeAlias = Optional.empty(); } LOGGER.debug("Starting connector: {}", componentId); super.doStart(); }
@Override protected void doStart() throws Exception { super.doStart(); RestConfiguration config = getCamelContext().getRestConfiguration(getComponentName(), true); // configure additional options on undertow configuration if (config.getComponentProperties() != null && !config.getComponentProperties().isEmpty()) { setProperties(this, config.getComponentProperties()); } }
@Override protected void doStart() throws Exception { super.doStart(); ObjectHelper.notNull(device, "device"); device.setDimseRQHandler(dicomServiceRegistry); device.setExecutor(getExecutor()); device.setScheduledExecutor(getScheduledExecutor()); device.bindConnections(); }