public class DomainControllerRuntimeIgnoreTransformationRegistry extends Object
Modifier and Type | Field and Description |
---|---|
static String |
MISSING_DOMAIN_RESOURCES |
static OperationContext.AttachmentKey<org.jboss.as.host.controller.mgmt.DomainControllerRuntimeIgnoreTransformationRegistry.NewSlaveInformation> |
NEW_SLAVE_INFO |
Constructor and Description |
---|
DomainControllerRuntimeIgnoreTransformationRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
addKnownDataForSlave(String host,
Set<PathElement> pathElements)
Called when missing data is piggy-backed to a slave host following a change to a server group at domain level, or when changes to a host's
server config needs missing data.
|
void |
changeServerGroupProfile(OperationContext context,
PathAddress serverGroupAddress,
String newProfile)
Used when changing a server group's profile to piggy back the missing profile and extensions if not known on the affected slaves.
|
void |
changeServerGroupSocketBindingGroup(OperationContext context,
PathAddress serverGroupAddress,
String newSocketBindingGroup)
Used when changing a server group's socket binding group to piggy back the missing socket binding group if not known on the affected slaves
|
Set<PathElement> |
getUnknownExtensionsForProfile(Resource domainRoot,
String hostName,
String profile)
Gets all the unknown extensions for a profile's subsystems on a host
|
void |
initializeHost(String name)
Called when a host registration request is initiated
|
boolean |
isProfileKnown(Resource domainRoot,
String hostName,
String profile)
Check if a profile is one of a host's known resources
|
boolean |
isServerGroupKnown(Resource domainRoot,
String hostName,
String serverGroupName)
Check if a server group is one of a host's known resources
|
boolean |
isSocketBindingGroupKnown(Resource domainRoot,
String hostName,
String socketBindingGroup)
Check if a socket binding group is one of a host's known resources
|
org.jboss.dmr.ModelNode |
piggyBackMissingInformationOnHeader(OperationContext context,
TransformingProxyController transformingProxyController,
String hostName,
org.jboss.dmr.ModelNode operation)
Used to piggy back missing domain information to a slave host.
|
void |
registerHost(String name,
DomainControllerRuntimeIgnoreTransformationEntry hostEntry)
Called when a host has been registered
|
void |
unregisterHost(String name)
Called when a host has been unregistered
|
void |
updateKnownResources(OperationContext context)
Updates a host's missing resources
|
void |
updateSlaveServerConfig(String hostName,
IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo serverInfo)
Adds/changes a server config info for a host
|
public static final String MISSING_DOMAIN_RESOURCES
public static final OperationContext.AttachmentKey<org.jboss.as.host.controller.mgmt.DomainControllerRuntimeIgnoreTransformationRegistry.NewSlaveInformation> NEW_SLAVE_INFO
public DomainControllerRuntimeIgnoreTransformationRegistry()
public void initializeHost(String name)
name
- the name of the hostpublic void registerHost(String name, DomainControllerRuntimeIgnoreTransformationEntry hostEntry)
name
- the host namehostEntry
- the entry for a hostpublic void unregisterHost(String name)
public void addKnownDataForSlave(String host, Set<PathElement> pathElements)
host
- the host namepathElements
- the root domain resource address elements that the slave now knows aboutpublic org.jboss.dmr.ModelNode piggyBackMissingInformationOnHeader(OperationContext context, TransformingProxyController transformingProxyController, String hostName, org.jboss.dmr.ModelNode operation) throws OperationFailedException
changeServerGroupProfile(OperationContext, PathAddress, String)
or changeServerGroupSocketBindingGroup(OperationContext, PathAddress, String)
context
- the operation contexttransformingProxyController
- the transforming proxy controller for the hosthostName
- the name of the hostoperation
- the operation being pushed out to the slave hostOperationFailedException
public void updateKnownResources(OperationContext context)
context
- the operation contextpublic void changeServerGroupProfile(OperationContext context, PathAddress serverGroupAddress, String newProfile)
context
- the operation contextserverGroupAddress
- the server group addressnewProfile
- the name of the new profilepublic void changeServerGroupSocketBindingGroup(OperationContext context, PathAddress serverGroupAddress, String newSocketBindingGroup)
context
- the operation contextserverGroupAddress
- the server group addressnewSocketBindingGroup
- the name of the new socket binding grouppublic boolean isServerGroupKnown(Resource domainRoot, String hostName, String serverGroupName)
domainRoot
- the root domain resourcehostName
- the name of the hostserverGroupName
- the name of the server grouppublic boolean isSocketBindingGroupKnown(Resource domainRoot, String hostName, String socketBindingGroup)
domainRoot
- the root domain resourcehostName
- the name of the hostsocketBindingGroup
- the name of the socket binding grouppublic boolean isProfileKnown(Resource domainRoot, String hostName, String profile)
domainRoot
- the root domain resourcehostName
- the name of the hostprofile
- the name of the profilepublic Set<PathElement> getUnknownExtensionsForProfile(Resource domainRoot, String hostName, String profile)
domainResource
- the root domain resourcehostName
- the name of the hostprofileElement
- the profile address to checkpublic void updateSlaveServerConfig(String hostName, IgnoredNonAffectedServerGroupsUtil.ServerConfigInfo serverInfo)
hostName
- the name of the hostserverInfo
- the new/changed server config infoCopyright © 2013 JBoss by Red Hat. All rights reserved.