public class FileCopier extends Object implements Runnable
Queue that holds aFile2Copy objects.
The copier is started by file transfer VWMs such as PageMaster, who maintain
the queue by filling it with information on files to transfer.
FileCopier does not copy files itself, instead, it starts a SCPcopy class for each
file to be copied.| Modifier and Type | Field and Description |
|---|---|
(package private) Queue |
files
Queue of
aFile2Copy objects that need to be handled. |
(package private) Thread |
kicker
The thread reference.
|
(package private) int |
sleepTime
Sleeptime for this thread.
|
| Constructor and Description |
|---|
FileCopier(Queue files)
Constructor for the Filecopier
|
| Modifier and Type | Method and Description |
|---|---|
void |
doWork()
Main work loop.
|
void |
init()
Intializes the class.
|
void |
run()
Main loop, exception-protected.
|
void |
start()
Starts the main Thread.
|
void |
stop()
Stops the main Thread.
|
Thread kicker
int sleepTime
Queue files
aFile2Copy objects that need to be handled.public void init()
public void start()
public void stop()
public void run()
public void doWork()
SCPcopy object to
handle the transfer.MMBase 1.9-SNAPSHOT - ${javadoctimestamp}