BrightSide Workbench Full Report + Source Code
org.turro.forum.ForumMigration Class Reference
Inheritance diagram for org.turro.forum.ForumMigration:
Collaboration diagram for org.turro.forum.ForumMigration:

Public Member Functions

void run ()
 

Static Public Member Functions

static void migrate ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 36 of file ForumMigration.java.

Member Function Documentation

◆ migrate()

static void org.turro.forum.ForumMigration.migrate ( )
static

Definition at line 42 of file ForumMigration.java.

42  {
43  ForumMigration migration = new ForumMigration(Dao.getDaoByPU("contactsPU"));
44  if(migration.isNecessary()) new Thread(migration, "ElephantForum migration").start();
45  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

void org.turro.forum.ForumMigration.run ( )

Definition at line 78 of file ForumMigration.java.

78  {
79  if(!LOCK.isLocked()) {
80  try {
81  if(LOCK.tryLock(0, TimeUnit.SECONDS)) {
82  try {
83  if(isNecessary()) {
84  start();
85  }
86  } finally {
87  LOCK.unlock();
88  }
89  }
90  } catch (InterruptedException ex) {
91  Logger.getLogger(ForumMigration.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
92  }
93  }
94  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: