public void removeInstalledServices(OperationContext context) { String jndiName = bootConfiguration.getGlobalConfiguration().getApiJndi(); boolean bindJndi = (jndiName == null || jndiName.isEmpty() || processType.isManagedDomain()) ? false : true; if (bindJndi) { ContextNames.BindInfo bindInfo = ContextNames.bindInfoFor(jndiName); context.removeService(bindInfo.getBinderServiceName()); } }
default String getFeature() { if(PathAddress.EMPTY_ADDRESS.equals(getPathAddress())) { if(getProcessType().isServer()) { return "server-root"; } return ""; } StringJoiner joiner = new StringJoiner("."); final PathAddress pathAddress = getPathAddress(); final String initialKey = pathAddress.getElement(0).getKey(); if (getProcessType().isManagedDomain() && !HOST.equals(initialKey) && !PROFILE.equals(initialKey)) { joiner.add(DOMAIN); } for (int i = 0; i < pathAddress.size(); i++) { PathElement elt = pathAddress.getElement(i); joiner.add(elt.getKey()); if (!elt.isWildcard() && (i > 0 || !HOST.equals(elt.getKey()))) { joiner.add(elt.getValue()); } } return joiner.toString(); }
default String getFeature() { if(PathAddress.EMPTY_ADDRESS.equals(getPathAddress())) { if(getProcessType().isServer()) { return "server-root"; } return ""; } StringJoiner joiner = new StringJoiner("."); final PathAddress pathAddress = getPathAddress(); final String initialKey = pathAddress.getElement(0).getKey(); if (getProcessType().isManagedDomain() && !HOST.equals(initialKey) && !PROFILE.equals(initialKey)) { joiner.add(DOMAIN); } for (int i = 0; i < pathAddress.size(); i++) { PathElement elt = pathAddress.getElement(i); joiner.add(elt.getKey()); if (!elt.isWildcard() && (i > 0 || !HOST.equals(elt.getKey()))) { joiner.add(elt.getValue()); } } return joiner.toString(); }
ModelControllerImpl(final ServiceRegistry serviceRegistry, final ServiceTarget serviceTarget, final ManagementResourceRegistration rootRegistration, final ContainerStateMonitor stateMonitor, final ConfigurationPersister persister, final ProcessType processType, final RunningModeControl runningModeControl, final OperationStepHandler prepareStep, final ControlledProcessState processState, final ExecutorService executorService, final ExpressionResolver expressionResolver, final Authorizer authorizer, final ManagedAuditLogger auditLogger, NotificationSupport notificationSupport) { this.serviceRegistry = serviceRegistry; this.serviceTarget = serviceTarget; this.rootRegistration = rootRegistration; this.stateMonitor = stateMonitor; this.persister = persister; this.processType = processType; this.runningModeControl = runningModeControl; this.notificationSupport = notificationSupport; this.prepareStep = prepareStep == null ? new DefaultPrepareStepHandler() : prepareStep; this.processState = processState; this.serviceTarget.addListener(stateMonitor); this.executorService = executorService; this.expressionResolver = expressionResolver; this.authorizer = authorizer; this.auditLogger = auditLogger; this.hostServerGroupTracker = processType.isManagedDomain() ? new HostServerGroupTracker() : null; auditLogger.startBoot(); }
if (processType.isManagedDomain()) { if (processType.isManagedDomain()) { throw new IllegalStateException("Do not know where the external Hawkular server is. Aborting."); if (processType.isManagedDomain()) { throw new IllegalStateException("When deployed in host controller, you must use the URL attribute" + " and not the outbound socket binding. " boolean bindJndi = (jndiName == null || jndiName.isEmpty() || processType.isManagedDomain()) ? false : true; if (bindJndi) { class JndiBindListener extends AbstractServiceListener<Object> {
ProcessType processType = getProcessType(); TargetResource targetResource; if (processType.isManagedDomain()) { HostServerGroupTracker.HostServerGroupEffect hostServerGroupEffect; if (processType.isServer()) {
ProcessType processType = getProcessType(); TargetResource targetResource; if (processType.isManagedDomain()) { HostServerGroupTracker.HostServerGroupEffect hostServerGroupEffect; if (processType.isServer()) {
ProcessType processType = getProcessType(); TargetResource targetResource; if (processType.isManagedDomain()) { HostServerGroupTracker.HostServerGroupEffect hostServerGroupEffect; if (processType.isServer()) {