public RuntimeCoordinator createCoordinator(BootConfiguration configuration) { return new DefaultCoordinator(configuration); }
public void start() throws Fabric3Exception { boot(); load(); startRuntime(); startTransports(); }
public void start() throws InitializationException { prepare(); joinAndStart(); }
public void load() throws Fabric3Exception { // load and initialize runtime extension components and the local runtime domain loadExtensions(); EventService eventService = runtime.getComponent(EventService.class); eventService.publish(new ExtensionsInitialized()); // initiate local runtime recovery recover(eventService); }
/** * Performs local runtime recovery operations, such as controller recovery and transaction recovery. * * @param eventService the event service * @throws InitializationException if an error performing recovery is encountered */ private void recover(EventService eventService) throws InitializationException { Domain domain = runtime.getComponent(Domain.class, APPLICATION_DOMAIN_URI); if (domain == null) { state = RuntimeState.ERROR; String name = APPLICATION_DOMAIN_URI.toString(); throw new InitializationException("Domain not found: " + name); } // install user contributions - they will be deployed when the domain recovers List<ContributionSource> contributions = configuration.getUserContributions(); if (!contributions.isEmpty()) { installContributions(contributions); } eventService.publish(new RuntimeRecover()); }
public void load() throws Fabric3Exception { // load and initialize runtime extension components and the local runtime domain loadExtensions(); EventService eventService = runtime.getComponent(EventService.class); eventService.publish(new ExtensionsInitialized()); // initiate local runtime recovery recover(eventService); }
public void start() throws Fabric3Exception { boot(); load(); startRuntime(); startTransports(); }
public void prepare() throws InitializationException { // boot primordial services runtime.boot(); Bootstrapper bootstrapper = new DefaultBootstrapper(configuration); // boot runtime domain bootstrapper.bootRuntimeDomain(); // initialize core system components bootstrapper.bootSystem(); // load and initialize runtime extension components and the local runtime domain loadExtensions(); EventService eventService = runtime.getComponent(EventService.class); eventService.publish(new ExtensionsInitialized()); // initiate local runtime recovery recover(eventService); }
public RuntimeCoordinator createCoordinator(BootConfiguration configuration) { return new DefaultCoordinator(configuration); }
public RuntimeCoordinator createCoordinator(BootConfiguration configuration) { return new DefaultCoordinator(configuration); }