public class IgnoredNonAffectedServerGroupsUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo
Contains info about a server config
|
Modifier and Type | Method and Description |
---|---|
static org.jboss.dmr.ModelNode |
addCurrentServerGroupsToHostInfoModel(boolean ignoreUnaffectedServerGroups,
Resource hostModel,
org.jboss.dmr.ModelNode model)
Used by the slave host when creating the host info dmr sent across to the DC during the registration process
|
static void |
addServerGroupsToModel(Resource hostModel,
org.jboss.dmr.ModelNode model) |
static IgnoredNonAffectedServerGroupsUtil |
create(ExtensionRegistry extensionRegistry)
Static factory
|
static Set<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> |
createConfigsFromDomainWideData(Set<String> activeServerGroups,
Set<String> activeSocketBindingGroups) |
static Set<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> |
createConfigsFromModel(org.jboss.dmr.ModelNode model) |
static IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo |
createServerConfigInfo(String serverGroup,
String socketBindingGroup)
Creates a server config info from its name, its server group and its socket binding group
|
Set<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> |
getServerConfigsOnSlave(Resource hostResource)
For use on a slave HC to get all the server groups used by the host
|
boolean |
ignoreOperation(Resource domainResource,
Collection<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> serverConfigs,
PathAddress pathAddress)
For the DC to check whether an operation should be ignored on the slave, if the slave is set up to ignore config not relevant to it
|
public static IgnoredNonAffectedServerGroupsUtil create(ExtensionRegistry extensionRegistry)
extensionRegistry
- the extension registrypublic static org.jboss.dmr.ModelNode addCurrentServerGroupsToHostInfoModel(boolean ignoreUnaffectedServerGroups, Resource hostModel, org.jboss.dmr.ModelNode model)
ignoreUnaffectedServerGroups
- whether the slave host is set up to ignore config for server groups it does not have servers forhostModel
- the resource containing the host modelmodel
- the dmr sent across to theDCpublic static void addServerGroupsToModel(Resource hostModel, org.jboss.dmr.ModelNode model)
public static Set<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> createConfigsFromModel(org.jboss.dmr.ModelNode model)
public boolean ignoreOperation(Resource domainResource, Collection<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> serverConfigs, PathAddress pathAddress)
domainResource
- the domain root resourceserverConfigs
- the server configs the slave is known to havepathAddress
- the address of the operation to check if should be ignored or notpublic Set<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> getServerConfigsOnSlave(Resource hostResource)
hostResource
- the host resourcepublic static IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo createServerConfigInfo(String serverGroup, String socketBindingGroup)
serverGroup
- the name of the server groupsocketBindingGroup
- the name of the socket binding override used by the server config. May be null
Copyright © 2023 JBoss by Red Hat. All rights reserved.