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.
|
PatchingHistory |
getPatchingHistory()
Get patching history
|
PatchingResult |
rollback(String patchId,
ContentVerificationPolicy contentPolicy,
boolean rollbackTo,
boolean resetConfiguration)
Rollback a patch.
|
PatchingResult |
rollbackLast(ContentVerificationPolicy contentPolicy,
boolean resetConfiguration)
Rollback the last applied patch.
|
static final ContentVerificationPolicy DEFAULT
PatchInfo getPatchInfo()
PatchingHistory getPatchingHistory()
PatchingResult applyPatch(File file, ContentVerificationPolicy contentPolicy) throws PatchingException
file - the patch filecontentPolicy - the content verification policyPatchingExceptionPatchingResult applyPatch(URL url, ContentVerificationPolicy contentPolicy) throws PatchingException
url - the url to retrieve the patch fromcontentPolicy - the content verification policyPatchingExceptionPatchingResult applyPatch(InputStream is, ContentVerificationPolicy contentPolicy) throws PatchingException
is - the content input streamcontentPolicy - the content verification policyPatchingExceptionPatchingResult 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 backupPatchingExceptionPatchingResult rollbackLast(ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
contentPolicy - the content verification policyresetConfiguration - whether to reset the configuration from the backupPatchingExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.