PatchTool.ContentPolicyBuilder, PatchTool.Factory| Constructor and Description |
|---|
PatchToolImpl(InstallationManager manager) |
PatchToolImpl(InstallationManager manager,
InstallationManager.ModificationCompletionCallback callback) |
| 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.
|
protected PatchingResult |
execute(File workDir,
ContentVerificationPolicy contentPolicy) |
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.
|
public PatchToolImpl(InstallationManager manager)
public PatchToolImpl(InstallationManager manager, InstallationManager.ModificationCompletionCallback callback)
public PatchInfo getPatchInfo()
PatchToolgetPatchInfo in interface PatchToolpublic PatchingHistory getPatchingHistory()
PatchToolgetPatchingHistory in interface PatchToolpublic 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 rollbackLast(ContentVerificationPolicy contentPolicy, boolean resetConfiguration) throws PatchingException
PatchToolrollbackLast in interface PatchToolcontentPolicy - the content verification policyresetConfiguration - whether to reset the configuration from the backupPatchingExceptionprotected PatchingResult execute(File workDir, ContentVerificationPolicy contentPolicy) throws PatchingException, IOException, XMLStreamException
Copyright © 2013 JBoss by Red Hat. All rights reserved.