public void enableComponent(long bundleId, String componentName) { scrService.enableComponent(findComponent(bundleId, componentName)); }
private void enableComponent(String name) { ComponentDescriptionDTO component = getComponent(name); if (component != null && !scrService.isComponentEnabled(component)) { log.info("Enabling component {}", name); try { scrService.enableComponent(component).timeout(TIMEOUT); } catch (Exception e) { throw new IllegalStateException("Unable to start component " + name, e); } } }
@Descriptor("Enable a disabled component") public boolean enable(@Descriptor("Name of the component") final String name) { boolean changed = false; for (ComponentDescriptionDTO comp : findComponents(name)) { if (!scr.isComponentEnabled(comp)) { scr.enableComponent(comp); changed = true; } } return changed; }
@Descriptor("Enable a disabled component") public boolean enable(@Descriptor("Name of the component") final String name) { boolean changed = false; for (ComponentDescriptionDTO comp : findComponents(name)) { if (!scr.isComponentEnabled(comp)) { scr.enableComponent(comp); changed = true; } } return changed; }
wait(this.runtime.enableComponent(reqInfo.component.description)); reqInfo = new RequestInfo(request, false); found = true;