public class TransformationTargetImpl extends Object implements TransformationTarget
TransformationTarget.TransformationTargetType
Modifier and Type | Method and Description |
---|---|
void |
addSubsystemVersion(String subsystemName,
int majorVersion,
int minorVersion)
Add version information for a subsystem.
|
void |
addSubsystemVersion(String subsystemName,
ModelVersion version)
Add version information for a subsystem.
|
static TransformationTargetImpl |
create(String hostName,
TransformerRegistry transformerRegistry,
ModelVersion version,
Map<PathAddress,ModelVersion> subsystems,
TransformationTarget.TransformationTargetType type) |
static TransformationTargetImpl |
createForHost(String hostName,
TransformerRegistry transformerRegistry,
ModelVersion version,
Map<PathAddress,ModelVersion> subsystems,
Transformers.OperationExcludedTransformationRegistry ignoredRegistry) |
static TransformationTarget |
createLocal() |
String |
getHostName()
Get the name of the host we are talking to
|
List<PathAddressTransformer> |
getPathTransformation(PathAddress address)
Get path transformations.
|
ModelVersion |
getSubsystemVersion(String subsystemName)
Get the subsystem version.
|
TransformationTarget.TransformationTargetType |
getTargetType()
Get the type of the target.
|
TransformerEntry |
getTransformerEntry(TransformationContext context,
PathAddress address)
Get the transformer entry.
|
ModelVersion |
getVersion()
Get the version of this target.
|
boolean |
isIgnoredResourceListAvailableAtRegistration()
Gets whether this target can make its list of ignored resources known when it registers.
|
boolean |
isIgnoreUnaffectedConfig() |
ResourceTransformer |
resolveTransformer(ResourceTransformationContext context,
PathAddress address)
Resolve a resource transformer for agiven address.
|
OperationTransformer |
resolveTransformer(TransformationContext context,
PathAddress address,
String operationName)
Resolve an operation transformer for a given address.
|
public static TransformationTarget createLocal()
public static TransformationTargetImpl create(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, TransformationTarget.TransformationTargetType type)
public static TransformationTargetImpl createForHost(String hostName, TransformerRegistry transformerRegistry, ModelVersion version, Map<PathAddress,ModelVersion> subsystems, Transformers.OperationExcludedTransformationRegistry ignoredRegistry)
public ModelVersion getVersion()
TransformationTarget
getVersion
in interface TransformationTarget
public ModelVersion getSubsystemVersion(String subsystemName)
TransformationTarget
getSubsystemVersion
in interface TransformationTarget
subsystemName
- the subsystem namenull
if it does not existpublic ResourceTransformer resolveTransformer(ResourceTransformationContext context, PathAddress address)
TransformationTarget
resolveTransformer
in interface TransformationTarget
context
- TODOaddress
- the path addresspublic TransformerEntry getTransformerEntry(TransformationContext context, PathAddress address)
TransformationTarget
getTransformerEntry
in interface TransformationTarget
context
- TODOaddress
- the path addresspublic List<PathAddressTransformer> getPathTransformation(PathAddress address)
TransformationTarget
getPathTransformation
in interface TransformationTarget
address
- the path addresspublic OperationTransformer resolveTransformer(TransformationContext context, PathAddress address, String operationName)
TransformationTarget
resolveTransformer
in interface TransformationTarget
context
- TODOaddress
- the addressoperationName
- the operation namepublic void addSubsystemVersion(String subsystemName, int majorVersion, int minorVersion)
TransformationTarget
addSubsystemVersion
in interface TransformationTarget
subsystemName
- the name of the subsystem. Cannot be null
majorVersion
- the major version of the subsystem's management APIminorVersion
- the minor version of the subsystem's management APIpublic void addSubsystemVersion(String subsystemName, ModelVersion version)
TransformationTarget
addSubsystemVersion
in interface TransformationTarget
subsystemName
- the subsystem nameversion
- the versionpublic TransformationTarget.TransformationTargetType getTargetType()
TransformationTarget
getTargetType
in interface TransformationTarget
public String getHostName()
TransformationTarget
getHostName
in interface TransformationTarget
public boolean isIgnoredResourceListAvailableAtRegistration()
TransformationTarget
isIgnoredResourceListAvailableAtRegistration
in interface TransformationTarget
true
if the target can provide the ignored resources list; false
if that is not supported.public boolean isIgnoreUnaffectedConfig()
isIgnoreUnaffectedConfig
in interface TransformationTarget
Copyright © 2023 JBoss by Red Hat. All rights reserved.