|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.paneris.jammyjoes.upload.Warden
public class Warden
The Warden is a Thread which waits for 24 hours before generating and uploading new data for ecentives This thread becomes an org.melati.PoemThread by doing all its work inside a database.inSession() call. This ensures that there is a org.melati.PoemTransaction (think of sql transactions) available which can be commited or rolled back at any point by calling org.melati.PoremThread.commit() or org.melati.PoremThread.rollback()
PoemThread.commit(),
PoemThread.rollback(),
org.melati.poem.Database#inSession()| Constructor Summary | |
|---|---|
Warden(WardenLauncher launcher)
Constructor |
|
| Method Summary | |
|---|---|
void |
ftpUpload()
|
void |
generateFiles()
|
void |
run()
Thread run method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Warden(WardenLauncher launcher)
Allows the WardenLauncher to pass on parameters objects.
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnable
public void generateFiles()
throws java.lang.Exception
java.lang.Exceptionpublic void ftpUpload()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||