public boolean isMasterHc() { return hostControllerInfo.isMasterDomainController(); } };
public boolean isMasterHc() { return hostControllerInfo.isMasterDomainController(); } };
@Override public HostFileRepository getRemoteFileRepository() { if (hostControllerInfo.isMasterDomainController()) { throw HostControllerLogger.ROOT_LOGGER.cannotAccessRemoteFileRepository(); } return remoteFileRepository; }
@Override public HostFileRepository getRemoteFileRepository() { if (hostControllerInfo.isMasterDomainController()) { throw MESSAGES.cannotAccessRemoteFileRepository(); } return remoteFileRepository; }
@Override public HostFileRepository getRemoteFileRepository() { if (hostControllerInfo.isMasterDomainController()) { throw HostControllerLogger.ROOT_LOGGER.cannotAccessRemoteFileRepository(); } return remoteFileRepository; }
private void installDiscoveryService(final ServiceTarget serviceTarget, List<DiscoveryOption> discoveryOptions) { List<DomainControllerManagementInterface> interfaces = new ArrayList<>(); if (hostControllerInfo.getNativeManagementInterface() != null && !hostControllerInfo.getNativeManagementInterface().isEmpty() && hostControllerInfo.getNativeManagementPort() > 0) { interfaces.add(new DomainControllerManagementInterface(hostControllerInfo.getNativeManagementPort(), hostControllerInfo.getNativeManagementInterface(), REMOTE)); } if (hostControllerInfo.getHttpManagementSecureInterface() != null && !hostControllerInfo.getHttpManagementSecureInterface().isEmpty() && hostControllerInfo.getHttpManagementSecurePort() > 0) { interfaces.add(new DomainControllerManagementInterface(hostControllerInfo.getHttpManagementSecurePort(), hostControllerInfo.getHttpManagementSecureInterface(), REMOTE_HTTPS)); } if (hostControllerInfo.getHttpManagementInterface() != null && !hostControllerInfo.getHttpManagementInterface().isEmpty() && hostControllerInfo.getHttpManagementPort() > 0) { interfaces.add(new DomainControllerManagementInterface(hostControllerInfo.getHttpManagementPort(), hostControllerInfo.getHttpManagementInterface(), REMOTE_HTTP)); } DiscoveryService.install(serviceTarget, discoveryOptions, interfaces, hostControllerInfo.isMasterDomainController()); }
private void installDiscoveryService(final ServiceTarget serviceTarget, List<DiscoveryOption> discoveryOptions) { List<DomainControllerManagementInterface> interfaces = new ArrayList<>(); if (hostControllerInfo.getNativeManagementInterface() != null && !hostControllerInfo.getNativeManagementInterface().isEmpty() && hostControllerInfo.getNativeManagementPort() > 0) { interfaces.add(new DomainControllerManagementInterface(hostControllerInfo.getNativeManagementPort(), hostControllerInfo.getNativeManagementInterface(), REMOTE)); } if (hostControllerInfo.getHttpManagementSecureInterface() != null && !hostControllerInfo.getHttpManagementSecureInterface().isEmpty() && hostControllerInfo.getHttpManagementSecurePort() > 0) { interfaces.add(new DomainControllerManagementInterface(hostControllerInfo.getHttpManagementSecurePort(), hostControllerInfo.getHttpManagementSecureInterface(), REMOTE_HTTPS)); } if (hostControllerInfo.getHttpManagementInterface() != null && !hostControllerInfo.getHttpManagementInterface().isEmpty() && hostControllerInfo.getHttpManagementPort() > 0) { interfaces.add(new DomainControllerManagementInterface(hostControllerInfo.getHttpManagementPort(), hostControllerInfo.getHttpManagementInterface(), REMOTE_HTTP)); } DiscoveryService.install(serviceTarget, discoveryOptions, interfaces, hostControllerInfo.isMasterDomainController()); }
@Override public void registerRemoteHost(final String hostName, final ManagementChannelHandler handler, final Transformers transformers, Long remoteConnectionId) throws SlaveRegistrationException { if (!hostControllerInfo.isMasterDomainController()) { throw SlaveRegistrationException.forHostIsNotMaster();
@Override public void registerRemoteHost(final String hostName, final ManagementChannelHandler handler, final Transformers transformers, final Long remoteConnectionId, final boolean registerProxyController) throws SlaveRegistrationException { if (!hostControllerInfo.isMasterDomainController()) { throw SlaveRegistrationException.forHostIsNotMaster(); } if (runningModeControl.getRunningMode() == RunningMode.ADMIN_ONLY) { throw SlaveRegistrationException.forMasterInAdminOnlyMode(runningModeControl.getRunningMode()); } final PathElement pe = PathElement.pathElement(ModelDescriptionConstants.HOST, hostName); final PathAddress addr = PathAddress.pathAddress(pe); ProxyController existingController = modelNodeRegistration.getProxyController(addr); if (existingController != null || hostControllerInfo.getLocalHostName().equals(pe.getValue())){ throw SlaveRegistrationException.forHostAlreadyExists(pe.getValue()); } final SlaveHostPinger pinger = remoteConnectionId == null ? null : new SlaveHostPinger(hostName, handler, pingScheduler, remoteConnectionId); final String address = handler.getRemoteAddress().getHostAddress(); slaveHostRegistrations.registerHost(hostName, pinger, address); if (registerProxyController) { // Create the proxy controller final TransformingProxyController hostControllerClient = TransformingProxyController.Factory.create(handler, transformers, addr, ProxyOperationAddressTranslator.HOST); modelNodeRegistration.registerProxyController(pe, hostControllerClient); hostProxies.put(hostName, hostControllerClient); } }
@Override public void registerRemoteHost(final String hostName, final ManagementChannelHandler handler, final Transformers transformers, final Long remoteConnectionId, final boolean registerProxyController) throws SlaveRegistrationException { if (!hostControllerInfo.isMasterDomainController()) { throw SlaveRegistrationException.forHostIsNotMaster(); } if (runningModeControl.getRunningMode() == RunningMode.ADMIN_ONLY) { throw SlaveRegistrationException.forMasterInAdminOnlyMode(runningModeControl.getRunningMode()); } final PathElement pe = PathElement.pathElement(ModelDescriptionConstants.HOST, hostName); final PathAddress addr = PathAddress.pathAddress(pe); ProxyController existingController = modelNodeRegistration.getProxyController(addr); if (existingController != null || hostControllerInfo.getLocalHostName().equals(pe.getValue())){ throw SlaveRegistrationException.forHostAlreadyExists(pe.getValue()); } final SlaveHostPinger pinger = remoteConnectionId == null ? null : new SlaveHostPinger(hostName, handler, pingScheduler, remoteConnectionId); final String address = handler.getRemoteAddress().getHostAddress(); slaveHostRegistrations.registerHost(hostName, pinger, address); if (registerProxyController) { // Create the proxy controller final TransformingProxyController hostControllerClient = TransformingProxyController.Factory.create(handler, transformers, addr, ProxyOperationAddressTranslator.HOST); modelNodeRegistration.registerProxyController(pe, hostControllerClient); hostProxies.put(hostName, hostControllerClient); } }
extensionRegistry, hostControllerInfo.getNativeManagementInterface(), hostControllerInfo.getNativeManagementPort()); if (!hostControllerInfo.isMasterDomainController() && !environment.isUseCachedDc()) { serverInventory = getFuture(inventoryFuture);
if (hostControllerInfo.isMasterDomainController() && (discoveryOptions != null)) { boolean useLocalDomainXml = hostControllerInfo.isMasterDomainController(); boolean isCachedDc = environment.isUseCachedDc(); if (!hostControllerInfo.isMasterDomainController() && isCachedDc) { ROOT_LOGGER.usingCachedDC(CommandLineConstants.CACHED_DC, ConfigurationPersisterFactory.CACHED_DOMAIN_XML);
if (hostControllerInfo.isMasterDomainController() && (discoveryOptions != null)) { boolean useLocalDomainXml = hostControllerInfo.isMasterDomainController(); boolean isCachedDc = environment.isUseCachedDc(); if (!hostControllerInfo.isMasterDomainController() && isCachedDc) { ROOT_LOGGER.usingCachedDC(CommandLineConstants.CACHED_DC, ConfigurationPersisterFactory.CACHED_DOMAIN_XML);
if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { consoleMode = ConsoleMode.ADMIN_ONLY; } else if (!hostControllerInfo.isMasterDomainController()) { consoleMode = ConsoleMode.SLAVE_HC;
if (context.getRunningMode() == RunningMode.ADMIN_ONLY) { consoleMode = ConsoleMode.ADMIN_ONLY; } else if (!hostControllerInfo.isMasterDomainController()) { consoleMode = ConsoleMode.SLAVE_HC;
DomainSocketBindingGroupRemoveHandler.INSTANCE.initializeServerInventory(serverInventory); ValidateOperationHandler validateOperationHandler = hostControllerInfo.isMasterDomainController() ? ValidateOperationHandler.INSTANCE : ValidateOperationHandler.SLAVE_HC_INSTANCE; hostRegistration.registerOperationHandler(ValidateOperationHandler.DEFINITION_PRIVATE, validateOperationHandler);
ValidateOperationHandler validateOperationHandler = hostControllerInfo.isMasterDomainController() ? ValidateOperationHandler.INSTANCE : ValidateOperationHandler.SLAVE_HC_INSTANCE; hostRegistration.registerOperationHandler(ValidateOperationHandler.DEFINITION_HIDDEN, validateOperationHandler);
ValidateOperationHandler validateOperationHandler = hostControllerInfo.isMasterDomainController() ? ValidateOperationHandler.INSTANCE : ValidateOperationHandler.SLAVE_HC_INSTANCE; hostRegistration.registerOperationHandler(ValidateOperationHandler.DEFINITION_HIDDEN, validateOperationHandler);