@Override protected void performRemove(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { super.performRemove(context, operation, model); updateOptionsAttribute(context, operation, STATIC_DISCOVERY); } }
@Override protected void performRemove(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { super.performRemove(context, operation, model); updateOptionsAttribute(context, operation, ModelDescriptionConstants.CUSTOM_DISCOVERY); } }
static void clearHostControllerInfo(LocalHostControllerInfoImpl hostControllerInfo) { hostControllerInfo.setHttpManagementInterface(null); hostControllerInfo.setHttpManagementPort(0); hostControllerInfo.setHttpManagementSecureInterface(null); hostControllerInfo.setHttpManagementSecurePort(0); } }
static void clearHostControllerInfo(LocalHostControllerInfoImpl hostControllerInfo) { hostControllerInfo.setHttpManagementInterface(null); hostControllerInfo.setHttpManagementPort(0); hostControllerInfo.setHttpManagementSecurePort(0); hostControllerInfo.setHttpManagementSecurityRealm(null); }
static void updateHttpManagementService(final OperationContext context, final ModelNode subModel, final LocalHostControllerInfoImpl hostControllerInfo, final HostControllerEnvironment environment, final ServiceVerificationHandler verificationHandler) throws OperationFailedException { HttpManagementRemoveHandler.removeHttpManagementService(context); HttpManagementAddHandler.populateHostControllerInfo(hostControllerInfo, context, subModel); HttpManagementAddHandler.installHttpManagementServices(context.getRunningMode(), context.getServiceTarget(), hostControllerInfo, environment, verificationHandler, false); }
public HttpManagementResourceDefinition(final LocalHostControllerInfoImpl hostControllerInfo, final HostControllerEnvironment environment) { super(RESOURCE_PATH, HostModelUtil.getResourceDescriptionResolver("core", "management", "http-interface"), new HttpManagementAddHandler(hostControllerInfo, environment), new HttpManagementRemoveHandler(hostControllerInfo, environment), OperationEntry.Flag.RESTART_NONE, OperationEntry.Flag.RESTART_NONE); this.hostControllerInfo = hostControllerInfo; this.environment = environment; }
@Override public String getHostName() { return hostControllerInfo.getLocalHostName(); } };
public boolean isMasterHc() { return hostControllerInfo.isMasterDomainController(); } };
@Override protected void populateModel(final OperationContext context, final ModelNode operation, final Resource resource) throws OperationFailedException { updateOptionsAttribute(context, operation, STATIC_DISCOVERY); }
@Override protected void populateModel(final OperationContext context, final ModelNode operation, final Resource resource) throws OperationFailedException { updateOptionsAttribute(context, operation, CUSTOM_DISCOVERY); }
void initializeDomain(final String hostName) { writeAttributeHandler.initializeLocalDomain(hostName); } }
public static LocalDomainControllerAddHandler getInstance(final ManagementResourceRegistration rootRegistration, final LocalHostControllerInfoImpl hostControllerInfo, final HostControllerConfigurationPersister overallConfigPersister, final HostFileRepository fileRepository, final ContentRepository contentRepository, final DomainController domainController, final ExtensionRegistry extensionRegistry, final PathManagerService pathManager) { return new LocalDomainControllerAddHandler(rootRegistration, hostControllerInfo, overallConfigPersister, fileRepository, contentRepository, domainController, extensionRegistry, pathManager); }
@Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { removeHttpManagementService(context); }
static void clearHostControllerInfo(LocalHostControllerInfoImpl hostControllerInfo) { hostControllerInfo.setHttpManagementInterface(null); hostControllerInfo.setHttpManagementPort(0); hostControllerInfo.setHttpManagementSecureInterface(null); hostControllerInfo.setHttpManagementSecurePort(0); } }
@Override protected void performRemove(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { super.performRemove(context, operation, model); updateOptionsAttribute(context, operation, STATIC_DISCOVERY); } }
@Override protected void performRemove(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { super.performRemove(context, operation, model); updateOptionsAttribute(context, operation, ModelDescriptionConstants.CUSTOM_DISCOVERY); } }
@Override public String getHostName() { return hostControllerInfo.getLocalHostName(); } };
@Override protected void populateModel(final OperationContext context, final ModelNode operation, final Resource resource) throws OperationFailedException { updateOptionsAttribute(context, operation, STATIC_DISCOVERY); }
@Override protected void populateModel(final OperationContext context, final ModelNode operation, final Resource resource) throws OperationFailedException { updateOptionsAttribute(context, operation, CUSTOM_DISCOVERY); }
void initializeDomain(final String hostName) { writeAttributeHandler.initializeLocalDomain(hostName); } }