Interface TransformationTarget
-
- All Known Implementing Classes:
TransformationTargetImpl
public interface TransformationTarget
A potentially remote target requiring transformation.- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TransformationTarget.TransformationTargetType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.String
getHostName()
Get the name of the host we are talking toList<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.
-
-
-
Method Detail
-
getVersion
ModelVersion getVersion()
Get the version of this target.- Returns:
- the model version
-
getSubsystemVersion
ModelVersion getSubsystemVersion(String subsystemName)
Get the subsystem version.- Parameters:
subsystemName
- the subsystem name- Returns:
- the version of the specified subsystem,
null
if it does not exist
-
getTransformerEntry
TransformerEntry getTransformerEntry(TransformationContext context, PathAddress address)
Get the transformer entry.- Parameters:
context
- TODOaddress
- the path address- Returns:
- the transformer entry
-
getPathTransformation
List<PathAddressTransformer> getPathTransformation(PathAddress address)
Get path transformations.- Parameters:
address
- the path address- Returns:
- a list of registered path transformers
-
resolveTransformer
ResourceTransformer resolveTransformer(ResourceTransformationContext context, PathAddress address)
Resolve a resource transformer for agiven address.- Parameters:
context
- TODOaddress
- the path address- Returns:
- the transformer
-
resolveTransformer
OperationTransformer resolveTransformer(TransformationContext context, PathAddress address, String operationName)
Resolve an operation transformer for a given address.- Parameters:
context
- TODOaddress
- the addressoperationName
- the operation name- Returns:
- the operation transformer
-
addSubsystemVersion
void addSubsystemVersion(String subsystemName, int majorVersion, int minorVersion)
Add version information for a subsystem.- Parameters:
subsystemName
- the name of the subsystem. Cannot benull
majorVersion
- the major version of the subsystem's management APIminorVersion
- the minor version of the subsystem's management API
-
addSubsystemVersion
void addSubsystemVersion(String subsystemName, ModelVersion version)
Add version information for a subsystem.- Parameters:
subsystemName
- the subsystem nameversion
- the version
-
getTargetType
TransformationTarget.TransformationTargetType getTargetType()
Get the type of the target.- Returns:
- the target type
-
getHostName
String getHostName()
Get the name of the host we are talking to
-
isIgnoredResourceListAvailableAtRegistration
boolean isIgnoredResourceListAvailableAtRegistration()
Gets whether this target can make its list of ignored resources known when it registers.- Returns:
true
if the target can provide the ignored resources list;false
if that is not supported.
-
isIgnoreUnaffectedConfig
boolean isIgnoreUnaffectedConfig()
-
-