@Override public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will start components. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getComponentName()); // Start device state processing logic. start.addStartStep(this, getDeviceStateProcessingLogic(), true); // Execute startup steps. start.execute(monitor); super.start(monitor); }
@Override public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException { super.start(monitor); // Start the wrapped connector component. startNestedComponent(getOutboundConnector(), monitor, true); int numThreads = getOutboundConnector().getNumProcessingThreads(); getLogger().info(String.format("Connector host starting connector with pool of %d %s.", numThreads, numThreads == 1 ? "thread" : "threads")); this.batchProcessors = Executors.newFixedThreadPool(getOutboundConnector().getNumProcessingThreads(), new EventPayloadProcessorThreadFactory()); }
@Override public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will start components. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getComponentName()); // Start inbound processing logic. start.addStartStep(this, getInboundPayloadProcessingLogic(), true); // Execute startup steps. start.execute(monitor); getLogger().info("Allocating " + getInboundProcessingConfiguration().getProcessingThreadCount() + " threads for inbound event processing."); super.start(monitor); }