public class ManualFileCopy extends java.lang.Object implements Abortable.Impl
Modifier and Type | Field and Description |
---|---|
private boolean |
abortRequested |
private java.lang.String |
inPath |
private java.lang.String |
outPath |
private Abortable |
parent |
Constructor and Description |
---|
ManualFileCopy(Abortable parent,
java.lang.String outPath,
java.lang.String inPath) |
Modifier and Type | Method and Description |
---|---|
static Abortable.ImplFactory |
factory(java.lang.String outPath,
java.lang.String inPath) |
void |
forceAbort()
shall not block and must be safe to call from another thread than run
|
void |
run()
can block; will be run in a separate thread
|
private volatile boolean abortRequested
private java.lang.String inPath
private java.lang.String outPath
private Abortable parent
public ManualFileCopy(Abortable parent, java.lang.String outPath, java.lang.String inPath)
public void forceAbort()
Abortable.Impl
forceAbort
in interface Abortable.Impl
public static Abortable.ImplFactory factory(java.lang.String outPath, java.lang.String inPath)
public void run()
Abortable.Impl
run
in interface java.lang.Runnable
run
in interface Abortable.Impl
Copyright 2004-2015 Wandora Team