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 LocalFileUtil
myLocalFile
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractFSPatcher(DataInputStream input, File dir)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addListener(PatchListener listener)
void
applyPatch()
Applies patch.void
close()
Disposes the patcher process.protected abstract AbstractFSPatcherCallback
createCallback()
protected File
getLocalFile(String path)
void
interrupt()
Interrupts patching process.void
removeListener(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 IOException
Description copied from interface:Patcher
Applies patch.- Specified by:
applyPatch
in 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:Patcher
Disposes the patcher process.
-
interrupt
public void interrupt()
Description copied from interface:Patcher
Interrupts patching process.Patcher.applyPatch()
may throw {see jetbrains.buildServer.vcs.patches.InterruptedPatchException}
-
addListener
public void addListener(@NotNull PatchListener listener)
- Specified by:
addListener
in interfacePatcherEventDispatcher
-
removeListener
public void removeListener(@NotNull PatchListener listener)
- Specified by:
removeListener
in interfacePatcherEventDispatcher
-
-