PatchTool.ContentPolicyBuilder, PatchTool.Factory| Constructor and Description |
|---|
PatchToolImpl(InstallationManager manager) |
| Modifier and Type | Method and Description |
|---|---|
protected PatchingResult |
apply(PatchMetadataResolver patchResolver,
PatchContentProvider contentProvider,
ContentVerificationPolicy contentPolicy) |
PatchingResult |
applyPatch(File file,
ContentVerificationPolicy contentPolicy)
Apply a patch.
|
PatchingResult |
applyPatch(InputStream is,
ContentVerificationPolicy contentPolicy)
Apply a patch.
|
PatchingResult |
applyPatch(URL url,
ContentVerificationPolicy contentPolicy)
Apply a patch.
|
protected PatchingResult |
applyPatchBundle(File workDir,
BundledPatch bundledPatch,
ContentVerificationPolicy contentPolicy) |
protected PatchingResult |
execute(File workDir,
ContentVerificationPolicy contentPolicy) |
PatchInfo |
getPatchInfo()
Get the patch info for the default patch stream.
|
PatchInfo |
getPatchInfo(String streamName)
Get the patch info for specific patch stream.
|
PatchingHistory |
getPatchingHistory()
Get patching history
|
PatchingHistory |
getPatchingHistory(String streamName)
Get patching history for the default patch stream.
|
List<String> |
getPatchStreams()
Returns a list of patch streams applicable to the current installation.
|
PatchingResult |
rollback(String patchId,
ContentVerificationPolicy contentPolicy,
boolean rollbackTo,
boolean resetConfiguration)
Rollback a patch.
|
PatchingResult |
rollback(String streamName,
String patchId,
ContentVerificationPolicy contentPolicy,
boolean rollbackTo,
boolean resetConfiguration)
Rollback a patch.
|
PatchingResult |
rollbackLast(ContentVerificationPolicy contentPolicy,
boolean resetConfiguration)
Rollback the last applied patch.
|
PatchingResult |
rollbackLast(String streamName,
ContentVerificationPolicy contentPolicy,
boolean resetConfiguration)
Rollback the last applied patch.
|
public PatchToolImpl(InstallationManager manager)
public List<String> getPatchStreams() throws PatchingException
PatchToolgetPatchStreams in interface PatchToolPatchingExceptionpublic PatchInfo getPatchInfo() throws PatchingException
PatchToolgetPatchInfo in interface PatchToolPatchingExceptionpublic PatchInfo getPatchInfo(String streamName) throws PatchingException
PatchToolgetPatchInfo in interface PatchToolstreamName - patch streamPatchingExceptionpublic PatchingHistory getPatchingHistory() throws PatchingException
PatchToolgetPatchingHistory in interface PatchToolPatchingExceptionpublic PatchingHistory getPatchingHistory(String streamName) throws PatchingException
PatchToolgetPatchingHistory in interface PatchToolstreamName - patch streamPatchingExceptionpublic PatchingResult applyPatch(File file, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchToolapplyPatch in interface PatchToolfile - the patch filecontentPolicy - the content verification policyPatchingExceptionpublic PatchingResult applyPatch(URL url, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchToolapplyPatch in interface PatchToolurl - the url to retrieve the patch fromcontentPolicy - the content verification policyPatchingExceptionpublic PatchingResult applyPatch(InputStream is, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchToolapplyPatch in interface PatchToolis - the content input streamcontentPolicy - the content verification policyPatchingExceptionpublic PatchingResult rollback(String patchId, ContentVerificationPolicy contentPolicy, boolean rollbackTo, boolean resetConfiguration) throws PatchingException
PatchToolrollback in interface PatchToolpatchId - the patch idcontentPolicy - the content verification policyrollbackTo - rollback all one off patches until the given patch-idresetConfiguration - whether to reset the configuration from the backupPatchingExceptionpublic PatchingResult rollback(String streamName, String patchId, ContentVerificationPolicy contentPolicy, boolean rollbackTo, boolean resetConfiguration) throws PatchingException
PatchToolrollback in interface PatchToolstreamName - patch stream namepatchId - the patch idcontentPolicy - the content verification policyrollbackTo - rollback all one off patches until the given patch-idresetConfiguration - whether to reset the configuration from the backupPatchingExceptionpublic PatchingResult rollbackLast(ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
PatchToolrollbackLast in interface PatchToolcontentPolicy - the content verification policyresetConfiguration - whether to reset the configuration from the backupPatchingExceptionpublic PatchingResult rollbackLast(String streamName, ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
PatchToolrollbackLast in interface PatchToolstreamName - patch stream namecontentPolicy - the content verification policyresetConfiguration - whether to reset the configuration from the backupPatchingExceptionprotected PatchingResult execute(File workDir, ContentVerificationPolicy contentPolicy) throws PatchingException, IOException, XMLStreamException
protected PatchingResult apply(PatchMetadataResolver patchResolver, PatchContentProvider contentProvider, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchingExceptionprotected PatchingResult applyPatchBundle(File workDir, BundledPatch bundledPatch, ContentVerificationPolicy contentPolicy) throws PatchingException, IOException
PatchingExceptionIOExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.