Interface TransformationTarget
-
- All Known Implementing Classes:
TransformationTargetImpl
public interface TransformationTargetA potentially remote target requiring transformation.- Author:
- Emanuel Muckenhuber
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTransformationTarget.TransformationTargetType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddSubsystemVersion(String subsystemName, int majorVersion, int minorVersion)Add version information for a subsystem.voidaddSubsystemVersion(String subsystemName, ModelVersion version)Add version information for a subsystem.StringgetHostName()Get the name of the host we are talking toList<PathAddressTransformer>getPathTransformation(PathAddress address)Get path transformations.ModelVersiongetSubsystemVersion(String subsystemName)Get the subsystem version.TransformationTarget.TransformationTargetTypegetTargetType()Get the type of the target.TransformerEntrygetTransformerEntry(TransformationContext context, PathAddress address)Get the transformer entry.ModelVersiongetVersion()Get the version of this target.booleanisIgnoredResourceListAvailableAtRegistration()Gets whether this target can make its list of ignored resources known when it registers.booleanisIgnoreUnaffectedConfig()ResourceTransformerresolveTransformer(ResourceTransformationContext context, PathAddress address)Resolve a resource transformer for agiven address.OperationTransformerresolveTransformer(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,
nullif 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 benullmajorVersion- 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:
trueif the target can provide the ignored resources list;falseif that is not supported.
-
isIgnoreUnaffectedConfig
boolean isIgnoreUnaffectedConfig()
-
-