PatchTool.ContentPolicyBuilder, PatchTool.Factory| Constructor and Description |
|---|
PatchToolImpl(InstallationManager manager) |
PatchToolImpl(InstallationManager manager,
InstallationManager.ModificationCompletionCallback callback) |
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
protected PatchingResult apply(PatchMetadataResolver patchResolver, PatchContentProvider contentProvider, ContentVerificationPolicy contentPolicy) throws PatchingException
PatchingExceptionprotected PatchingResult applyPatchBundle(File workDir, BundledPatch bundledPatch, ContentVerificationPolicy contentPolicy) throws PatchingException, IOException
PatchingExceptionIOExceptionCopyright © 2014 JBoss by Red Hat. All rights reserved.