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 IgnoredNonAffectedServerGroupsUtil |
create(ExtensionRegistry extensionRegistry)
Static factory
|
static IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo |
createServerConfigInfo(org.jboss.dmr.ModelNode model)
Creates a server config info from it's model representation as created by
IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo.toModelNode() |
static IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo |
createServerConfigInfo(String name,
String serverGroup,
String socketBindingGroup)
Creates a server config info from its name, its server group and its socket binding group
|
Set<PathElement> |
getAllExtensionsForProfile(Resource domainResource,
PathElement profileElement)
Gets all the extensions used by a profile's subsystems on the DC
|
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
|
boolean |
ignoreResource(Resource domainResource,
Collection<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> serverConfigs,
PathAddress pathAddress)
For the DC to check whether a resource address 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 modelthe
- dmr sent across to theDCpublic boolean ignoreResource(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 resource to check if should be ignored or notpublic 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<PathElement> getAllExtensionsForProfile(Resource domainResource, PathElement profileElement)
domainResource
- the root domain resourceprofileElement
- the address of the profile elementpublic Set<IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo> getServerConfigsOnSlave(Resource hostResource)
hostResource
- the host resourcepublic static IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo createServerConfigInfo(String name, String serverGroup, String socketBindingGroup)
name
- the name of the server configserverGroup
- the name of the server groupsocketBindingGroup
- the name of the socket binding override used by the server config. May be null
public static IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo createServerConfigInfo(org.jboss.dmr.ModelNode model)
IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo.toModelNode()
model
- the modelCopyright © 2014 JBoss by Red Hat. All rights reserved.