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
PatchTool
getPatchStreams
in interface PatchTool
PatchingException
public PatchInfo getPatchInfo() throws PatchingException
PatchTool
getPatchInfo
in interface PatchTool
PatchingException
public PatchInfo getPatchInfo(String streamName) throws PatchingException
PatchTool
getPatchInfo
in interface PatchTool
streamName
- patch streamPatchingException
public PatchingHistory getPatchingHistory() throws PatchingException
PatchTool
getPatchingHistory
in interface PatchTool
PatchingException
public PatchingHistory getPatchingHistory(String streamName) throws PatchingException
PatchTool
getPatchingHistory
in interface PatchTool
streamName
- patch streamPatchingException
public PatchingResult applyPatch(File file, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchTool
applyPatch
in interface PatchTool
file
- the patch filecontentPolicy
- the content verification policyPatchingException
public PatchingResult applyPatch(URL url, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchTool
applyPatch
in interface PatchTool
url
- the url to retrieve the patch fromcontentPolicy
- the content verification policyPatchingException
public PatchingResult applyPatch(InputStream is, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchTool
applyPatch
in interface PatchTool
is
- the content input streamcontentPolicy
- the content verification policyPatchingException
public PatchingResult rollback(String patchId, ContentVerificationPolicy contentPolicy, boolean rollbackTo, boolean resetConfiguration) throws PatchingException
PatchTool
rollback
in interface PatchTool
patchId
- the patch idcontentPolicy
- the content verification policyrollbackTo
- rollback all one off patches until the given patch-idresetConfiguration
- whether to reset the configuration from the backupPatchingException
public PatchingResult rollback(String streamName, String patchId, ContentVerificationPolicy contentPolicy, boolean rollbackTo, boolean resetConfiguration) throws PatchingException
PatchTool
rollback
in interface PatchTool
streamName
- 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 backupPatchingException
public PatchingResult rollbackLast(ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
PatchTool
rollbackLast
in interface PatchTool
contentPolicy
- the content verification policyresetConfiguration
- whether to reset the configuration from the backupPatchingException
public PatchingResult rollbackLast(String streamName, ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
PatchTool
rollbackLast
in interface PatchTool
streamName
- patch stream namecontentPolicy
- the content verification policyresetConfiguration
- whether to reset the configuration from the backupPatchingException
protected PatchingResult execute(File workDir, ContentVerificationPolicy contentPolicy) throws PatchingException, IOException, XMLStreamException
protected PatchingResult apply(PatchMetadataResolver patchResolver, PatchContentProvider contentProvider, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchingException
protected PatchingResult applyPatchBundle(File workDir, BundledPatch bundledPatch, ContentVerificationPolicy contentPolicy) throws PatchingException, IOException
PatchingException
IOException
Copyright © 2023 JBoss by Red Hat. All rights reserved.