|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.builders.vwms.ImagePusher
A class used to schedule images for transfer.
ImagePusher periodically (approx. every 4 seconds) checks it's parent's (ImageMaster) filelist,
and pushes the fields in that list on a Queue, which is, in turn, handled by a FileCopier
instance.
The reason that this is done by ImagePusher, and not ImageMaster, is that this way double requests
for the same file can be filtered out. This seems useful, so perhaps PageMaster might need to use this
scheduling system too (or otherwise this should be build into FileCopier).
| Constructor Summary | |
ImagePusher(ImageMaster parent)
Constructor for the ImagePusher |
|
| Method Summary | |
void |
doWork()
Main work loop. |
void |
init()
Initializes the insatnce by starting a thread. |
void |
run()
Main loop, exception protected |
void |
start()
Starts the main Thread. |
void |
stop()
Stops the main Thread. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImagePusher(ImageMaster parent)
parent - The parent that contains and adds the files to handle.| Method Detail |
public void init()
public void start()
public void stop()
public void run()
run in interface java.lang.Runnablepublic void doWork()
FileCopier) then takes care
of the actual transfer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||