BrightSide Workbench Full Report + Source Code
org.turro.publication.command.PublicationMigration Class Reference
Inheritance diagram for org.turro.publication.command.PublicationMigration:
Collaboration diagram for org.turro.publication.command.PublicationMigration:

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

Member Function Documentation

◆ migrate()

static void org.turro.publication.command.PublicationMigration.migrate ( )
static

Definition at line 38 of file PublicationMigration.java.

38  {
39  PublicationMigration migration = new PublicationMigration();
40  if(migration.isNecessary()) new Thread(migration, "ElephantPublication migration").start();
41  }
Here is the caller graph for this function:

◆ run()

void org.turro.publication.command.PublicationMigration.run ( )

Definition at line 71 of file PublicationMigration.java.

71  {
72  if(!LOCK.isLocked()) {
73  try {
74  if(LOCK.tryLock(0, TimeUnit.SECONDS)) {
75  try {
76  if(isNecessary()) {
77  start();
78  }
79  } finally {
80  LOCK.unlock();
81  }
82  }
83  } catch (InterruptedException ex) {
84  WebLoggers.severe(this).exception(ex).log();
85  }
86  }
87  }
Here is the call graph for this function:

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