@Override protected void doStart() throws Exception { initialPoll = true; super.doStart(); }
@Override protected void doStart() throws Exception { super.doStart(); if (twitter4jConsumer instanceof AbstractStreamingConsumerHandler) { ((AbstractStreamingConsumerHandler) twitter4jConsumer).start(); } }
@Override protected void doStart() throws Exception { queueService.start(); super.doStart(); }
/** * Lifecycle method invoked when the consumer has created. * Internally create or reuse a connection to the low level dropbox client * @throws Exception */ @Override protected void doStart() throws Exception { if (configuration.getClient() == null) { //create dropbox client configuration.createClient(); LOG.debug("Consumer DropBox client created"); } super.doStart(); }
@Override protected void doStart() throws Exception { client = SshClient.setUpDefaultClient(); client.start(); super.doStart(); }
@Override protected void doStart() throws Exception { super.doStart(); this.repo = getLocalRepository(); this.git = new Git(repo); }
@Override protected void doStart() throws Exception { super.doStart(); if (config.isConnectOnStartup()) { // setup hdfs if configured to do on startup setupHdfs(true); } }
@Override protected void doStart() throws Exception { super.doStart(); if (isPrepareStatements()) { preparedStatement = getEndpoint().prepareStatement(); } }
@Override protected void doStart() throws Exception { // only add as consumer if not already registered if (!getEndpoint().getConsumers().contains(this)) { if (!getEndpoint().getConsumers().isEmpty()) { throw new IllegalStateException("Endpoint " + getEndpoint().getEndpointUri() + " only allows 1 active consumer but you attempted to start a 2nd consumer."); } getEndpoint().getConsumers().add(this); } super.doStart(); }
@Override protected void doStart() throws Exception { executor = getEndpoint().getCamelContext().getExecutorServiceManager().newSingleThreadExecutor(this, "Beanstalk-Consumer"); executor.execute(initTask); sync = new Sync(); super.doStart(); }
@Override protected void doStart() throws Exception { super.doStart(); switch (endpoint.getEndpointType()) { case POLLING: if (handler instanceof AbstractStreamingConsumerHandler) { ((AbstractStreamingConsumerHandler) handler).start(); } break; case EVENT: if (handler instanceof AbstractStreamingConsumerHandler) { ((AbstractStreamingConsumerHandler) handler).setEventListener(this); ((AbstractStreamingConsumerHandler) handler).start(); } break; default: List<Exchange> exchanges = handler.directConsume(); for (int i = 0; i < exchanges.size(); i++) { getProcessor().process(exchanges.get(i)); } } }
@Override protected void doStart() throws Exception { super.doStart();