ServiceHelper.startServices(camelCtx, endpoint, consumer);
@Override protected void doStart() throws Exception { ServiceHelper.startServices(output); preparingShutdown = false; }
protected void doStart() throws Exception { ServiceHelper.startServices(rules); }
@Override protected void doStart() throws Exception { ServiceHelper.startServices(processor); }
@Override protected void doStart() throws Exception { ServiceHelper.startServices(processor); }
protected void doStart() throws Exception { ServiceHelper.startServices(activities); }
protected void doStart() throws Exception { ServiceHelper.startServices(left, right); }
@Override protected void doStart() throws Exception { eventCacheManager.start(); ServiceHelper.startServices(expressionToFromMap.keySet()); }
protected void doStart() throws Exception { startServices(getOverdueAction()); }
@Override protected void doStart() throws Exception { jsonMarshalEndpoint = getCamelContext().getEndpoint("dataformat:json-jackson:marshal"); Objects.requireNonNull(jsonMarshalEndpoint, "jsonMarshalEndpoint"); jsonMarshalProducer = jsonMarshalEndpoint.createProducer(); Objects.requireNonNull(jsonMarshalProducer, "jsonMarshalProducer"); ServiceHelper.startServices(jsonMarshalEndpoint, jsonMarshalProducer); super.doStart(); }
@Override protected void doStart() throws Exception { jsonMarshalEndpoint = getCamelContext().getEndpoint("dataformat:json-jackson:marshal"); Objects.requireNonNull(jsonMarshalEndpoint, "jsonMarshalEndpoint"); jsonMarshalProducer = jsonMarshalEndpoint.createProducer(); Objects.requireNonNull(jsonMarshalProducer, "jsonMarshalProducer"); ServiceHelper.startServices(jsonMarshalEndpoint, jsonMarshalProducer); super.doStart(); }
protected void doStart() throws Exception { ObjectHelper.notNull(configuration, "setNettyServerBootstrapConfiguration() must be called with a NettyServerBootstrapConfiguration instance", this); // port must be set if (configuration.getPort() <= 0) { throw new IllegalArgumentException("Port must be configured on NettySharedHttpServerBootstrapConfiguration " + configuration); } // hostname must be set if (ObjectHelper.isEmpty(configuration.getHost())) { throw new IllegalArgumentException("Host must be configured on NettySharedHttpServerBootstrapConfiguration " + configuration); } LOG.debug("NettySharedHttpServer using configuration: {}", configuration); // force using tcp as the underlying transport configuration.setProtocol("tcp"); channelFactory = new HttpServerMultiplexChannelHandler(); channelFactory.init(configuration.getPort()); ChannelPipelineFactory pipelineFactory = new HttpServerSharedPipelineFactory(configuration, channelFactory, classResolver); // thread factory and pattern String port = Matcher.quoteReplacement("" + configuration.getPort()); String pattern = threadPattern; pattern = pattern.replaceFirst("#port#", port); ThreadFactory tf = new CamelThreadFactory(pattern, "NettySharedHttpServer", true); // create bootstrap factory and disable compatible check as its shared among the consumers bootstrapFactory = new HttpServerBootstrapFactory(channelFactory, false); bootstrapFactory.init(tf, configuration, pipelineFactory); ServiceHelper.startServices(channelFactory); if (startServer) { LOG.info("Starting NettySharedHttpServer on {}:{}", configuration.getHost(), configuration.getPort()); ServiceHelper.startServices(bootstrapFactory); } }
@Override protected void doStart() throws Exception { ObjectHelper.notNull(camelContext, "CamelContext", this); camelContext.getManagementStrategy().addEventNotifier(eventNotifier); if (!camelContext.getRoutePolicyFactories().contains(this)) { camelContext.addRoutePolicyFactory(this); } camelContext.addLogListener(logListener); if (tracer == null) { Set<Tracer> tracers = camelContext.getRegistry().findByType(Tracer.class); if (tracers.size() == 1) { tracer = tracers.iterator().next(); } } if (tracer == null) { tracer = TracerResolver.resolveTracer(); } if (tracer == null) { // No tracer is available, so setup NoopTracer tracer = NoopTracerFactory.create(); } ServiceHelper.startServices(eventNotifier); }
ServiceHelper.startServices(spanReporter, eventNotifier);
@Override protected void doStart() throws Exception { super.doStart(); LOG.debug("Netty consumer binding to: {}", configuration.getAddress()); if (nettyServerBootstrapFactory == null) { // setup pipeline factory ServerInitializerFactory pipelineFactory; ServerInitializerFactory factory = configuration.getServerInitializerFactory(); if (factory != null) { pipelineFactory = factory.createPipelineFactory(this); } else { pipelineFactory = new DefaultServerInitializerFactory(this); } if (isTcp()) { if (configuration.isClientMode()) { nettyServerBootstrapFactory = new ClientModeTCPNettyServerBootstrapFactory(); } else { nettyServerBootstrapFactory = new SingleTCPNettyServerBootstrapFactory(); } } else { nettyServerBootstrapFactory = new SingleUDPNettyServerBootstrapFactory(); } nettyServerBootstrapFactory.init(context, configuration, pipelineFactory); } ServiceHelper.startServices(nettyServerBootstrapFactory); LOG.info("Netty consumer bound to: {}", configuration.getAddress()); }
@Override protected void doStart() throws Exception { super.doStart(); LOG.debug("Netty consumer binding to: {}", configuration.getAddress()); if (nettyServerBootstrapFactory == null) { // setup pipeline factory ServerPipelineFactory pipelineFactory; ServerPipelineFactory factory = configuration.getServerPipelineFactory(); if (factory != null) { pipelineFactory = factory.createPipelineFactory(this); } else { pipelineFactory = new DefaultServerPipelineFactory(this); } if (isTcp()) { if (configuration.isClientMode()) { nettyServerBootstrapFactory = new ClientModeTCPNettyServerBootstrapFactory(); } else { nettyServerBootstrapFactory = new SingleTCPNettyServerBootstrapFactory(); } } else { nettyServerBootstrapFactory = new SingleUDPNettyServerBootstrapFactory(); } nettyServerBootstrapFactory.init(context, configuration, pipelineFactory); } ServiceHelper.startServices(nettyServerBootstrapFactory); LOG.info("Netty consumer bound to: {}", configuration.getAddress()); }