@Override public void tenantInitialize(ILifecycleProgressMonitor monitor) throws SiteWhereException { this.eventSourcesManager = (IEventSourcesManager) getModuleContext() .getBean(EventSourcesBeans.BEAN_EVENT_SOURCES_MANAGER); // Create step that will initialize components. ICompositeLifecycleStep init = new CompositeLifecycleStep("Initialize " + getComponentName()); // Initialize event sources manager. init.addInitializeStep(this, getEventSourcesManager(), true); // Execute initialization steps. init.execute(monitor); }
@Override public void tenantStart(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will start components. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getComponentName()); // Start event sources manager. start.addStartStep(this, getEventSourcesManager(), true); // Execute startup steps. start.execute(monitor); }
@Override public void microserviceStart(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Composite step for starting microservice. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getName()); // Start device mangement API demux. start.addStartStep(this, getDeviceManagementApiDemux(), true); // Execute startup steps. start.execute(monitor); }
@Override public void tenantStop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will stop components. ICompositeLifecycleStep start = new CompositeLifecycleStep("Stop " + getComponentName()); // Stop outbound connectors manager. start.addStopStep(this, getOutboundConnectorsManager()); // Execute shutdown steps. start.execute(monitor); }
@Override public void tenantStart(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will start components. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getComponentName()); // Start outbound connectors manager. start.addStartStep(this, getOutboundConnectorsManager(), true); // Execute startup steps. start.execute(monitor); }
@Override public void microserviceInitialize(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create GRPC components. createGrpcComponents(); // Composite step for initializing microservice. ICompositeLifecycleStep init = new CompositeLifecycleStep("Initialize " + getName()); // Initialize device management API demux. init.addInitializeStep(this, getDeviceManagementApiDemux(), true); // Execute initialization steps. init.execute(monitor); }
@Override public void stop(ILifecycleProgressMonitor monitor) throws SiteWhereException { super.stop(monitor); // Create step that will stop components. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getComponentName()); // Stop inbound processing logic. stop.addStopStep(this, getInboundPayloadProcessingLogic()); // Execute shutdown steps. stop.execute(monitor); }
@Override public void microserviceInitialize(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create GRPC components. createGrpcComponents(); // Composite step for initializing microservice. ICompositeLifecycleStep init = new CompositeLifecycleStep("Initialize " + getName()); // Initialize device management API demux. init.addInitializeStep(this, getDeviceManagementApiDemux(), true); // Execute initialization steps. init.execute(monitor); }
@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 stop(ILifecycleProgressMonitor monitor) throws SiteWhereException { super.stop(monitor); // Create step that will stop components. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getComponentName()); // Stop device state logic. stop.addStopStep(this, getDeviceStateProcessingLogic()); // Execute shutdown steps. stop.execute(monitor); }
@Override public void microserviceStart(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Composite step for starting microservice. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getName()); // Start GRPC server. start.addStartStep(this, getUserManagementGrpcServer(), true); // Start tenant management API demux. start.addStartStep(this, getTenantManagementApiDemux(), true); // Execute initialization steps. start.execute(monitor); }
@Override public void microserviceStart(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will start components. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getName()); // Start event management GRPC server. start.addStartStep(this, getEventManagementGrpcServer(), true); // Start device mangement API demux. start.addStartStep(this, getDeviceManagementApiDemux(), true); // Execute startup steps. start.execute(monitor); }
@Override public void microserviceStop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will stop components. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getName()); // Stop event management GRPC server. stop.addStopStep(this, getEventManagementGrpcServer()); // Stop device mangement API demux. stop.addStopStep(this, getDeviceManagementApiDemux()); // Execute shutdown steps. stop.execute(monitor); }
@Override public void microserviceStart(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Composite step for starting microservice. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getName()); // Start device mangement API demux. start.addStartStep(this, getDeviceManagementApiDemux(), true); // Start device event mangement API demux. start.addStartStep(this, getDeviceEventManagementApiDemux(), true); // Execute startup steps. start.execute(monitor); }
@Override public void microserviceStop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Composite step for stopping microservice. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getName()); // Stop device mangement API demux. stop.addStopStep(this, getDeviceManagementApiDemux()); // Stop device event mangement API demux. stop.addStopStep(this, getDeviceEventManagementApiDemux()); // Execute shutdown steps. stop.execute(monitor); }
@Override public void microserviceStop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Composite step for stopping microservice. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getName()); // Stop device mangement API demux. stop.addStopStep(this, getDeviceManagementApiDemux()); // Stop device event mangement API demux. stop.addStopStep(this, getDeviceEventManagementApiDemux()); // Execute shutdown steps. stop.execute(monitor); }
@Override public void microserviceStart(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Composite step for starting microservice. ICompositeLifecycleStep start = new CompositeLifecycleStep("Start " + getName()); // Start device mangement API demux. start.addStartStep(this, getDeviceManagementApiDemux(), true); // Start device event mangement API demux. start.addStartStep(this, getDeviceEventManagementApiDemux(), true); // Execute startup steps. start.execute(monitor); }
@Override public void stop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Composite step for stopping processing strategy. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getComponentName()); // Stop command target resolver. stop.addStopStep(this, getCommandTargetResolver()); // Stop command execution builder. stop.addStopStep(this, getCommandExecutionBuilder()); // Execute shutdown steps. stop.execute(monitor); }
@Override public void tenantStop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will stop components. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getComponentName()); // Stop schedule management persistence. stop.addStopStep(this, getScheduleManagement()); // Stop discoverable lifecycle components. stop.addStep(stopDiscoverableBeans(getModuleContext())); // Execute shutdown steps. stop.execute(monitor); }
@Override public void tenantStop(ILifecycleProgressMonitor monitor) throws SiteWhereException { // Create step that will stop components. ICompositeLifecycleStep stop = new CompositeLifecycleStep("Stop " + getComponentName()); // Stop asset management persistence. stop.addStopStep(this, getAssetManagement()); // Stop discoverable lifecycle components. stop.addStep(stopDiscoverableBeans(getModuleContext())); // Execute shutdown steps. stop.execute(monitor); }