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

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 35 of file RelatedMigration.java.

Member Function Documentation

◆ migrate()

static void org.turro.related.RelatedMigration.migrate ( )
static

Definition at line 39 of file RelatedMigration.java.

39  {
40  RelatedMigration migration = new RelatedMigration(Dao.getDaoByPU("contactsPU"));
41  if(migration.isNecessary()) new Thread(migration, "ElephantRelated migration").start();
42  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ run()

void org.turro.related.RelatedMigration.run ( )

Definition at line 68 of file RelatedMigration.java.

68  {
69  if(!LOCK.isLocked()) {
70  try {
71  if(LOCK.tryLock(0, TimeUnit.SECONDS)) {
72  try {
73  if(isNecessary()) {
74  start();
75  }
76  } finally {
77  LOCK.unlock();
78  }
79  }
80  } catch (InterruptedException ex) {
81  Logger.getLogger(RelatedMigration.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
82  }
83  }
84  }
Here is the call graph for this function:

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