public void start() throws Fabric3Exception { boot(); load(); startRuntime(); startTransports(); }
public void start() throws InitializationException { prepare(); joinAndStart(); }
public Fabric3Runtime createDefaultRuntime(RuntimeConfiguration configuration) { return new DefaultRuntime(configuration); }
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 void boot() throws Fabric3Exception { runtime.boot(); Bootstrapper bootstrapper = new DefaultBootstrapper(configuration); // boot runtime domain bootstrapper.bootRuntimeDomain(); // initialize core system components bootstrapper.bootSystem(); }
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 RuntimeCoordinator createCoordinator(BootConfiguration configuration) { return new DefaultCoordinator(configuration); }
public <I> I getComponent(Class<I> service) { return getComponent(service, URI.create(Names.RUNTIME_NAME + "/" + service.getSimpleName())); }
public List<ComponentRegistration> createDefaultRegistrations(Fabric3Runtime runtime) { List<ComponentRegistration> registrations = new ArrayList<>(); RuntimeFabric fabric = new RuntimeFabric(runtime); ComponentRegistration registration = new ComponentRegistration("Fabric", Fabric.class, fabric, false); registrations.add(registration); return registrations; }
public String getMessage() { if (getIdentifier() != null) { return super.getMessage() + ": " + getIdentifier(); } else { return super.getMessage(); } } }
/** * Installs a collection of contributions. * * @param sources the contribution sources * @return the list of installed contribution URIs * @throws InitializationException if an installation error occurs */ private List<URI> installContributions(List<ContributionSource> sources) throws InitializationException { try { ContributionService contributionService = runtime.getComponent(ContributionService.class, CONTRIBUTION_SERVICE_URI); // install the contributions List<URI> stored = contributionService.store(sources); return contributionService.install(stored); } catch (ContributionException e) { state = RuntimeState.ERROR; throw new ExtensionInitializationException("Error contributing extensions", e); } } }
public void boot() throws Fabric3Exception { runtime.boot(); Bootstrapper bootstrapper = new DefaultBootstrapper(configuration); // boot runtime domain bootstrapper.bootRuntimeDomain(); // initialize core system components bootstrapper.bootSystem(); }
public void start() throws Fabric3Exception { boot(); load(); startRuntime(); startTransports(); }
public Fabric3Runtime createDefaultRuntime(RuntimeConfiguration configuration) { return new DefaultRuntime(configuration); }
public RuntimeCoordinator createCoordinator(BootConfiguration configuration) { return new DefaultCoordinator(configuration); }
public <I> I getComponent(Class<I> service) { return getComponent(service, URI.create(Names.RUNTIME_NAME + "/" + service.getSimpleName())); }
public List<ComponentRegistration> createDefaultRegistrations(Fabric3Runtime runtime) { List<ComponentRegistration> registrations = new ArrayList<>(); RuntimeFabric fabric = new RuntimeFabric(runtime); ComponentRegistration registration = new ComponentRegistration("Fabric", Fabric.class, fabric, false); registrations.add(registration); return registrations; }
public Fabric3Runtime createDefaultRuntime(RuntimeConfiguration configuration) { return new DefaultRuntime(configuration); }
public RuntimeCoordinator createCoordinator(BootConfiguration configuration) { return new DefaultCoordinator(configuration); }
public <I> I getComponent(Class<I> service) { return getComponent(service, URI.create(Names.RUNTIME_NAME + "/" + service.getSimpleName())); }