private static void registerHostExcludes(OperationContext context, ModelNode model, DomainHostExcludeRegistry registry) throws OperationFailedException { DomainHostExcludeRegistry.VersionKey versionKey = getVersionKey(context, model); Set<String> ignoredExtensions = null; Set<String> activeServerGroups = null; Set<String> activeSocketBindingGroups = null; ModelNode ie = EXCLUDED_EXTENSIONS.resolveModelAttribute(context, model); if (ie.isDefined() && ie.asInt() > 0) { ignoredExtensions = new HashSet<>(); for (ModelNode node : ie.asList()) { ignoredExtensions.add(node.asString()); } } ModelNode asg = ACTIVE_SERVER_GROUPS.resolveModelAttribute(context, model); if (asg.isDefined() && asg.asInt() > 0) { activeServerGroups = new HashSet<>(); for (ModelNode node : asg.asList()) { activeServerGroups.add(node.asString()); } } ModelNode asbg = ACTIVE_SOCKET_BINDING_GROUPS.resolveModelAttribute(context, model); if (asbg.isDefined() && asbg.asInt() > 0) { activeSocketBindingGroups = new HashSet<>(); for (ModelNode node : asbg.asList()) { activeSocketBindingGroups.add(node.asString()); } } registry.recordVersionExcludeData(versionKey, ignoredExtensions, activeServerGroups, activeSocketBindingGroups); }
private static void registerHostExcludes(OperationContext context, ModelNode model, DomainHostExcludeRegistry registry) throws OperationFailedException { DomainHostExcludeRegistry.VersionKey versionKey = getVersionKey(context, model); Set<String> ignoredExtensions = null; Set<String> activeServerGroups = null; Set<String> activeSocketBindingGroups = null; ModelNode ie = EXCLUDED_EXTENSIONS.resolveModelAttribute(context, model); if (ie.isDefined() && ie.asInt() > 0) { ignoredExtensions = new HashSet<>(); for (ModelNode node : ie.asList()) { ignoredExtensions.add(node.asString()); } } ModelNode asg = ACTIVE_SERVER_GROUPS.resolveModelAttribute(context, model); if (asg.isDefined() && asg.asInt() > 0) { activeServerGroups = new HashSet<>(); for (ModelNode node : asg.asList()) { activeServerGroups.add(node.asString()); } } ModelNode asbg = ACTIVE_SOCKET_BINDING_GROUPS.resolveModelAttribute(context, model); if (asbg.isDefined() && asbg.asInt() > 0) { activeSocketBindingGroups = new HashSet<>(); for (ModelNode node : asbg.asList()) { activeSocketBindingGroups.add(node.asString()); } } registry.recordVersionExcludeData(versionKey, ignoredExtensions, activeServerGroups, activeSocketBindingGroups); }