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

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 SystemLogMigration.java.

Member Function Documentation

◆ migrate()

static void org.turro.log.SystemLogMigration.migrate ( )
static

Definition at line 39 of file SystemLogMigration.java.

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

◆ run()

void org.turro.log.SystemLogMigration.run ( )

Definition at line 73 of file SystemLogMigration.java.

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

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