◆ migrate()
static void org.turro.forum.ForumMigration.migrate |
( |
| ) |
|
|
static |
Definition at line 42 of file ForumMigration.java.
43 ForumMigration migration =
new ForumMigration(Dao.getDaoByPU(
"contactsPU"));
44 if(migration.isNecessary())
new Thread(migration,
"ElephantForum migration").start();
◆ run()
void org.turro.forum.ForumMigration.run |
( |
| ) |
|
Definition at line 78 of file ForumMigration.java.
79 if(!LOCK.isLocked()) {
81 if(LOCK.tryLock(0, TimeUnit.SECONDS)) {
90 }
catch (InterruptedException ex) {
91 Logger.getLogger(ForumMigration.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
The documentation for this class was generated from the following file: