Modifier and Type | Class and Description |
---|---|
class |
ContentConflictsException
The exception is thrown when a patch could not be applied or
rolled back because of the content conflicts.
|
Modifier and Type | Method and Description |
---|---|
void |
InstallationManager.InstallationModification.addInstalledPatch(String patchId)
Add a patch to the installed list.
|
abstract List<InstalledIdentity> |
InstallationManager.getInstalledIdentities() |
List<InstalledIdentity> |
InstallationManagerImpl.getInstalledIdentities()
This method will return a list of installed identities for which
the corresponding .conf file exists under .installation directory.
|
abstract InstalledIdentity |
InstallationManager.getInstalledIdentity(String productName,
String productVersion) |
InstalledIdentity |
InstallationManagerImpl.getInstalledIdentity(String productName,
String productVersion)
This method returns the installed identity with the requested name and version.
|
void |
InstallationManager.InstallationModification.removeInstalledPatch(String patchId)
Remove a patch from the installed list.
|
Modifier and Type | Method and Description |
---|---|
static ModificationCondition |
ModificationCondition.Factory.fromString(String condition) |
boolean |
ModificationCondition.isSatisfied(PatchingTaskContext ctx) |
boolean |
ModificationCondition.ExistsCondition.isSatisfied(PatchingTaskContext ctx) |
static File |
PatchMerger.merge(File patch1,
File patch2,
File merged) |
static Patch |
PatchMerger.merge(Patch cp1,
Patch cp2) |
static Patch |
PatchMerger.merge(Patch cp1,
Patch cp2,
boolean nextVersion) |
Patch |
PatchBuilder.resolvePatch(String name,
String version) |
Patch |
PatchMetadataResolver.resolvePatch(String name,
String version)
Resolve a for a given product name and version.
|
Modifier and Type | Method and Description |
---|---|
protected PatchingResult |
PatchToolImpl.apply(PatchMetadataResolver patchResolver,
PatchContentProvider contentProvider,
ContentVerificationPolicy contentPolicy) |
PatchingResult |
PatchToolImpl.applyPatch(File file,
ContentVerificationPolicy contentPolicy) |
PatchingResult |
PatchToolImpl.applyPatch(InputStream is,
ContentVerificationPolicy contentPolicy) |
PatchingResult |
PatchToolImpl.applyPatch(URL url,
ContentVerificationPolicy contentPolicy) |
protected PatchingResult |
PatchToolImpl.applyPatchBundle(File workDir,
BundledPatch bundledPatch,
ContentVerificationPolicy contentPolicy) |
protected PatchingResult |
PatchToolImpl.execute(File workDir,
ContentVerificationPolicy contentPolicy) |
PatchInfo |
PatchToolImpl.getPatchInfo() |
PatchInfo |
PatchToolImpl.getPatchInfo(String streamName) |
PatchingHistory |
PatchToolImpl.getPatchingHistory() |
PatchingHistory |
PatchToolImpl.getPatchingHistory(String streamName) |
List<String> |
PatchToolImpl.getPatchStreams() |
boolean |
PatchingTask.isRelevant(PatchingTaskContext context)
Checks whether this task is relevant in the given context or it can be skipped.
|
PatchingResult |
PatchToolImpl.rollback(String patchId,
ContentVerificationPolicy contentPolicy,
boolean rollbackTo,
boolean resetConfiguration) |
PatchingResult |
PatchToolImpl.rollback(String streamName,
String patchId,
ContentVerificationPolicy contentPolicy,
boolean rollbackTo,
boolean resetConfiguration) |
PatchingResult |
PatchToolImpl.rollbackLast(ContentVerificationPolicy contentPolicy,
boolean resetConfiguration) |
PatchingResult |
PatchToolImpl.rollbackLast(String streamName,
ContentVerificationPolicy contentPolicy,
boolean resetConfiguration) |
Modifier and Type | Method and Description |
---|---|
static void |
PatchOperationTarget.formatFailedResponse(PatchingException e,
org.jboss.dmr.ModelNode failureDescription) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.applyPatch(File file,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.applyPatch(File file,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl policyBuilder) |
PatchingResult |
PatchTool.applyPatch(File file,
ContentVerificationPolicy contentPolicy)
Apply a patch.
|
PatchingResult |
PatchTool.applyPatch(InputStream is,
ContentVerificationPolicy contentPolicy)
Apply a patch.
|
PatchingResult |
PatchTool.applyPatch(URL url,
ContentVerificationPolicy contentPolicy)
Apply a patch.
|
org.jboss.dmr.ModelNode |
PatchOperationBuilder.execute(PatchOperationTarget target)
Execute this operation on a target.
|
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.executeOp(org.jboss.dmr.ModelNode operation) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.executeOp(Operation operation) |
org.jboss.dmr.ModelNode |
PatchingHistory.getHistory()
Returns the history as a list of ModelNode's
Entry node has the following attributes:
- patch-id - the id of the patch;
- type - the type of the patch (cumulative or one-off);
- applied-at - a timestamp the patch was applied at.
|
static org.jboss.dmr.ModelNode |
PatchingHistory.Factory.getHistory(InstalledIdentity installedImage,
PatchableTarget.TargetInfo info) |
org.jboss.dmr.ModelNode |
PatchingHistory.getHistory(PatchableTarget.TargetInfo info)
Same as getHistory() but for the specified target,
i.e.
|
PatchInfo |
PatchTool.getPatchInfo()
Get the patch info for the default patch stream.
|
PatchInfo |
PatchTool.getPatchInfo(String streamName)
Get the patch info for specific patch stream.
|
PatchingHistory |
PatchTool.getPatchingHistory()
Get patching history
|
PatchingHistory |
PatchTool.getPatchingHistory(String streamName)
Get patching history for the default patch stream.
|
List<String> |
PatchTool.getPatchStreams()
Returns a list of patch streams applicable to the current installation.
|
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.history() |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.history() |
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.history(String streamName) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.history(String streamName) |
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.info() |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.LocalPatchOperationTarget.info() |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.info() |
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.info(String streamName) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.LocalPatchOperationTarget.info(String streamName) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.info(String streamName) |
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.info(String patchId,
boolean verbose) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.LocalPatchOperationTarget.info(String patchId,
boolean verbose) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.info(String patchId,
boolean verbose) |
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.info(String streamName,
String patchId,
boolean verbose) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.LocalPatchOperationTarget.info(String streamName,
String patchId,
boolean verbose) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.info(String streamName,
String patchId,
boolean verbose) |
PatchingHistory.Iterator |
PatchingHistory.iterator()
Returns an iterator over the history.
|
PatchingHistory.Iterator |
PatchingHistory.iterator(PatchableTarget.TargetInfo info)
Same as iterator() but starting from a specific point.
|
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.rollback(String patchId,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean rollbackTo,
boolean restoreConfiguration) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.rollback(String patchId,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean rollbackTo,
boolean resetConfiguration) |
PatchingResult |
PatchTool.rollback(String patchId,
ContentVerificationPolicy contentPolicy,
boolean rollbackTo,
boolean resetConfiguration)
Rollback a patch.
|
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.rollback(String streamName,
String patchId,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean rollbackTo,
boolean restoreConfiguration) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.rollback(String streamName,
String patchId,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean rollbackTo,
boolean resetConfiguration) |
PatchingResult |
PatchTool.rollback(String streamName,
String patchId,
ContentVerificationPolicy contentPolicy,
boolean rollbackTo,
boolean resetConfiguration)
Rollback a patch.
|
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.rollbackLast(org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean restoreConfiguration) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.rollbackLast(org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean restoreConfiguration) |
PatchingResult |
PatchTool.rollbackLast(ContentVerificationPolicy contentPolicy,
boolean resetConfiguration)
Rollback the last applied patch.
|
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.rollbackLast(String streamName,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean restoreConfiguration) |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.rollbackLast(String streamName,
org.jboss.as.patching.tool.ContentPolicyBuilderImpl builder,
boolean restoreConfiguration) |
PatchingResult |
PatchTool.rollbackLast(String streamName,
ContentVerificationPolicy contentPolicy,
boolean resetConfiguration)
Rollback the last applied patch.
|
protected abstract org.jboss.dmr.ModelNode |
PatchOperationTarget.streams() |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.LocalPatchOperationTarget.streams() |
protected org.jboss.dmr.ModelNode |
PatchOperationTarget.RemotePatchOperationTarget.streams() |
Modifier and Type | Method and Description |
---|---|
void |
PatchingGarbageLocator.deleteInactiveContent()
Delete inactive contents.
|
List<File> |
PatchingGarbageLocator.getInactiveHistory()
Get the inactive history directories.
|
List<File> |
PatchingGarbageLocator.getInactiveOverlays()
Get the inactive overlay directories.
|
static void |
PatchHistoryValidations.validateRollbackState(String patchID,
InstalledIdentity identity)
Validate the consistency of patches to the point we rollback.
|
Copyright © 2023 JBoss by Red Hat. All rights reserved.