private LiveOakFactory(File configDir, File applicationsDir, Vertx vertx, String bindAddress, ServiceContainer serviceContainer) { this(configDir, applicationsDir, vertx, bindAddress, serviceContainer, serviceContainer.subTarget()); }
protected MainKernelServicesImpl(ServiceContainer container, ModelTestModelControllerService controllerService, StringConfigurationPersister persister, ManagementResourceRegistration rootRegistration, OperationValidator operationValidator, String mainSubsystemName, ExtensionRegistry extensionRegistry, ModelVersion legacyModelVersion, boolean successfulBoot, Throwable bootError, boolean registerTransformers, Class<?> testClass) { super(container, controllerService, persister, rootRegistration, operationValidator, mainSubsystemName, extensionRegistry, legacyModelVersion, successfulBoot, bootError, registerTransformers); this.testClass = testClass; //add mgmt worker ManagementWorkerService.installService(container.subTarget()); }
protected MainKernelServicesImpl(ServiceContainer container, ModelTestModelControllerService controllerService, StringConfigurationPersister persister, ManagementResourceRegistration rootRegistration, OperationValidator operationValidator, String mainSubsystemName, ExtensionRegistry extensionRegistry, ModelVersion legacyModelVersion, boolean successfulBoot, Throwable bootError, boolean registerTransformers, Class<?> testClass) { super(container, controllerService, persister, rootRegistration, operationValidator, mainSubsystemName, extensionRegistry, legacyModelVersion, successfulBoot, bootError, registerTransformers); this.testClass = testClass; //add mgmt worker ManagementWorkerService.installService(container.subTarget()); }
/** * Install the MSC service which listens for JMX notifications. */ @Override public void initialize(ExtensionContext context) { log.info("Initializing " + EXTENSION_NAME); container = CurrentServiceContainer.getServiceContainer(); if(container.getService(JMXNotificationsService.SERVICE_NAME) == null) { log.info("Installing " + JMXNotificationsService.SERVICE_NAME); final ServiceTarget target = container.subTarget(); JMXNotificationsService service = new JMXNotificationsService(); target.addService(JMXNotificationsService.SERVICE_NAME, service) .install(); } }
/** * Start the host controller services. * * @throws Exception */ public void bootstrap() throws Exception { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(false); ServiceTarget target = serviceContainer.subTarget(); ControlledProcessStateService.addService(target, processState); final HostControllerService hcs = new HostControllerService(environment, runningModeControl, authCode, processState); target.addService(HostControllerService.HC_SERVICE_NAME, hcs).install(); }
/** * Start the host controller services. * * @throws Exception */ public void bootstrap() throws Exception { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState); ServiceTarget target = serviceContainer.subTarget(); ControlledProcessStateService controlledProcessStateService = ControlledProcessStateService.addService(target, processState).getValue(); RunningStateJmx.registerMBean(controlledProcessStateService, null, runningModeControl, false); final HostControllerService hcs = new HostControllerService(environment, runningModeControl, authCode, processState); target.addService(HostControllerService.HC_SERVICE_NAME, hcs).install(); }
/** * Start the host controller services. * * @throws Exception */ public void bootstrap() throws Exception { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState); ServiceTarget target = serviceContainer.subTarget(); ControlledProcessStateService controlledProcessStateService = ControlledProcessStateService.addService(target, processState).getValue(); RunningStateJmx.registerMBean(controlledProcessStateService, null, runningModeControl, false); final HostControllerService hcs = new HostControllerService(environment, runningModeControl, authCode, processState); target.addService(HostControllerService.HC_SERVICE_NAME, hcs).install(); }
public FutureServiceContainer bootstrap() throws Exception { try { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState); ServiceTarget target = serviceContainer.subTarget(); final ControlledProcessStateService controlledProcessStateService = ControlledProcessStateService.addService(target, processState).getValue(); RunningStateJmx.registerMBean(controlledProcessStateService, null, runningModeControl, false); final HostControllerService hcs = new HostControllerService(environment, runningModeControl, authCode, processState, futureContainer); target.addService(HostControllerService.HC_SERVICE_NAME, hcs).install(); return futureContainer; } catch (RuntimeException | Error e) { shutdownHook.run(); throw e; } }
public FutureServiceContainer bootstrap() throws Exception { try { final HostRunningModeControl runningModeControl = environment.getRunningModeControl(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState); ServiceTarget target = serviceContainer.subTarget(); final ControlledProcessStateService controlledProcessStateService = ControlledProcessStateService.addService(target, processState).getValue(); RunningStateJmx.registerMBean(controlledProcessStateService, null, runningModeControl, false); final HostControllerService hcs = new HostControllerService(environment, runningModeControl, authCode, processState, futureContainer); target.addService(HostControllerService.HC_SERVICE_NAME, hcs).install(); return futureContainer; } catch (RuntimeException | Error e) { shutdownHook.run(); throw e; } }
private void installPaintFrameService() throws ModuleLoadException { PaintFrameService service = new PaintFrameService(); ServiceTarget serviceSubTarget = container.subTarget(); ServiceBuilder<PaintFrame> serviceBuilder = serviceSubTarget .addService(PaintFrameService.SERVICE_NAME, service); serviceBuilder.setInitialMode(Mode.ACTIVE); Set<ServiceName> dependencies = installShapeExtensions( serviceSubTarget.subTarget(), loadShapeExtensions(MAIN_MODULE)); for (ServiceName serviceName : dependencies) { serviceBuilder.addDependency(DependencyType.OPTIONAL, serviceName, service.getShapeInjector(serviceName.getSimpleName())); } serviceBuilder.addListener(new AbstractServiceListener<PaintFrame>() { @Override public void transition( ServiceController<? extends PaintFrame> controller, Transition transition) { switch (transition) { case REMOVING_to_REMOVED: container.shutdown(); break; default: break; } } }); serviceBuilder.install(); }
ApplicationExtensionRemovalService removal = new ApplicationExtensionRemovalService(extController); ServiceTarget target = extController.getServiceContainer().subTarget(); ServiceController<InternalApplicationExtension> extensionController = (ServiceController<InternalApplicationExtension>) extController.getServiceContainer().getService(Services.applicationExtension(appId, this.resourceId));
ServiceTarget target = container.subTarget();
ServiceTarget target = container.subTarget();
final ServiceTarget tracker = container.subTarget(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState);
ServiceTarget target = container.subTarget(); List<ModelNode> extraOps = controllerInitializer.initializeBootOperations(); List<ModelNode> allOps = new ArrayList<ModelNode>();
final ServiceTarget tracker = container.subTarget(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState);
final ServiceTarget tracker = container.subTarget(); final ControlledProcessState processState = new ControlledProcessState(true); shutdownHook.setControlledProcessState(processState);
ServiceTarget target = container.subTarget(); List<ModelNode> extraOps = controllerInitializer.initializeBootOperations(); List<ModelNode> allOps = new ArrayList<ModelNode>();
ServiceTarget target = container.subTarget(); List<ModelNode> extraOps = controllerInitializer.initializeBootOperations(); List<ModelNode> allOps = new ArrayList<ModelNode>();
final ServiceTarget tracker = container.subTarget(); final ControlledProcessState processState = new ControlledProcessState(configuration.getServerEnvironment().isStandalone()); ControlledProcessStateService.addService(tracker, processState);