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()
PatchTool
getPatchInfo
in interface PatchTool
public PatchingHistory getPatchingHistory()
PatchTool
getPatchingHistory
in interface PatchTool
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 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
protected PatchingResult execute(File workDir, ContentVerificationPolicy contentPolicy) throws PatchingException, IOException, XMLStreamException
Copyright © 2013 JBoss by Red Hat. All rights reserved.