public interface PatchTool
Modifier and Type | Interface and Description |
---|---|
static interface |
PatchTool.ContentPolicyBuilder |
static class |
PatchTool.Factory |
Modifier and Type | Field and Description |
---|---|
static ContentVerificationPolicy |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
static final ContentVerificationPolicy DEFAULT
List<String> getPatchStreams() throws PatchingException
PatchingException
PatchInfo getPatchInfo() throws PatchingException
PatchingException
PatchInfo getPatchInfo(String streamName) throws PatchingException
streamName
- patch streamPatchingException
PatchingHistory getPatchingHistory() throws PatchingException
PatchingException
PatchingHistory getPatchingHistory(String streamName) throws PatchingException
streamName
- patch streamPatchingException
PatchingResult applyPatch(File file, ContentVerificationPolicy contentPolicy) throws PatchingException
file
- the patch filecontentPolicy
- the content verification policyPatchingException
PatchingResult applyPatch(URL url, ContentVerificationPolicy contentPolicy) throws PatchingException
url
- the url to retrieve the patch fromcontentPolicy
- the content verification policyPatchingException
PatchingResult applyPatch(InputStream is, ContentVerificationPolicy contentPolicy) throws PatchingException
is
- the content input streamcontentPolicy
- the content verification policyPatchingException
PatchingResult rollback(String patchId, ContentVerificationPolicy contentPolicy, boolean rollbackTo, boolean resetConfiguration) throws PatchingException
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
PatchingResult rollback(String streamName, String patchId, ContentVerificationPolicy contentPolicy, boolean rollbackTo, boolean resetConfiguration) throws PatchingException
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
PatchingResult rollbackLast(ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
contentPolicy
- the content verification policyresetConfiguration
- whether to reset the configuration from the backupPatchingException
PatchingResult rollbackLast(String streamName, ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
streamName
- patch stream namecontentPolicy
- the content verification policyresetConfiguration
- whether to reset the configuration from the backupPatchingException
Copyright © 2023 JBoss by Red Hat. All rights reserved.