Package org.jboss.as.patching.generator
Interface PatchConfig
-
public interface PatchConfigConfiguration for generating a patch.- Author:
- Brian Stansberry (c) 2012 Red Hat Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAppliesToProduct()Get the product name this patch applies to.StringgetAppliesToVersion()Get the applies to version.StringgetDescription()Get the patch description.Collection<PatchElementConfig>getElements()Get the configuration for each element.Set<String>getInRuntimeUseItems()Get the miscellaneous content item that will be in active use on a target process that isn't in admin-only mode.Collection<OptionalPath>getOptionalPaths()Returns a collection of optional paths.StringgetPatchId()Get the unique patch ID.org.jboss.as.patching.metadata.Patch.PatchTypegetPatchType()Get the patch type.StringgetResultingVersion()Get the resulting version for cumulative patches.Set<org.jboss.as.patching.metadata.ContentItem>getSpecifiedContent()Gets the modifications specifically specified in the patch config, if the config doesn't specifygenerating the modifications by differencing the two distributions.booleanisGenerateByDiff()Gets whether the patch.xml should be generated by differencing the two distributions.booleanisOverrideIdentity()Returns whether we should skip checking the identities of the servers used to generate the diff.org.jboss.as.patching.generator.PatchBuilderWrappertoPatchBuilder()Create aPatchBuilderWrapperwhose basic metadata matches what's configured in this object.
-
-
-
Method Detail
-
getPatchId
String getPatchId()
Get the unique patch ID.- Returns:
- the patch id
-
getDescription
String getDescription()
Get the patch description.- Returns:
- the patch description
-
getPatchType
org.jboss.as.patching.metadata.Patch.PatchType getPatchType()
Get the patch type.- Returns:
- the type of the patch
-
getAppliesToProduct
String getAppliesToProduct()
Get the product name this patch applies to.- Returns:
- the product name
-
getAppliesToVersion
String getAppliesToVersion()
Get the applies to version.- Returns:
- the applies to
-
getResultingVersion
String getResultingVersion()
Get the resulting version for cumulative patches.- Returns:
- the resulting version
-
getInRuntimeUseItems
Set<String> getInRuntimeUseItems()
Get the miscellaneous content item that will be in active use on a target process that isn't in admin-only mode.- Returns:
- the items. Will not return
null
-
isGenerateByDiff
boolean isGenerateByDiff()
Gets whether the patch.xml should be generated by differencing the two distributions.- Returns:
trueif the patch.xml should be generated,falseif they have been specified in the patch config document
-
getSpecifiedContent
Set<org.jboss.as.patching.metadata.ContentItem> getSpecifiedContent()
Gets the modifications specifically specified in the patch config, if the config doesn't specifygenerating the modifications by differencing the two distributions.- Returns:
- the modified content items
-
getElements
Collection<PatchElementConfig> getElements()
Get the configuration for each element.- Returns:
- the patch elements
-
getOptionalPaths
Collection<OptionalPath> getOptionalPaths()
Returns a collection of optional paths. I.e. filesystem paths for which patch updates should be generated and included but that might be missing in the target installation and in that case be skipped instead of aborting the whole patch altogether.- Returns:
- optional paths
-
isOverrideIdentity
boolean isOverrideIdentity()
Returns whether we should skip checking the identities of the servers used to generate the diff.- Returns:
- whether to skip checking the identities
-
toPatchBuilder
org.jboss.as.patching.generator.PatchBuilderWrapper toPatchBuilder()
Create aPatchBuilderWrapperwhose basic metadata matches what's configured in this object.- Returns:
- the patch builder
-
-