Class AbstractFSPatcher
- java.lang.Object
-
- jetbrains.buildServer.vcs.patches.AbstractFSPatcher
-
- All Implemented Interfaces:
Patcher,PatcherEventDispatcher
- Direct Known Subclasses:
FSPatcherImpl,FSUndoSupportingPatcher
public abstract class AbstractFSPatcher extends Object implements Patcher, PatcherEventDispatcher
-
-
Field Summary
Fields Modifier and Type Field Description protected LocalFileUtilmyLocalFile
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFSPatcher(DataInputStream input, File dir)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddListener(PatchListener listener)voidapplyPatch()Applies patch.voidclose()Disposes the patcher process.protected abstract AbstractFSPatcherCallbackcreateCallback()protected FilegetLocalFile(String path)voidinterrupt()Interrupts patching process.voidremoveListener(PatchListener listener)
-
-
-
Field Detail
-
myLocalFile
protected final LocalFileUtil myLocalFile
-
-
Constructor Detail
-
AbstractFSPatcher
protected AbstractFSPatcher(@NotNull DataInputStream input, @NotNull File dir)
-
-
Method Detail
-
createCallback
@NotNull protected abstract AbstractFSPatcherCallback createCallback()
-
applyPatch
public void applyPatch() throws IOExceptionDescription copied from interface:PatcherApplies patch.- Specified by:
applyPatchin interfacePatcher- Throws:
IOException- some file system operation failed or patch process terminated with see jetbrains.buildServer.vcs.patches.InterruptedPatchException or some problem occurred during the patch process (see jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException).
-
close
public void close()
Description copied from interface:PatcherDisposes the patcher process.
-
interrupt
public void interrupt()
Description copied from interface:PatcherInterrupts patching process.Patcher.applyPatch()may throw {see jetbrains.buildServer.vcs.patches.InterruptedPatchException}
-
addListener
public void addListener(@NotNull PatchListener listener)- Specified by:
addListenerin interfacePatcherEventDispatcher
-
removeListener
public void removeListener(@NotNull PatchListener listener)- Specified by:
removeListenerin interfacePatcherEventDispatcher
-
-